本帖最后由 nettman 于 2014-5-27 03:31 编辑
在eclipse中使用插件运行wordcount列子,出现
WARN mapred.JobClient:No job jar file set. User classes may not be found. See JobConf(Class) orJobConf#setJar(String) INFOnput.FileInputFormat: Total input paths to process : WARNutil.NativeCodeLoader: Unable to load native-hadoop library for yourplatform... using builtin-java classes where applicable WARN snappy.LoadSnappy:Snappy native library not loaded INFO mapred.JobClient:Running job: job_201404221445_0021 INFO mapred.JobClient:map 0% reduce 0% INFO mapred.JobClient:Task Id : attempt_201404221445_0021_m_000000_0, Status : FAILED java.lang.RuntimeException:java.lang.ClassNotFoundException: com.test.Test$TokenizerMapper at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:857) atorg.apache.hadoop.mapreduce.JobContext.getMapperClass(JobContext.java:199) atorg.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:718) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:364) atorg.apache.hadoop.mapred.Child$4.run(Child.java:255) atjava.security.AccessController.doPrivileged(Native Method) atjavax.security.auth.Subject.doAs(Subject.java:396) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1190) atorg.apache.hadoop.mapred.Child.main(Child.java:249) Caused by:java.lang.ClassNotFoundException: com.yq.test.Test$TokenizerMapper at java.net.URLClassLoader$1.run(URLClassLoader.java:202) atjava.security.AccessController.doPrivileged(Native Method) atjava.net.URLClassLoader.findClass(URLClassLoader.java:190) atjava.lang.ClassLoader.loadClass(ClassLoader.java:306) atsun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) atjava.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:249) atorg.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:810) atorg.apache.hadoop.conf.Configuration.getClass(Configuration.java:855) ... 8 more
查看了一些帖子都没有效果,问一下这个是什么原因导致的?
|