hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szets...@apache.org
Subject svn commit: r791937 - in /hadoop/common/trunk: CHANGES.txt bin/hadoop src/docs/src/documentation/content/xdocs/commands_manual.xml
Date Tue, 07 Jul 2009 18:48:32 GMT
Author: szetszwo
Date: Tue Jul  7 18:48:32 2009
New Revision: 791937

URL: http://svn.apache.org/viewvc?rev=791937&view=rev
Log:
HADOOP-5976. Add a new command, classpath, to the hadoop script.  Contributed by Owen O'Malley
and Gary Murry

Modified:
    hadoop/common/trunk/CHANGES.txt
    hadoop/common/trunk/bin/hadoop
    hadoop/common/trunk/src/docs/src/documentation/content/xdocs/commands_manual.xml

Modified: hadoop/common/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=791937&r1=791936&r2=791937&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Tue Jul  7 18:48:32 2009
@@ -154,6 +154,9 @@
 
     HADOOP-3315. Add a new, binary file foramt, TFile. (Hong Tang via cdouglas)
 
+    HADOOP-5976. Add a new command, classpath, to the hadoop script.  (Owen
+    O'Malley and Gary Murry via szetszwo)
+
   IMPROVEMENTS
 
     HADOOP-4565. Added CombineFileInputFormat to use data locality information

Modified: hadoop/common/trunk/bin/hadoop
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/bin/hadoop?rev=791937&r1=791936&r2=791937&view=diff
==============================================================================
--- hadoop/common/trunk/bin/hadoop (original)
+++ hadoop/common/trunk/bin/hadoop Tue Jul  7 18:48:32 2009
@@ -30,6 +30,8 @@
   echo "  jar <jar>            run a jar file"
   echo "  distcp <srcurl> <desturl> copy file or directories recursively"
   echo "  archive -archiveName NAME <src>* <dest> create a hadoop archive"
+  echo "  classpath            prints the class path needed to get the"
+  echo "                       Hadoop jar and the required libraries"
   echo "  daemonlog            get/set the log level for each daemon"
   echo " or"
   echo "  CLASSNAME            run the class named CLASSNAME"
@@ -72,6 +74,14 @@
     fi
     ;;
 
+  classpath)
+    if $cygwin; then
+      CLASSPATH=`cygpath -p -w "$CLASSPATH"`
+    fi
+    echo $CLASSPATH
+    exit
+    ;;
+
   #core commands  
   *)
     # the core commands

Modified: hadoop/common/trunk/src/docs/src/documentation/content/xdocs/commands_manual.xml
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/docs/src/documentation/content/xdocs/commands_manual.xml?rev=791937&r1=791936&r2=791937&view=diff
==============================================================================
--- hadoop/common/trunk/src/docs/src/documentation/content/xdocs/commands_manual.xml (original)
+++ hadoop/common/trunk/src/docs/src/documentation/content/xdocs/commands_manual.xml Tue Jul
 7 18:48:32 2009
@@ -410,6 +410,15 @@
 					 Runs the class named CLASSNAME.
 				</p>
 			</section>
+			<section>
+				<title> classpath </title>
+				<p>
+					Prints the class path needed to get the Hadoop jar and the required libraries.
+				</p>
+				<p>
+					<code>Usage: hadoop classpath</code>
+				</p>
+			</section>
     </section>
 		<section>
 			<title> Administration Commands </title>



Mime
View raw message