hadoop - migrate hbase 0.94 to 0.98 - Incompatible Result object for TableMapReduceUtil -


i using following api org.apache.hadoop.hbase.mapreduce.tablemapreduceutil hadoop 1 , hbase 0.94

public static void inittablemapperjob(list<scan> scans,       class<? extends tablemapper> mapper,       class<? extends writablecomparable> outputkeyclass,       class<? extends writable> outputvalueclass, job job) throws ioexception {     inittablemapperjob(scans, mapper, outputkeyclass, outputvalueclass, job,         true);   }  tablemapreduceutil.inittablemapperjob(scans, stage1mapper.class, immutablebyteswritable.class,  result.class, job); 

now it's giving me compile error hadoop 2 , hbase 0.98 . think it's hbase 0.98 has issue. error is:

the method inittablemapperjob(list<scan>, class<? extends tablemapper>, class<? extends writablecomparable>, class<? extends writable>, job) in type tablemapreduceutil not applicable arguments (list<scan>, class<planstage1mapper>, class<immutablebyteswritable>, class<result>, job)

with hbase 0.98 result class no longer implements writable interface , inittablemapperjob expect implements writable. there better alternative fix this?


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -