使用JConsole或者VisualVM等工具监控HBase状态时,需要修改HBase的配置文件,以解决随机端口问题。

文件名:hbase-env.sh

export HBASE_JMX_BASE="-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"
export HBASE_MASTER_OPTS="$HBASE_MASTER_OPTS $HBASE_JMX_BASE -Dcom.sun.management.jmxremote.port=10101"
export HBASE_REGIONSERVER_OPTS="$HBASE_REGIONSERVER_OPTS $HBASE_JMX_BASE -Dcom.sun.management.jmxremote.port=10102"
export HBASE_THRIFT_OPTS="$HBASE_THRIFT_OPTS $HBASE_JMX_BASE -Dcom.sun.management.jmxremote.port=10103"
export HBASE_ZOOKEEPER_OPTS="$HBASE_ZOOKEEPER_OPTS $HBASE_JMX_BASE -Dcom.sun.management.jmxremote.port=10104"
export HBASE_REST_OPTS="$HBASE_REST_OPTS $HBASE_JMX_BASE -Dcom.sun.management.jmxremote.port=10105"

 

这几个配置,默认是关闭的,放开就可以。

使用JConsole监控HBase内存状态

 

相关文章:

  • 2022-01-25
  • 2022-12-23
  • 2021-11-09
  • 2021-07-11
  • 2022-12-23
  • 2021-07-16
  • 2022-12-23
  • 2021-10-08
猜你喜欢
  • 2022-01-04
  • 2022-01-13
  • 2022-01-11
  • 2021-09-18
  • 2021-10-12
  • 2022-12-23
  • 2021-09-12
相关资源
相似解决方案