HDFS-6779. Add missing version subcommand for hdfs. Contributed by Sasaki Toru.

This commit is contained in:
Haohui Mai 2014-09-29 18:10:47 -07:00
parent c88c6c57aa
commit 0577eb32fc
3 changed files with 13 additions and 0 deletions

View File

@ -522,6 +522,9 @@ Release 2.6.0 - UNRELEASED
HDFS-7124. Remove EncryptionZoneManager.NULL_EZ. (clamb via wang) HDFS-7124. Remove EncryptionZoneManager.NULL_EZ. (clamb via wang)
HDFS-6779. Add missing version subcommand for hdfs.
(Sasaki Toru via wheat9)
OPTIMIZATIONS OPTIMIZATIONS
HDFS-6690. Deduplicate xattr names in memory. (wang) HDFS-6690. Deduplicate xattr names in memory. (wang)

View File

@ -49,6 +49,7 @@ function hadoop_usage
echo " snapshotDiff diff two snapshots of a directory or diff the" echo " snapshotDiff diff two snapshots of a directory or diff the"
echo " current directory contents with a snapshot" echo " current directory contents with a snapshot"
echo " storagepolicies get all the existing block storage policies" echo " storagepolicies get all the existing block storage policies"
echo " version print the version"
echo " zkfc run the ZK Failover Controller daemon" echo " zkfc run the ZK Failover Controller daemon"
echo "" echo ""
echo "Most commands print help when invoked w/o parameters." echo "Most commands print help when invoked w/o parameters."
@ -220,6 +221,9 @@ case ${COMMAND} in
storagepolicies) storagepolicies)
CLASS=org.apache.hadoop.hdfs.tools.GetStoragePolicies CLASS=org.apache.hadoop.hdfs.tools.GetStoragePolicies
;; ;;
version)
CLASS=org.apache.hadoop.util.VersionInfo
;;
zkfc) zkfc)
daemon="true" daemon="true"
CLASS='org.apache.hadoop.hdfs.tools.DFSZKFailoverController' CLASS='org.apache.hadoop.hdfs.tools.DFSZKFailoverController'

View File

@ -117,6 +117,12 @@ HDFS Commands Guide
| | (no progress). | | (no progress).
*------------------------+---------------------------------------------+ *------------------------+---------------------------------------------+
** <<<version>>>
Prints the version.
Usage: <<<hdfs version>>>
* Administration Commands * Administration Commands
Commands useful for administrators of a hadoop cluster. Commands useful for administrators of a hadoop cluster.