YARN-3786. Document yarn class path options. Contributed by Brahma Reddy 
Battula.

(cherry picked from commit a531b058aef48c9bf2e5366ed110e1f817316c1a)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/d9016b02
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/d9016b02
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/d9016b02

Branch: refs/heads/branch-2
Commit: d9016b0286290fd893a977e64cf2c94f71b7c6e8
Parents: cc96073
Author: cnauroth <cnaur...@apache.org>
Authored: Mon Jun 8 16:18:36 2015 -0700
Committer: cnauroth <cnaur...@apache.org>
Committed: Mon Jun 8 16:18:43 2015 -0700

----------------------------------------------------------------------
 hadoop-yarn-project/CHANGES.txt                           |  3 +++
 .../hadoop-yarn-site/src/site/markdown/YarnCommands.md    | 10 ++++++++--
 2 files changed, 11 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/d9016b02/hadoop-yarn-project/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt
index 1d1b403..bf6781f 100644
--- a/hadoop-yarn-project/CHANGES.txt
+++ b/hadoop-yarn-project/CHANGES.txt
@@ -249,6 +249,9 @@ Release 2.8.0 - UNRELEASED
     YARN-2716. Refactor ZKRMStateStore retry code with Apache Curator. 
     (Karthik Kambatla via jianhe)
 
+    YARN-3786. Document yarn class path options.
+    (Brahma Reddy Battula via cnauroth)
+
   OPTIMIZATIONS
 
     YARN-3339. TestDockerContainerExecutor should pull a single image and not

http://git-wip-us.apache.org/repos/asf/hadoop/blob/d9016b02/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/YarnCommands.md
----------------------------------------------------------------------
diff --git 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/YarnCommands.md
 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/YarnCommands.md
index c20e9a4..7f0edbd 100644
--- 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/YarnCommands.md
+++ 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/YarnCommands.md
@@ -85,9 +85,15 @@ prints applicationattempt(s) report
 
 ### `classpath`
 
-Usage: `yarn classpath`
+Usage: `yarn classpath [--glob |--jar <path> |-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.
 
 ### `container`
 

Reply via email to