You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Michael Weng (JIRA)" <ji...@apache.org> on 2011/08/09 03:50:27 UTC

[jira] [Created] (HBASE-4179) Failed to run RowCounter on top of Hadoop branch-0.22

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

        

[jira] [Commented] (HBASE-4179) Failed to run RowCounter on top of Hadoop branch-0.22

Posted by "Todd Lipcon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081365#comment-13081365 ] 

Todd Lipcon commented on HBASE-4179:
------------------------------------

HADOOP-5679 changed this function to return int instead of void.

> 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

        

[jira] [Commented] (HBASE-4179) Failed to run RowCounter on top of Hadoop branch-0.22

Posted by "Ted Yu (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081379#comment-13081379 ] 

Ted Yu commented on HBASE-4179:
-------------------------------

Please wrap the line so that it is no longer than 80 characters.

> 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
>            Assignee: Michael Weng
>             Fix For: 0.92.0
>
>         Attachments: HBASE-4179-trunk.patch
>
>
> :~/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

        

[jira] [Resolved] (HBASE-4179) Failed to run RowCounter on top of Hadoop branch-0.22

Posted by "stack (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack resolved HBASE-4179.
--------------------------

    Resolution: Fixed

I committed patch to TRUNK.  I did the line wraps that Ted suggested on commit but yeah, for future patches if you could try and respect the <80 chars per line that'd be grand.

Thank you for the patch Michael.

> 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
>            Assignee: Michael Weng
>             Fix For: 0.92.0
>
>         Attachments: HBASE-4179-trunk.patch
>
>
> :~/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

        

[jira] [Commented] (HBASE-4179) Failed to run RowCounter on top of Hadoop branch-0.22

Posted by "Michael Weng (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Updated] (HBASE-4179) Failed to run RowCounter on top of Hadoop branch-0.22

Posted by "Michael Weng (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Weng updated HBASE-4179:
--------------------------------

    Attachment: HBASE-4179-trunk.patch

Patch attached.

> 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
>            Assignee: Michael Weng
>             Fix For: 0.92.0
>
>         Attachments: HBASE-4179-trunk.patch
>
>
> :~/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

        

[jira] [Commented] (HBASE-4179) Failed to run RowCounter on top of Hadoop branch-0.22

Posted by "Hudson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HBASE-4179?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081469#comment-13081469 ] 

Hudson commented on HBASE-4179:
-------------------------------

Integrated in HBase-TRUNK #2097 (See [https://builds.apache.org/job/HBase-TRUNK/2097/])
    HBASE-4179 Failed to run RowCounter on top of Hadoop branch-0.22

stack : 
Files : 
* /hbase/trunk/CHANGES.txt
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/mapred/Driver.java
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/mapreduce/Driver.java


> 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
>            Assignee: Michael Weng
>             Fix For: 0.92.0
>
>         Attachments: HBASE-4179-trunk.patch
>
>
> :~/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

        

[jira] [Assigned] (HBASE-4179) Failed to run RowCounter on top of Hadoop branch-0.22

Posted by "Ted Yu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HBASE-4179?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ted Yu reassigned HBASE-4179:
-----------------------------

    Assignee: Michael Weng

Please provide a patch as you outlined.

> 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
>            Assignee: 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