HDFS-4556. Add snapshotdiff and LsSnapshottableDir tools to hdfs script. Contributed by Arpit Agarwal
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HDFS-2802@1457712 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b8f3133e04
commit
77f7bfa9ef
@ -198,3 +198,6 @@ Branch-2802 Snapshot (Unreleased)
|
|||||||
|
|
||||||
HDFS-4144. Create test for all snapshot-related metrics.
|
HDFS-4144. Create test for all snapshot-related metrics.
|
||||||
(Jing Zhao via suresh)
|
(Jing Zhao via suresh)
|
||||||
|
|
||||||
|
HDFS-4556. Add snapshotdiff and LsSnapshottableDir tools to hdfs script.
|
||||||
|
(Arpit Agarwal via szetszwo)
|
||||||
|
@ -53,6 +53,9 @@ function print_usage(){
|
|||||||
echo " fetchdt fetch a delegation token from the NameNode"
|
echo " fetchdt fetch a delegation token from the NameNode"
|
||||||
echo " getconf get config values from configuration"
|
echo " getconf get config values from configuration"
|
||||||
echo " groups get the groups which users belong to"
|
echo " groups get the groups which users belong to"
|
||||||
|
echo " snapshotDiff diff two snapshots of a directory or diff the"
|
||||||
|
echo " current directory contents with a snapshot"
|
||||||
|
echo " lsSnapshottableDir list all snapshottable dirs owned by the current user"
|
||||||
echo " Use -help to see options"
|
echo " Use -help to see options"
|
||||||
echo ""
|
echo ""
|
||||||
echo "Most commands print help when invoked w/o parameters."
|
echo "Most commands print help when invoked w/o parameters."
|
||||||
@ -142,6 +145,10 @@ elif [ "$COMMAND" = "getconf" ] ; then
|
|||||||
CLASS=org.apache.hadoop.hdfs.tools.GetConf
|
CLASS=org.apache.hadoop.hdfs.tools.GetConf
|
||||||
elif [ "$COMMAND" = "groups" ] ; then
|
elif [ "$COMMAND" = "groups" ] ; then
|
||||||
CLASS=org.apache.hadoop.hdfs.tools.GetGroups
|
CLASS=org.apache.hadoop.hdfs.tools.GetGroups
|
||||||
|
elif [ "$COMMAND" = "snapshotDiff" ] ; then
|
||||||
|
CLASS=org.apache.hadoop.hdfs.tools.snapshot.SnapshotDiff
|
||||||
|
elif [ "$COMMAND" = "lsSnapshottableDir" ] ; then
|
||||||
|
CLASS=org.apache.hadoop.hdfs.tools.snapshot.LsSnapshottableDir
|
||||||
else
|
else
|
||||||
CLASS="$COMMAND"
|
CLASS="$COMMAND"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user