Browse Source

HADOOP-6594. Provide a fetchdt tool via bin/hdfs. Contributed by Jakob Homan.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@916907 13f79535-47bb-0310-9956-ffa450edef68
Arun Murthy 15 years ago
parent
commit
1d8cb8b785
2 changed files with 5 additions and 0 deletions
  1. 2 0
      CHANGES.txt
  2. 3 0
      bin/hdfs

+ 2 - 0
CHANGES.txt

@@ -175,6 +175,8 @@ Trunk (unreleased changes)
     HADOOP-6573. Support for persistent delegation tokens.
     (Jitendra Pandey via shv)
 
+    HADOOP-6594. Provide a fetchdt tool via bin/hdfs. (jhoman via acmurthy) 
+
   OPTIMIZATIONS
 
     HADOOP-6467. Improve the performance on HarFileSystem.listStatus(..).

+ 3 - 0
bin/hdfs

@@ -32,6 +32,7 @@ function print_usage(){
   echo "  balancer             run a cluster balancing utility"
   echo "  jmxget               get JMX exported values from NameNode or DataNode."
   echo "  oiv                  apply the offline fsimage viewer to an fsimage"
+  echo "  fetchdt              fetch a delegation token from the NameNode"
   echo "						Use -help to see options"
   echo ""
   echo "Most commands print help when invoked w/o parameters."
@@ -70,6 +71,8 @@ elif [ "$COMMAND" = "jmxget" ] ; then
   CLASS=org.apache.hadoop.hdfs.tools.JMXGet
 elif [ "$COMMAND" = "oiv" ] ; then
   CLASS=org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageViewer
+elif [ "$COMMAND" = "fetchdt" ] ; then
+  CLASS=org.apache.hadoop.hdfs.tools.DelegationTokenFetcher
 else
   echo $COMMAND - invalid command
   print_usage