hadoop-mapreduce-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1079268 - /hadoop/mapreduce/branches/yahoo-merge/bin/mapred
Date Tue, 08 Mar 2011 06:02:19 GMT
Author: omalley
Date: Tue Mar  8 06:02:19 2011
New Revision: 1079268

URL: http://svn.apache.org/viewvc?rev=1079268&view=rev
Log:
commit 0c9e97706b81a81e9f809e2f81851857ef47dfff
Author: Vinod Kumar V <vinodkv@sightbusy-lx.(none)>
Date:   Mon Feb 21 09:59:04 2011 +0530

    [] - Adding classpath command to bin/mapred. Needed for YARN.

Modified:
    hadoop/mapreduce/branches/yahoo-merge/bin/mapred

Modified: hadoop/mapreduce/branches/yahoo-merge/bin/mapred
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/branches/yahoo-merge/bin/mapred?rev=1079268&r1=1079267&r2=1079268&view=diff
==============================================================================
--- hadoop/mapreduce/branches/yahoo-merge/bin/mapred (original)
+++ hadoop/mapreduce/branches/yahoo-merge/bin/mapred Tue Mar  8 06:02:19 2011
@@ -29,6 +29,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 ""
   echo "Most commands print help when invoked w/o parameters."
 }
@@ -60,6 +62,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 
 else
   echo $COMMAND - invalid command
   print_usage
@@ -96,5 +100,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