Details

Description

Currently the "hdfs getconf" tool can only print out certain keys, like the list of NNs, etc. It would be handy to allow it to fetch an arbitrary configuration. For example, users may wish to write shell scripts that interact with their hadoop cluster, and it is useful to be able to fetch configs like the name of the superuser, or the state of whether HA is enabled.

Activity

Attached patch adds: hdfs getconf -confKey foo which will read and print the given key. I also made it always trim the results, since there are no configs where whitespace around the edge is semantically important, and trimming in bash is a pain.

Todd Lipcon
added a comment - 06/Apr/12 22:15 Attached patch adds: hdfs getconf -confKey foo which will read and print the given key. I also made it always trim the results, since there are no configs where whitespace around the edge is semantically important, and trimming in bash is a pain.

Hadoop QA
added a comment - 06/Apr/12 23:50 -1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12521735/hdfs-3226.txt
against trunk revision .
+1 @author. The patch does not contain any @author tags.
+1 tests included. The patch appears to include 1 new or modified test files.
+1 javadoc. The javadoc tool did not generate any warning messages.
+1 javac. The applied patch does not increase the total number of javac compiler warnings.
+1 eclipse:eclipse. The patch built with eclipse:eclipse.
+1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings.
+1 release audit. The applied patch does not increase the total number of release audit warnings.
-1 core tests. The patch failed these unit tests:
org.apache.hadoop.hdfs.TestDatanodeBlockScanner
+1 contrib tests. The patch passed contrib unit tests.
Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/2219//testReport/
Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/2219//console
This message is automatically generated.