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

(cherry picked from commit a7fbd4e633)
This commit is contained in:
cnauroth 2014-11-05 08:38:50 -08:00
parent 2d0c56e898
commit a339fd3646
2 changed files with 13 additions and 1 deletions

View File

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

View File

@ -122,7 +122,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 (
if %hadoop-command% == %%i set corecommand=true
)
@ -182,6 +182,14 @@ call :updatepath %HADOOP_BIN_PATH%
set CLASS=org.apache.hadoop.util.Classpath
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
set path_to_add=%*
set current_path_comparable=%path%
@ -238,6 +246,8 @@ call :updatepath %HADOOP_BIN_PATH%
@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 key manage keys via the KeyProvider
@echo daemonlog get/set the log level for each daemon
@echo or
@echo CLASSNAME run the class named CLASSNAME