HDFS-6779. Add missing version subcommand for hdfs. Contributed by Sasaki Toru.
This commit is contained in:
parent
aa3d6d374d
commit
eea383ff2e
|
@ -267,6 +267,9 @@ Release 2.6.0 - UNRELEASED
|
|||
|
||||
HDFS-7124. Remove EncryptionZoneManager.NULL_EZ. (clamb via wang)
|
||||
|
||||
HDFS-6779. Add missing version subcommand for hdfs.
|
||||
(Sasaki Toru via wheat9)
|
||||
|
||||
OPTIMIZATIONS
|
||||
|
||||
HDFS-6690. Deduplicate xattr names in memory. (wang)
|
||||
|
|
|
@ -65,6 +65,7 @@ function print_usage(){
|
|||
echo " cacheadmin configure the HDFS cache"
|
||||
echo " crypto configure HDFS encryption zones"
|
||||
echo " storagepolicies get all the existing block storage policies"
|
||||
echo " version print the version"
|
||||
echo ""
|
||||
echo "Most commands print help when invoked w/o parameters."
|
||||
}
|
||||
|
@ -112,7 +113,7 @@ if [ "$COMMAND" == "nfs3" ] && [ "$EUID" -eq 0 ] && [ -n "$HADOOP_PRIVILEGED_NFS
|
|||
if [ -n "$HADOOP_PRIVILEGED_NFS_PID_DIR" ]; then
|
||||
HADOOP_PID_DIR=$HADOOP_PRIVILEGED_NFS_PID_DIR
|
||||
fi
|
||||
|
||||
|
||||
if [ -n "$HADOOP_PRIVILEGED_NFS_LOG_DIR" ]; then
|
||||
HADOOP_LOG_DIR=$HADOOP_PRIVILEGED_NFS_LOG_DIR
|
||||
HADOOP_OPTS="$HADOOP_OPTS -Dhadoop.log.dir=$HADOOP_LOG_DIR"
|
||||
|
@ -195,6 +196,8 @@ elif [ "$COMMAND" = "cacheadmin" ] ; then
|
|||
CLASS=org.apache.hadoop.hdfs.tools.CacheAdmin
|
||||
elif [ "$COMMAND" = "crypto" ] ; then
|
||||
CLASS=org.apache.hadoop.hdfs.tools.CryptoAdmin
|
||||
elif [ "$COMMAND" = "version" ] ; then
|
||||
CLASS=org.apache.hadoop.util.VersionInfo
|
||||
else
|
||||
CLASS="$COMMAND"
|
||||
fi
|
||||
|
|
|
@ -114,6 +114,12 @@ HDFS Commands Guide
|
|||
| -racks | Print out network topology for data-node locations.
|
||||
*------------------------+---------------------------------------------+
|
||||
|
||||
** <<<version>>>
|
||||
|
||||
Prints the version.
|
||||
|
||||
Usage: <<<hdfs version>>>
|
||||
|
||||
* Administration Commands
|
||||
|
||||
Commands useful for administrators of a hadoop cluster.
|
||||
|
|
Loading…
Reference in New Issue