Database Reference
In-Depth Information
export HBASE_THRIFT_OPTS="$HBASE_JMX_BASE
-Dcom.sun.management.jmxremote.port=10103"
export HBASE_ZOOKEEPER_OPTS="$HBASE_JMX_BASE
-Dcom.sun.management.jmxremote.port=10104"
export HBASE_REST_OPTS="$HBASE_JMX_BASE
-Dcom.sun.management.jmxremote.port=10105"
To access any metrics using JMX, enable NullContextWithUpdateThread with
an appropriate value for the update period; for example, the hadoop-metrics.
properties ile will have the following entries:
hbase.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread
hbase.period=10
jvm.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread
jvm.period=10
rpc.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread
rpc.period=10
The preceding entries ensure that metrics will be updated every 10 seconds. If
some other context is used, metrics values will be retrieved using JMX operations.
File-based monitoring
Like many other ways, HBase can also be conigured to output metrics into a lat
ile. Every time a metric is to be outputted, it's appended to that ile with or without
timestamps. File-based monitoring is not recommended for production systems.
To enable metrics capturing into iles, coniguration needs to be done in the
hadoop-metrics.properties ile as follows:
hbase.class=org.apache.hadoop.hbase.metrics.file.TimeStampingFileContext
hbase.period=10
hbase.fileName=/tmp/metrics_hbase.log
jvm.class=org.apache.hadoop.hbase.metrics.file.TimeStampingFileContext
jvm.period=10
jvm.fileName=/tmp/metrics_jvm.log
rpc.class=org.apache.hadoop.hbase.metrics.file.TimeStampingFileContext
rpc.period=10
rpc.fileName=/tmp/metrics_rpc.log
These entries will ensure that the HBase, JVM, and RPC metrics will be captured
in iles every 10 seconds.
 
Search WWH ::




Custom Search