Skip to content

Commit

Permalink
HDFS-8539. Hdfs doesnt have class debug in windows. Contributed by An…
Browse files Browse the repository at this point in the history
…u Engineer.
  • Loading branch information
cnauroth committed Jun 7, 2015
1 parent bd69ea4 commit a6cb489
Show file tree
Hide file tree
Showing 2 changed files with 10 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 @@ -861,6 +861,9 @@ Release 2.8.0 - UNRELEASED
HDFS-8463. Calling DFSInputStream.seekToNewSource just after stream creation
causes NullPointerException (Masatake Iwasaki via kihwal)

HDFS-8539. Hdfs doesnt have class 'debug' in windows.
(Anu Engineer via cnauroth)

Release 2.7.1 - UNRELEASED

INCOMPATIBLE CHANGES
Expand Down
8 changes: 7 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 crypto
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 debug
for %%i in ( %hdfscommands% ) do (
if %hdfs-command% == %%i set hdfscommand=true
)
Expand Down Expand Up @@ -179,6 +179,11 @@ goto :eof
set CLASS=org.apache.hadoop.hdfs.tools.CryptoAdmin
goto :eof

:debug
set CLASS=org.apache.hadoop.hdfs.tools.DebugAdmin
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 @@ -237,4 +242,5 @@ goto :eof
@echo.
@echo Most commands print help when invoked w/o parameters.

@rem There are also debug commands, but they don't show up in this listing.
endlocal

0 comments on commit a6cb489

Please sign in to comment.