From 5a002aef12a9fe09c3026bedf803c366a360a799 Mon Sep 17 00:00:00 2001 From: cnauroth Date: Mon, 8 Jun 2015 16:22:03 -0700 Subject: [PATCH] MAPREDUCE-6392. Document mapred class path options. Contributed by Brahma Reddy Battula. (cherry picked from commit 025a3a8be07ba2b0c27ee39034b506d91aa486fc) --- hadoop-mapreduce-project/CHANGES.txt | 3 +++ .../src/site/markdown/MapredCommands.md | 10 ++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/hadoop-mapreduce-project/CHANGES.txt b/hadoop-mapreduce-project/CHANGES.txt index 02c6492768d..3f9ec140a45 100644 --- a/hadoop-mapreduce-project/CHANGES.txt +++ b/hadoop-mapreduce-project/CHANGES.txt @@ -82,6 +82,9 @@ Release 2.8.0 - UNRELEASED MAPREDUCE-6354. ShuffleHandler should be able to log shuffle connections (Chang Li via jlowe) + MAPREDUCE-6392. Document mapred class path options. + (Brahma Reddy Battula via cnauroth) + OPTIMIZATIONS BUG FIXES diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/markdown/MapredCommands.md b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/markdown/MapredCommands.md index 98ff588bed8..31c27232de8 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/markdown/MapredCommands.md +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/site/markdown/MapredCommands.md @@ -55,9 +55,15 @@ Creates a hadoop archive. More information can be found at ### `classpath` -Prints the class path needed to get the Hadoop jar and the required libraries. +Usage: `yarn classpath [--glob |--jar |-h |--help]` -Usage: `mapred classpath` +| 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. ### `distcp`