From cc960734e4f23a9e9c3bb20951dc52ddc26f398b Mon Sep 17 00:00:00 2001 From: cnauroth Date: Mon, 8 Jun 2015 16:15:38 -0700 Subject: [PATCH] HDFS-8553. Document hdfs class path options. Contributed by Brahma Reddy Battula. (cherry picked from commit d2832b3d4243c6c470c774bc33fd13f70b3e7b72) --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../hadoop-hdfs/src/site/markdown/HDFSCommands.md | 10 ++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index ed484ad86b9..0a9b7cdd474 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -269,6 +269,9 @@ Release 2.8.0 - UNRELEASED HDFS-8116. Cleanup uncessary if LOG.isDebugEnabled() from RollingWindowManager. (Brahma Reddy Battula via xyao) + HDFS-8553. Document hdfs class path options. + (Brahma Reddy Battula via cnauroth) + OPTIMIZATIONS HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md index 43614f724fa..dbb594dfa0b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md +++ b/hadoop-hdfs-project/hadoop-hdfs/src/site/markdown/HDFSCommands.md @@ -71,9 +71,15 @@ Commands useful for users of a hadoop cluster. ### `classpath` -Usage: `hdfs classpath` +Usage: `hdfs classpath [--glob |--jar |-h |--help]` -Prints the class path needed to get the Hadoop jar and the required libraries +| COMMAND\_OPTION | Description | +|:---- |:---- | +| `--glob` | expand wildcards | +| `--jar` *path* | write classpath as manifest in jar named *path* | +| `-h`, `--help` | print help | + +Prints the class path needed to get the Hadoop jar and the required libraries. If called without arguments, then prints the classpath set up by the command scripts, which is likely to contain wildcards in the classpath entries. Additional options print the classpath after wildcard expansion or write the classpath into the manifest of a jar file. The latter is useful in environments where wildcards cannot be used and the expanded classpath exceeds the maximum supported command line length. ### `dfs`