首先,我说说碰到这个问题的原因
造成在tasktracker的log中出现错误:
2012-01-04 13:49:27,734 INFO org.apache.Hadoop.mapred.TaskTracker: JVM with ID: jvm_201112211104_0002_m_1605380604 given task: attempt_201112211104_0002_m_000002_0
2012-01-04 13:49:28,245 WARN org.apache.hadoop.mapred.DefaultTaskController: Exit code from task is : 134
2012-01-04 13:49:28,245 INFO org.apache.hadoop.mapred.DefaultTaskController: Output from DefaultTaskController's launchTask follows:
2012-01-04 13:49:28,245 INFO org.apache.hadoop.mapred.TaskController:
2012-01-04 13:49:28,364 INFO org.apache.hadoop.mapred.JvmManager: JVM : jvm_201112211104_0002_m_1605380604 exited with exit code 134. Number of tasks it ran: 0
2012-01-04 13:49:28,367 WARN org.apache.hadoop.mapred.TaskRunner: attempt_201112211104_0002_m_000002_0 : Child Error
java.io.IOException: Task process exit with nonzero status of 134.
at org.apache.hadoop.mapred.TaskRunner.run(TaskRunner.java:258)
是由于服务器上面试64bit的集群,自己测试的集群是32位的,在自己测试机上跑wordcount没有问题,不过在服务器上一跑job,就一直卡在
mapred.JobClient: map 0% reduce 0%
试过挺多方法,都没有解决,感到挺奇怪的,正在试下面这篇文章中说下ant重编,不过重编的过程很慢,希望能解决问题。。