Akhil : Thank you very much! I will try it. akhil1988 wrote: > > The steps are given in the apache mapred tutorial. However, I will restate > them for your case: > > First of all compile your AB.java file and then put all the classes > generated into a single jar file using > jar -cvf p.jar AB.class [other class files if any] > > If your AB.java is in a package then run > javac -cp [path to hadoop jar file] -d jodDirectory AB.java > jar -cvf p.jar -C jobDirectory/ . > > Now you can run your hadoop job using: > > hadoop jar p.jar path.to.AB.class.file.in.the.jar.file [args] > > --Akhil > > > jdh wrote: >> >> Hi, everyone~ >> I have a question about bin/hadoop jar. I do not know where to place the >> class file. For example, when I used command like this " bin/hadoop jar >> p.jar AB", it could not run until I placed the AB class in my hadoop dir. >> Can somebody help me about how to use hadoop jar? >> Thanks! >> > >
-- View this message in context: http://www.nabble.com/Can-you-help-me-about-how-to-use-hadoop-jar--tp24427337p24474237.html Sent from the Hadoop core-user mailing list archive at Nabble.com.
