Re: issue about no class find in running MR job

2013-12-15 Thread ch huang
i think it's a official uage ,you can type hadoop ,and read the last line of the help output ,and i use CDH 4.4 ,i do not know if community version is support this usage On Sat, Dec 14, 2013 at 2:27 AM, Vinod Kumar Vavilapalli < vino...@hortonworks.com> wrote: > That is not the correct usage. Yo

Re: issue about no class find in running MR job

2013-12-13 Thread Vinod Kumar Vavilapalli
That is not the correct usage. You should do "hadoop jar ". Or if you are adventurous, directly invoke your class using java and setting appropriate classpath. Thanks, +Vinod On Dec 12, 2013, at 6:11 PM, ch huang wrote: > hadoop ../test/WordCount -- CONFIDENTIALITY NOTICE NOTICE: This mes

Re: issue about no class find in running MR job

2013-12-12 Thread Tao Xiao
每一个可运行的Jar包都要为它指定主类,要么通过manifest文件,要么通过命令行参数 2013/12/13 ch huang > i find the reason > no main class found > > # hadoop classpath > > /etc/hadoop/conf:/usr/lib/hadoop/lib/*:/usr/lib/hadoop/.//*:/usr/lib/hadoop-hdfs/./:/usr/lib/hadoop-hdfs/lib/*:/usr/lib/hadoop-hdfs/.//*:/usr/lib/hadoop-yarn/lib

Re: issue about no class find in running MR job

2013-12-12 Thread ch huang
i find the reason no main class found # hadoop classpath /etc/hadoop/conf:/usr/lib/hadoop/lib/*:/usr/lib/hadoop/.//*:/usr/lib/hadoop-hdfs/./:/usr/lib/hadoop-hdfs/lib/*:/usr/lib/hadoop-hdfs/.//*:/usr/lib/hadoop-yarn/lib/*:/usr/lib/hadoop-yarn/.//*:/usr/lib/hadoop-mapreduce/lib/*:/usr/lib/hadoop-map

Re: issue about no class find in running MR job

2013-12-12 Thread ch huang
no ,it need not , hadoop can run class directly,i try in other box,it work fine, # hadoop com/test/demo/WordCount Error: Could not find or load main class com.test.demo.WordCount [root@CHBM224 test]# hadoop classpath /etc/hadoop/conf:/usr/lib/hadoop/lib/*:/usr/lib/hadoop/.//*:/usr/lib/hadoop-hdfs

Re: issue about no class find in running MR job

2013-12-12 Thread Tao Xiao
how did you package and compile your jar ? did you specify the main class for the JAR file you generated ? 2013/12/13 ch huang > hi,maillist: > > i rewrite WordCount.java and try to compile and run it but > it say not find main class ,why? > > [root@CHBM224 myMR]# cat WordCount.ja

issue about no class find in running MR job

2013-12-12 Thread ch huang
hi,maillist: i rewrite WordCount.java and try to compile and run it but it say not find main class ,why? [root@CHBM224 myMR]# cat WordCount.java import java.io.IOException; import java.util.StringTokenizer; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.conf.C