How are you launching the job? Code looks 'right' (except for the new HBaseConfiguration instead of doing HBaseConfiguration.create()). How are you using hadoop-core*append*.jar? You putting it everywhere in your cluster making sure the old hadoop jar is not in the cluster CLASSPATH?
If you run our rowcounter, does that work? $ ./bin/hadoop jar hbase*.jar rowcounter St.Ack On Mon, Mar 14, 2011 at 3:05 AM, Thibault Dory <[email protected]> wrote: > Hello, > > I'm trying to run a MapReduce job on a Hadoop cluster 0.20.2 using > the hadoop-core-0.20-append-r1056497.jar from HBase 0.90.0 but when I start > the job I run into this error : > > 2011-03-13 14:48:22,935 INFO org.apache.hadoop.mapred.TaskInProgress: Error > from attempt_201103131344_0016_m_000081_3: java.lang.ClassCastException: > org.apache.hadoop.hbase.mapreduce.TableSplit cannot be cast to > org.apache.hadoop.mapred.InputSplit > at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:323) > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:307) > at org.apache.hadoop.mapred.Child.main(Child.java:170) > > It looks like hadoop is using the old mapred API instead of the new > mapreduce one. The HBase jar files are provided in the Hadoop path. > > The code of the MapReduce job can be seen here : > https://github.com/toflames/Wikipedia-noSQL-Benchmark/blob/master/src/hbase_mapreduce/MapReduceHbaseDB.java > > HBase is working well for read/write/update operations. > > Any idea of what could be causing this? >
