Hi,
I am using CDH4 on ubuntu in a single pseudo-distributed mode. And then running behemoth-tika text extraction job -
~/behemoth-master/tika/target$ hadoop jar ./behemoth-tika-*-job.jar com.digitalpebble.behemoth.tika.TikaDriver -i "hdfs://user/xxx/nutch-output" -o "hdfs://user/xxx/tika-output"
But I am getting quite a few exceptions, initial exceptions on the stack trace being ClassNotFoundException for org.apache.hadoop.mapred.Counters$CountersExceededException
There seems to be incompatibility between Behemoth (1.0.0 built from the zip download) code and the version of hadoop-core*.jar shipped with CDH4. I checked on my installation and see that CountersExceededException class doesn't exist in /usr/lib/hadoop-0.20-mapreduce/hadoop-core-2.0.0-mr1-cdh4.1.2.jar .
This class exists in a different hadoop version - hadoop-core-1.0.4.jar, so I guess the behemoth code is compatible with that version.
Is there a way around it without reverting to a different hadoop installation ( hadoop-core-1.0.4.jar)? Also I see that CountersExceededException was added to the code in behemoth recently. Can you guide me to a version of stable behemoth source without CountersExceededException check ?
regards,
Anupam.
Failing stack trace -
-------------------2012-12-27 06:12:30,742 WARN mapreduce.Counters: Group org.apache.hadoop.mapred.Task$Counter is deprecated. Use org.apache.hadoop.mapreduce.TaskCounter instead
2012-12-27 06:12:33,436 WARN org.apache.hadoop.conf.Configuration: session.id is deprecated. Instead, use dfs.metrics.session-id
2012-12-27 06:12:33,446 INFO org.apache.hadoop.metrics.jvm.JvmMetrics: Initializing JVM Metrics with processName=MAP, sessionId=
2012-12-27 06:12:34,771 INFO org.apache.hadoop.util.ProcessTree: setsid exited with exit code 0
2012-12-27 06:12:34,790 INFO org.apache.hadoop.mapred.Task: Using ResourceCalculatorPlugin : org.apache.hadoop.util.LinuxResourceCalculatorPlugin@d5e92d7
2012-12-27 06:12:36,011 INFO org.apache.hadoop.io.compress.zlib.ZlibFactory: Successfully loaded & initialized native-zlib library
2012-12-27 06:12:36,013 INFO org.apache.hadoop.io.compress.CodecPool: Got brand-new decompressor [.deflate]
2012-12-27 06:12:36,025 WARN mapreduce.Counters: Counter name MAP_INPUT_BYTES is deprecated. Use FileInputFormatCounters as group name and BYTES_READ as counter name instead
2012-12-27 06:12:36,044 INFO org.apache.hadoop.mapred.MapTask: numReduceTasks: 0
2012-12-27 06:12:36,344 INFO org.apache.hadoop.mapred.TaskLogsTruncater: Initializing logs' truncater with mapRetainSize=-1 and reduceRetainSize=-1
2012-12-27 06:12:36,353 WARN org.apache.hadoop.mapred.Child: Error running child
java.lang.RuntimeException: Error in configuring object at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:106)
at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:72)
at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:130)
at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:389)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:327)
at org.apache.hadoop.mapred.Child$4.run(Child.java:268)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:396)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1332)
at org.apache.hadoop.mapred.Child.main(Child.java:262)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:103)
... 9 more
Caused by: java.lang.RuntimeException: Error in configuring object
at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:106)
at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:72)
at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:130)
at org.apache.hadoop.mapred.MapRunner.configure(MapRunner.java:34)
... 14 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:103)
... 17 more
Caused by: java.lang.NoClassDefFoundError: org/apache/hadoop/mapred/Counters$CountersExceededException
at com.digitalpebble.behemoth.tika.TikaMapper.configure(TikaMapper.java:78)
... 22 more
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.mapred.Counters$CountersExceededException
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 23 more
2012-12-27 06:12:36,414 INFO org.apache.hadoop.mapred.Task: Runnning cleanup for the task
--
You received this message because you are subscribed to the Google Groups "DigitalPebble" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/digitalpebble/-/qNiUE7r78KUJ.
To post to this group, send an email to digita...@googlegroups.com.
To unsubscribe from this group, send email to digitalpebbl...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/digitalpebble?hl=en-GB.