Skip to content

Commit dc0dab5

Browse files
committed
HDFS-5375. hdfs.cmd does not expose several snapshot commands. Contributed by Chris Nauroth.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1533165 13f79535-47bb-0310-9956-ffa450edef68
1 parent 0dd5225 commit dc0dab5

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,8 @@ Release 2.3.0 - UNRELEASED
356356

357357
HDFS-4376. Fix race conditions in Balancer. (Junping Du via szetszwo)
358358

359+
HDFS-5375. hdfs.cmd does not expose several snapshot commands. (cnauroth)
360+
359361
Release 2.2.1 - UNRELEASED
360362

361363
INCOMPATIBLE CHANGES

hadoop-hdfs-project/hadoop-hdfs/src/main/bin/hdfs.cmd

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,14 @@ goto :eof
123123
set CLASS=org.apache.hadoop.hdfs.tools.GetGroups
124124
goto :eof
125125

126+
:snapshotDiff
127+
set CLASS=org.apache.hadoop.hdfs.tools.snapshot.SnapshotDiff
128+
goto :eof
129+
130+
:lsSnapshottableDir
131+
set CLASS=org.apache.hadoop.hdfs.tools.snapshot.LsSnapshottableDir
132+
goto :eof
133+
126134
@rem This changes %1, %2 etc. Hence those cannot be used after calling this.
127135
:make_command_arguments
128136
if "%1" == "--config" (
@@ -164,7 +172,10 @@ goto :eof
164172
@echo fetchdt fetch a delegation token from the NameNode
165173
@echo getconf get config values from configuration
166174
@echo groups get the groups which users belong to
167-
@echo Use -help to see options
175+
@echo snapshotDiff diff two snapshots of a directory or diff the
176+
@echo current directory contents with a snapshot
177+
@echo lsSnapshottableDir list all snapshottable dirs owned by the current user
178+
@echo Use -help to see options
168179
@echo.
169180
@echo Most commands print help when invoked w/o parameters.
170181

0 commit comments

Comments
 (0)