hadoop运行踩坑:Exception in thread main java.lang.ClassNotFoundException

执行此命令时给我报了这个错误Exception in thread main java.lang.ClassNotFoundException

hadoop jar MapReduceDemo-1.0-SNAPSHOT.jar mapreduce.word2.WordCountDriver.java /sanguo /outputss

通过研究我发现命令的后面不能加java

hadoop jar MapReduceDemo-1.0-SNAPSHOT.jar mapreduce.word2.WordCountDriver /sanguo /outputss

运行成功

你可能感兴趣的:(java,hadoop,java,jar)