HADOOP-11265. Credential and Key Shell Commands not available on Windows. Contributed by Larry McCay.

This commit is contained in:
cnauroth 2014-11-05 08:38:50 -08:00
parent 8e9502e05d
commit a7fbd4e633
2 changed files with 13 additions and 1 deletions

View File

@ -1065,6 +1065,8 @@ Release 2.6.0 - UNRELEASED
HADOOP-11241. Fixed intermittent TestNMSimulator failure due to timing issue. HADOOP-11241. Fixed intermittent TestNMSimulator failure due to timing issue.
(Varun Vasudev via zjshen) (Varun Vasudev via zjshen)
HADOOP-11265. Credential and Key Shell Commands not available on Windows.
(Larry McCay via cnauroth)
Release 2.5.2 - UNRELEASED Release 2.5.2 - UNRELEASED

View File

@ -142,7 +142,7 @@ call :updatepath %HADOOP_BIN_PATH%
) )
) )
set corecommands=fs version jar checknative distcp daemonlog archive classpath set corecommands=fs version jar checknative distcp daemonlog archive classpath credential key
for %%i in ( %corecommands% ) do ( for %%i in ( %corecommands% ) do (
if %hadoop-command% == %%i set corecommand=true if %hadoop-command% == %%i set corecommand=true
) )
@ -202,6 +202,14 @@ call :updatepath %HADOOP_BIN_PATH%
set CLASS=org.apache.hadoop.util.Classpath set CLASS=org.apache.hadoop.util.Classpath
goto :eof goto :eof
:credential
set CLASS=org.apache.hadoop.security.alias.CredentialShell
goto :eof
:key
set CLASS=org.apache.hadoop.crypto.key.KeyShell
goto :eof
:updatepath :updatepath
set path_to_add=%* set path_to_add=%*
set current_path_comparable=%path% set current_path_comparable=%path%
@ -258,6 +266,8 @@ call :updatepath %HADOOP_BIN_PATH%
@echo archive -archiveName NAME -p ^<parent path^> ^<src^>* ^<dest^> create a hadoop archive @echo archive -archiveName NAME -p ^<parent path^> ^<src^>* ^<dest^> create a hadoop archive
@echo classpath prints the class path needed to get the @echo classpath prints the class path needed to get the
@echo Hadoop jar and the required libraries @echo Hadoop jar and the required libraries
@echo credential interact with credential providers
@echo key manage keys via the KeyProvider
@echo daemonlog get/set the log level for each daemon @echo daemonlog get/set the log level for each daemon
@echo or @echo or
@echo CLASSNAME run the class named CLASSNAME @echo CLASSNAME run the class named CLASSNAME