How to use cloudera management (ui) console to edit hadoop-metrics.properties?

1.2k Views Asked by At

I am trying to monitor Hbase using Ganglia. How to use cloudera management console to edit dfs.server property in the hadoop-metrics.properties?

According to http://wiki.apache.org/hadoop/GangliaMetrics I need to change:

dfs.servers=@GANGLIA@:8649

But I am not able to see the option to modify dfs.server value on the management console of cloudera.

How should I proceed?

dfs.class=org.apache.hadoop.metrics.ganglia.GangliaContext31
mapred.class=org.apache.hadoop.metrics.ganglia.GangliaContext31
hbase.class=org.apache.hadoop.metrics.ganglia.GangliaContext31
jvm.class=org.apache.hadoop.metrics.ganglia.GangliaContext31
rpc.class=org.apache.hadoop.metrics.ganglia.GangliaContext31
ugi.class=org.apache.hadoop.metrics.ganglia.GangliaContext31
dfs.period=10
mapred.period=10
hbase.period=10
jvm.period=10
rpc.period=10
ugi.period=10
dfs.fileName=/tmp/metrics/dfs.log
mapred.fileName=/tmp/metrics/dfs.log
hbase.fileName=/tmp/metrics/hbase.log
jvm.fileName=/tmp/metrics/jvm.log
rpc.fileName=/tmp/metrics/rpc.log
ugi.fileName=/tmp/metrics/ugi.lo
1

There are 1 best solutions below

1
On

I don't think the Cloudera management console has ability to edit hadoop-metrics.properties configuration through UI instead, you just need to edit this configuration manually. In Hadoop hadoop-metrics.properties configuration settings contains settings for the metrics contexts "dfs", "mapred", and "jvm" so you can edit the "dfs" section as below:

First stop the HDFS service.

Visit conf/hadoop-metrics.properties add the changed you need for GangliaMetrics:

dfs.servers=@GANGLIA@:8649

Restart the HDFS service