HADOOP-12070. Some of the bin/hadoop subcommands are not available on Windows. (Contributed by Kengo Seki)
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/2e76c2f7 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/2e76c2f7 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/2e76c2f7 Branch: refs/heads/HDFS-1312 Commit: 2e76c2f751f697ed2f785038c22445251db0134c Parents: d1dd248 Author: Arpit Agarwal <[email protected]> Authored: Wed Feb 24 12:45:34 2016 -0800 Committer: Arpit Agarwal <[email protected]> Committed: Wed Feb 24 12:45:34 2016 -0800 ---------------------------------------------------------------------- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../hadoop-common/src/main/bin/hadoop.cmd | 26 ++++++++++++++++++-- 2 files changed, 27 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/2e76c2f7/hadoop-common-project/hadoop-common/CHANGES.txt ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 07caee4..a1aa142 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -551,6 +551,9 @@ Trunk (Unreleased) HADOOP-12647. Add /usr/lib default for ISAL library and fix missing .c file in CMakeLists (Kai Zheng via cmccabe) + HADOOP-12070. Some of the bin/hadoop subcommands are not available + on Windows. (Kengo Seki via Arpit Agarwal) + OPTIMIZATIONS HADOOP-7761. Improve the performance of raw comparisons. (todd) http://git-wip-us.apache.org/repos/asf/hadoop/blob/2e76c2f7/hadoop-common-project/hadoop-common/src/main/bin/hadoop.cmd ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/src/main/bin/hadoop.cmd b/hadoop-common-project/hadoop-common/src/main/bin/hadoop.cmd index c600fd1..a21ebe6 100644 --- a/hadoop-common-project/hadoop-common/src/main/bin/hadoop.cmd +++ b/hadoop-common-project/hadoop-common/src/main/bin/hadoop.cmd @@ -144,9 +144,12 @@ call :updatepath %HADOOP_BIN_PATH% @echo %CLASSPATH% exit /b ) + ) else if %hadoop-command% == jnipath ( + echo !PATH! + exit /b ) - - set corecommands=fs version jar checknative distcp daemonlog archive classpath credential kerbname key + + set corecommands=fs version jar checknative conftest distch distcp daemonlog archive classpath credential kerbname key trace for %%i in ( %corecommands% ) do ( if %hadoop-command% == %%i set corecommand=true ) @@ -193,6 +196,15 @@ call :updatepath %HADOOP_BIN_PATH% set CLASS=org.apache.hadoop.util.NativeLibraryChecker goto :eof +:conftest + set CLASS=org.apache.hadoop.util.ConfTest + goto :eof + +:distch + set CLASS=org.apache.hadoop.tools.DistCh + set CLASSPATH=%CLASSPATH%;%TOOL_PATH% + goto :eof + :distcp set CLASS=org.apache.hadoop.tools.DistCp set CLASSPATH=%CLASSPATH%;%TOOL_PATH% @@ -223,6 +235,10 @@ call :updatepath %HADOOP_BIN_PATH% set CLASS=org.apache.hadoop.crypto.key.KeyShell goto :eof +:trace + set CLASS=org.apache.hadoop.tracing.TraceAdmin + goto :eof + :updatepath set path_to_add=%* set current_path_comparable=%path% @@ -281,12 +297,18 @@ call :updatepath %HADOOP_BIN_PATH% @echo note: please use "yarn jar" to launch @echo YARN applications, not this command. @echo checknative [-a^|-h] check native hadoop and compression libraries availability + @echo conftest validate configuration XML files + @echo distch path:owner:group:permisson + @echo distributed metadata changer @echo distcp ^<srcurl^> ^<desturl^> copy file or directories recursively @echo archive -archiveName NAME -p ^<parent path^> ^<src^>* ^<dest^> create a hadoop archive @echo classpath prints the class path needed to get the @echo Hadoop jar and the required libraries @echo credential interact with credential providers + @echo jnipath prints the java.library.path + @echo kerbname show auth_to_local principal conversion @echo key manage keys via the KeyProvider + @echo trace view and modify Hadoop tracing settings @echo daemonlog get/set the log level for each daemon @echo or @echo CLASSNAME run the class named CLASSNAME
