HADOOP-12070. Some of the bin/hadoop subcommands are not available on Windows. (Contributed by Kengo Seki)
This commit is contained in:
parent
d1dd248b75
commit
2e76c2f751
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue