[
https://issues.apache.org/jira/browse/HBASE-4179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081368#comment-13081368
]
Michael Weng commented on HBASE-4179:
-------------------------------------
The root cause is due to the API change between hadoop 0.20-append and hadoop
0.22.
In 0.20-append:
public void driver(String[] args) throws Throwable
In 0.22:
public int driver(String[] args) throws Throwable
Proposed fix:
using getMethod at run time instead of invoke the function directly.
> Failed to run RowCounter on top of Hadoop branch-0.22
> -----------------------------------------------------
>
> Key: HBASE-4179
> URL: https://issues.apache.org/jira/browse/HBASE-4179
> Project: HBase
> Issue Type: Bug
> Components: mapreduce
> Affects Versions: 0.92.0
> Environment: Running hbase on top of hadoop branch-0.22
> Reporter: Michael Weng
> Fix For: 0.92.0
>
>
> :~/hadoop$ HADOOP_CLASSPATH=`~/hbase/bin/hbase classpath` bin/hadoop jar
> ~/hbase/hbase-0.91.0-SNAPSHOT.jar rowcounter usertable
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.apache.hadoop.util.ProgramDriver.driver([Ljava/lang/String;)V
> at org.apache.hadoop.hbase.mapreduce.Driver.main(Driver.java:51)
> 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.RunJar.main(RunJar.java:192)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira