急!!!hadoop下eclipse程序运行出现如下问题,怎么办

15/04/09 14:47:42 INFO util.NativeCodeLoader: Loaded the native-hadoop library
15/04/09 14:47:42 WARN mapred.JobClient: Use GenericOptionsParser for parsing the arguments. Applications should implement Tool for the same.
15/04/09 14:47:42 WARN snappy.LoadSnappy: Snappy native library not loaded
15/04/09 14:47:42 INFO mapred.FileInputFormat: Total input paths to process : 1
15/04/09 14:47:43 INFO mapred.JobClient: Running job: job_local_0001
15/04/09 14:47:44 INFO util.ProcessTree: setsid exited with exit code 0
15/04/09 14:47:44 INFO mapred.Task: Using ResourceCalculatorPlugin : org.apache.hadoop.util.LinuxResourceCalculatorPlugin@1e29f45
15/04/09 14:47:44 INFO mapred.MapTask: numReduceTasks: 1
15/04/09 14:47:44 INFO mapred.MapTask: io.sort.mb = 100
15/04/09 14:47:44 INFO mapred.JobClient: map 0% reduce 0%
15/04/09 14:47:46 INFO mapred.MapTask: data buffer = 79691776/99614720
15/04/09 14:47:46 INFO mapred.MapTask: record buffer = 262144/327680
null
15/04/09 14:47:46 WARN mapred.LocalJobRunner: job_local_0001
java.lang.NullPointerException
at java.util.StringTokenizer.(StringTokenizer.java:199)
at java.util.StringTokenizer.(StringTokenizer.java:236)
at word.word$Map.map(word.java:124)
at word.word$Map.map(word.java:1)
at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50)
at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:436)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:372)
at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:212)
15/04/09 14:47:47 INFO mapred.JobClient: Job complete: job_local_0001
15/04/09 14:47:47 INFO mapred.JobClient: Counters: 0
15/04/09 14:47:47 INFO mapred.JobClient: Job Failed: NA
Exception in thread "main" java.io.IOException: Job failed!
at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1265)
at word.word.main(word.java:191)

1个回答

看看你在自己写的mapperreduce代码里面是否依赖了其它第三方包,发布mapperreduce的时候是否把这些第三方包也加载进去了。

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐