Skip to content

Commit

Permalink
HDFS-8431. hdfs crypto class not found in Windows. Contributed by Anu…
Browse files Browse the repository at this point in the history
… Engineer.
  • Loading branch information
cnauroth committed May 28, 2015
1 parent 5450413 commit 50eeea1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,9 @@ Release 2.8.0 - UNRELEASED
HDFS-8268. Port conflict log for data node server is not sufficient
(Mohammad Shahid Khan via vinayakumarb)

HDFS-8431. hdfs crypto class not found in Windows.
(Anu Engineer via cnauroth)

Release 2.7.1 - UNRELEASED

INCOMPATIBLE CHANGES
Expand Down
7 changes: 6 additions & 1 deletion hadoop-hdfs-project/hadoop-hdfs/src/main/bin/hdfs.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ if "%1" == "--loglevel" (
)
)

set hdfscommands=dfs namenode secondarynamenode journalnode zkfc datanode dfsadmin haadmin fsck balancer jmxget oiv oev fetchdt getconf groups snapshotDiff lsSnapshottableDir cacheadmin mover storagepolicies classpath
set hdfscommands=dfs namenode secondarynamenode journalnode zkfc datanode dfsadmin haadmin fsck balancer jmxget oiv oev fetchdt getconf groups snapshotDiff lsSnapshottableDir cacheadmin mover storagepolicies classpath crypto
for %%i in ( %hdfscommands% ) do (
if %hdfs-command% == %%i set hdfscommand=true
)
Expand Down Expand Up @@ -175,6 +175,10 @@ goto :eof
set CLASS=org.apache.hadoop.hdfs.tools.StoragePolicyAdmin
goto :eof

:crypto
set CLASS=org.apache.hadoop.hdfs.tools.CryptoAdmin
goto :eof

@rem This changes %1, %2 etc. Hence those cannot be used after calling this.
:make_command_arguments
if "%1" == "--config" (
Expand Down Expand Up @@ -227,6 +231,7 @@ goto :eof
@echo lsSnapshottableDir list all snapshottable dirs owned by the current user
@echo Use -help to see options
@echo cacheadmin configure the HDFS cache
@echo crypto configure HDFS encryption zones
@echo mover run a utility to move block replicas across storage types
@echo storagepolicies list/get/set block storage policies
@echo.
Expand Down

0 comments on commit 50eeea1

Please sign in to comment.