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. You
That is not the correct usage. You should do hadoop jar your-jar-name
main-class-name. 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 justlo...@gmail.com wrote:
hadoop ../test/WordCount
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
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 justlo...@gmail.com
hi,maillist:
i rewrite WordCount.java and try to compile and run it but
it say not find main class ,why?
[root@CHBM224 myMR]#
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
i find the reason
no main class found
# hadoop classpath
每一个可运行的Jar包都要为它指定主类,要么通过manifest文件,要么通过命令行参数
2013/12/13 ch huang justlo...@gmail.com
i find the reason
no main class found
# hadoop classpath