|
Attached patch that puts the script in src/contrib/bash-tab-completion, and includes a README file.
Also fixed the off-by-one error which caused 'or' to be suggested as a top-level command. -1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12385764/hadoop-bash-tab-completion against trunk revision 676069. +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. +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 findbugs. The patch does not introduce any new Findbugs warnings. -1 release audit. The applied patch generated 210 release audit warnings (more than the trunk's current 209 warnings). +1 core tests. The patch passed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2845/testReport/ This message is automatically generated. Added ASF license to the script
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12385967/hadoop-bash-tab-completion against trunk revision 676069. +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. +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 findbugs. The patch does not introduce any new Findbugs warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2857/testReport/ This message is automatically generated. I don't think it's hugely practical (it requires bash and a working Hadoop install, and its inputs and outputs are env vars) or necessary (it's relatively simple, and flexible enough to work against 0.16.x and 0.19.x, so I don't think that [m]any changes in the future will affect it) to unit test this, so would propose that it's included as-is
I've committed this. Thanks Chris !
Integrated in Hadoop-trunk #581 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/581/
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
We can include this in a new contrib bash-tab-completion. Could you please provide a patch for it, and supply a README file.
More minor thing I noticed is that it displays "or" as a first command (I guess originating from the hadoop script).