Re: java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.TaskAttemptContext, but class was expected
mapred.LocalJobRunner: OutputCommitter set in config null 14/03/17 11:47:33 INFO mapred.LocalJobRunner: OutputCommitter is org.apache.hadoop.mapreduce.lib.output.FileOutputCommitter 14/03/17 11:47:33 INFO mapred.LocalJobRunner: Waiting for map tasks 14/03/17 11:47:33 INFO mapred.LocalJobRunner: Starting task: attempt_local42076163_0001_m_00_0 14/03/17 11:47:33 INFO mapred.Task: Using ResourceCalculatorProcessTree : [ ] 14/03/17 11:47:33 INFO mapred.MapTask: Processing split: Paths:/user/speech/demo/text1.txt:0+628,/user/speech/demo/text10.txt:0+1327,/user/speech/demo/text2.txt:0+5165,/user/speech/demo/text3.txt:0+3736,/user/speech/demo/text4.txt:0+4338,/user/speech/demo/text5.txt:0+3338,/user/speech/demo/text6.txt:0+5836,/user/speech/demo/text7.txt:0+2936,/user/speech/demo/text8.txt:0+905,/user/speech/demo/text9.txt:0+1566 14/03/17 11:47:33 INFO mapred.LocalJobRunner: Map task executor complete. 14/03/17 11:47:33 WARN mapred.LocalJobRunner: job_local42076163_0001 java.lang.Exception: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:403) Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader.initNextRecordReader(CombineFileRecordReader.java:164) at org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader.(CombineFileRecordReader.java:126) at org.apache.mahout.text.MultipleTextFileInputFormat.createRecordReader(MultipleTextFileInputFormat.java:43) at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.(MapTask.java:491) at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:734) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:339) at org.apache.hadoop.mapred.LocalJobRunner$Job$MapTaskRunnable.run(LocalJobRunner.java:235) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader.initNextRecordReader(CombineFileRecordReader.java:155) ... 11 more Caused by: java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.TaskAttemptContext, but class was expected at org.apache.mahout.text.WholeFileRecordReader.(WholeFileRecordReader.java:59) ... 16 more 14/03/17 11:47:33 INFO mapreduce.Job: Job job_local42076163_0001 running in uber mode : false 14/03/17 11:47:33 INFO mapreduce.Job: map 0% reduce 0% 14/03/17 11:47:33 INFO mapreduce.Job: Job job_local42076163_0001 failed with state FAILED due to: NA 14/03/17 11:47:34 INFO mapreduce.Job: Counters: 0 14/03/17 11:47:34 INFO driver.MahoutDriver: Program took 3607 ms (Minutes: 0.06013) Here is additional information: [speech@h14 ~]$ mahout/bin/mahout classpath MAHOUT_LOCAL is not set; adding HADOOP_CONF_DIR to classpath. Running on hadoop, using /usr/bin/hadoop and HADOOP_CONF_DIR=/etc/hadoop/conf :/home/speech/mahout/src/conf:/etc/hadoop/conf:/usr/lib/tools.jar:/home/speech/mahout/mahout-*.jar:/home/speech/mahout/examples/target/mahout-examples-1.0-SNAPSHOT-job.jar:/home/speech/mahout/mahout-examples-*-job.jar:/home/speech/mahout/math-scala/target/mahout-math-scala-1.0-SNAPSHOT.jar:/home/speech/mahout/math-scala/target/mahout-math-scala-1.0-SNAPSHOT-sources.jar:/home/speech/mahout/math-scala/target/mahout-math-scala-1.0-SNAPSHOT-tests.jar:/home/speech/mahout/spark/target/mahout-spark-1.0-SNAPSHOT.jar:/home/speech/mahout/spark/target/mahout-spark-1.0-SNAPSHOT-sources.jar:/home/speech/mahout/spark/target/mahout-spark-1.0-SNAPSHOT-tests.jar:/home/speech/mahout/lib/*.jar:/home/speech/mahout/examples/target/dependency/activation-1.1.jar:/home/speech/mahout/examples/target/dependency/asm-3.1.jar:/home/speech/mahout/examples/target/dependency/cglib-nodep-2.2.2.jar:/home/speech/mahout/examples/target/dependency/commons-beanutils-1.7.0.jar:/home/speech/m ahout/examples/target/dependency/commons-beanutils-core-1.8.0.jar:/home/speech/mahout/examples/target/dependency/commons-cli-1.2.jar:/home/speech/mahout/examples/target/dependency/commons-cli-2.0-mahout.jar:/home/speech/mahout/examples/target/dependency/commons-codec-1.4.jar:/home/speech/mahout/examples/target/dependency
java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.TaskAttemptContext, but class was expected
:33 INFO mapred.LocalJobRunner: Waiting for map tasks 14/03/17 11:47:33 INFO mapred.LocalJobRunner: Starting task: attempt_local42076163_0001_m_00_0 14/03/17 11:47:33 INFO mapred.Task: Using ResourceCalculatorProcessTree : [ ] 14/03/17 11:47:33 INFO mapred.MapTask: Processing split: Paths:/user/speech/demo/text1.txt:0+628,/user/speech/demo/text10.txt:0+1327,/user/speech/demo/text2.txt:0+5165,/user/speech/demo/text3.txt:0+3736,/user/speech/demo/text4.txt:0+4338,/user/speech/demo/text5.txt:0+3338,/user/speech/demo/text6.txt:0+5836,/user/speech/demo/text7.txt:0+2936,/user/speech/demo/text8.txt:0+905,/user/speech/demo/text9.txt:0+1566 14/03/17 11:47:33 INFO mapred.LocalJobRunner: Map task executor complete. 14/03/17 11:47:33 WARN mapred.LocalJobRunner: job_local42076163_0001 java.lang.Exception: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:403) Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader.initNextRecordReader(CombineFileRecordReader.java:164) at org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader.(CombineFileRecordReader.java:126) at org.apache.mahout.text.MultipleTextFileInputFormat.createRecordReader(MultipleTextFileInputFormat.java:43) at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.(MapTask.java:491) at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:734) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:339) at org.apache.hadoop.mapred.LocalJobRunner$Job$MapTaskRunnable.run(LocalJobRunner.java:235) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.apache.hadoop.mapreduce.lib.input.CombineFileRecordReader.initNextRecordReader(CombineFileRecordReader.java:155) ... 11 more Caused by: java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.TaskAttemptContext, but class was expected at org.apache.mahout.text.WholeFileRecordReader.(WholeFileRecordReader.java:59) ... 16 more 14/03/17 11:47:33 INFO mapreduce.Job: Job job_local42076163_0001 running in uber mode : false 14/03/17 11:47:33 INFO mapreduce.Job: map 0% reduce 0% 14/03/17 11:47:33 INFO mapreduce.Job: Job job_local42076163_0001 failed with state FAILED due to: NA 14/03/17 11:47:34 INFO mapreduce.Job: Counters: 0 14/03/17 11:47:34 INFO driver.MahoutDriver: Program took 3607 ms (Minutes: 0.06013) Here is additional information: [speech@h14 ~]$ mahout/bin/mahout classpath MAHOUT_LOCAL is not set; adding HADOOP_CONF_DIR to classpath. Running on hadoop, using /usr/bin/hadoop and HADOOP_CONF_DIR=/etc/hadoop/conf :/home/speech/mahout/src/conf:/etc/hadoop/conf:/usr/lib/tools.jar:/home/speech/mahout/mahout-*.jar:/home/speech/mahout/examples/target/mahout-examples-1.0-SNAPSHOT-job.jar:/home/speech/mahout/mahout-examples-*-job.jar:/home/speech/mahout/math-scala/target/mahout-math-scala-1.0-SNAPSHOT.jar:/home/speech/mahout/math-scala/target/mahout-math-scala-1.0-SNAPSHOT-sources.jar:/home/speech/mahout/math-scala/target/mahout-math-scala-1.0-SNAPSHOT-tests.jar:/home/speech/mahout/spark/target/mahout-spark-1.0-SNAPSHOT.jar:/home/speech/mahout/spark/target/mahout-spark-1.0-SNAPSHOT-sources.jar:/home/speech/mahout/spark/target/mahout-spark-1.0-SNAPSHOT-tests.jar:/home/speech/mahout/lib/*.jar:/home/speech/mahout/examples/target/dependency/activation-1.1.jar:/home/speech/mahout/examples/target/dependency/asm-3.1.jar:/home/speech/mahout/examples/target/dependency/cglib-nodep-2.2.2.jar:/home/speech/mahout/examples/target/dependency/commons-beanutils-1.7.0.jar:/home/speech/mahout/examples/target/dependency/commons-beanutils-core-1.8.0.jar:/home/speech/mahout/examples/target/dependency/commons-cli-1.2.jar:/home/speech/mahout/examples/target/dependency/commons-cli-2.0-mahout.jar:/home/speech/mahout/examples/target/dependency/commons-codec-1.4.jar:/home/speech/mahout/examples/target/dependency/commons-collections-3.2.1.jar:/home/speech/mahout/examples/target/dependency/commons-compress-1.4.1.jar:/home/speech/mahout/examples/target/dependency/commons-configuration-1.6.jar:/home/speech/mahout/examples