jcmcken / hisho

Command-line interface for Cloudera Manager
0 stars 0 forks source link

Allow config introspection if Cloudera daemons are installed #1

Closed jcmcken closed 9 years ago

jcmcken commented 9 years ago

Allow printing or examining of different configuration options available through CM.

E.g.

$ rpm -ql cloudera-manager-daemons|grep properties$|grep -v '_..\.properties$'
...snip...
/usr/share/cmf/config.hbase.properties
/usr/share/cmf/config.hdfs.properties
/usr/share/cmf/config.hive.properties
/usr/share/cmf/config.host.properties
/usr/share/cmf/config.hue.properties
/usr/share/cmf/config.impala.properties
/usr/share/cmf/config.keystore_indexer.properties
/usr/share/cmf/config.mapreduce.properties
/usr/share/cmf/config.mgmt.properties
/usr/share/cmf/config.mr2.properties
...snip...
$ cat /usr/share/cmf/config.hdfs.properties|tail -5
config.hdfs.journalnode.sync_status_enabled.display_name=Active NameNode Sync Status Health Check
config.hdfs.journalnode.journalnode_fsync_latency_thresholds.description=The health test thresholds for JournalNode fsync latency
config.hdfs.journalnode.journalnode_fsync_latency_thresholds.display_name=JournalNode Fsync Latency Thresholds
config.hdfs.namenode.journal_nodes_out_of_sync_thresholds.description=The health check thresholds for the number of out-of-sync JournalNodes for this NameNode.
config.hdfs.namenode.journal_nodes_out_of_sync_thresholds.display_name=NameNode Out-Of-Sync JournalNodes Thresholds
jcmcken commented 9 years ago

Pass view='full' to get_config on a service to get the full list of config values (not just the defaults)