hadoop-mapreduce-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acmur...@apache.org
Subject svn commit: r1145889 - in /hadoop/common/trunk/mapreduce: CHANGES.txt bin/mapred
Date Wed, 13 Jul 2011 07:17:53 GMT
Author: acmurthy
Date: Wed Jul 13 07:17:53 2011
New Revision: 1145889

URL: http://svn.apache.org/viewvc?rev=1145889&view=rev
Log:
MAPREDUCE-2682. Add "mapred classpath" command to print classpath for MR applications. Contributed
by vinodkv.

Modified:
    hadoop/common/trunk/mapreduce/CHANGES.txt
    hadoop/common/trunk/mapreduce/bin/mapred

Modified: hadoop/common/trunk/mapreduce/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/mapreduce/CHANGES.txt?rev=1145889&r1=1145888&r2=1145889&view=diff
==============================================================================
--- hadoop/common/trunk/mapreduce/CHANGES.txt (original)
+++ hadoop/common/trunk/mapreduce/CHANGES.txt Wed Jul 13 07:17:53 2011
@@ -13,6 +13,9 @@ Trunk (unreleased changes)
 
   NEW FEATURES
 
+    MAPREDUCE-2682. Add "mapred classpath" command to print classpath
+    for MR applications. (vinodkv via acmurthy) 
+
     MAPREDUCE-2107. [Gridmix] Total heap usage emulation in Gridmix.
     (Amar Kamat and Ravi Gummadi via amarrk)
 

Modified: hadoop/common/trunk/mapreduce/bin/mapred
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/mapreduce/bin/mapred?rev=1145889&r1=1145888&r2=1145889&view=diff
==============================================================================
--- hadoop/common/trunk/mapreduce/bin/mapred (original)
+++ hadoop/common/trunk/mapreduce/bin/mapred Wed Jul 13 07:17:53 2011
@@ -34,6 +34,8 @@ function print_usage(){
   echo "  pipes                run a Pipes job"
   echo "  job                  manipulate MapReduce jobs"
   echo "  queue                get information regarding JobQueues"
+  echo "  classpath            prints the class path needed for running"
+  echo "                       mapreduce subcommands"
   echo "  groups               get the groups which users belong to"
   echo ""
   echo "Most commands print help when invoked w/o parameters."
@@ -66,6 +68,8 @@ elif [ "$COMMAND" = "pipes" ] ; then
 elif [ "$COMMAND" = "sampler" ] ; then
   CLASS=org.apache.hadoop.mapred.lib.InputSampler
   HADOOP_OPTS="$HADOOP_OPTS $HADOOP_CLIENT_OPTS"
+elif [ "$COMMAND" = "classpath" ] ; then
+  echo -n 
 elif [ "$COMMAND" = "groups" ] ; then
   CLASS=org.apache.hadoop.mapred.tools.GetGroups
   HADOOP_OPTS="$HADOOP_OPTS $HADOOP_CLIENT_OPTS"
@@ -105,5 +109,11 @@ done
 if $cygwin; then
   CLASSPATH=`cygpath -p -w "$CLASSPATH"`
 fi
+
+if [ "$COMMAND" = "classpath" ] ; then
+  echo $CLASSPATH
+  exit
+fi
+
 export CLASSPATH
 exec "$JAVA" $JAVA_HEAP_MAX $HADOOP_OPTS $CLASS "$@"



Mime
View raw message