HBase
  1. HBase
  2. HBASE-5595

Fix NoSuchMethodException in 0.92 when running on local filesystem

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.92.2
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Fix this ugly exception that shows when running 0.92.1 when on local filesystem:

      2012-03-16 10:54:48,351 INFO org.apache.hadoop.hbase.regionserver.wal.HLog: getNumCurrentReplicas--HDFS-826 not available; hdfs_out=org.apache.hadoop.fs.FSDataOutputStream@301abf87
      java.lang.NoSuchMethodException: org.apache.hadoop.fs.ChecksumFileSystem$ChecksumFSOutputSummer.getNumCurrentReplicas()
              at java.lang.Class.getDeclaredMethod(Class.java:1937)
              at org.apache.hadoop.hbase.regionserver.wal.HLog.getGetNumCurrentReplicas(HLog.java:425)
              at org.apache.hadoop.hbase.regionserver.wal.HLog.<init>(HLog.java:408)
              at org.apache.hadoop.hbase.regionserver.wal.HLog.<init>(HLog.java:331)
              at org.apache.hadoop.hbase.regionserver.HRegionServer.instantiateHLog(HRegionServer.java:1229)
              at org.apache.hadoop.hbase.regionserver.HRegionServer.setupWALAndReplication(HRegionServer.java:1218)
              at org.apache.hadoop.hbase.regionserver.HRegionServer.handleReportForDutyResponse(HRegionServer.java:937)
              at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:648)
              at java.lang.Thread.run(Thread.java:680)
      
      1. HBASE-5595.patch
        2 kB
        Uma Maheswara Rao G

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        1d 10h 52m 1 Uma Maheswara Rao G 18/Mar/12 04:52
        Patch Available Patch Available Resolved Resolved
        14h 53m 1 stack 18/Mar/12 19:45
        ramkrishna.s.vasudevan made changes -
        Assignee Uma Mahesh [ umamahesh ] Uma Maheswara Rao G [ umamaheswararao ]
        ramkrishna.s.vasudevan made changes -
        Assignee Uma Mahesh [ umamahesh ]
        Hide
        ramkrishna.s.vasudevan added a comment -

        Thanks for the patch Uma. Added you to the contributor list.

        Show
        ramkrishna.s.vasudevan added a comment - Thanks for the patch Uma. Added you to the contributor list.
        stack made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Resolution Fixed [ 1 ]
        Hide
        stack added a comment -

        Thanks for the patch Uma. Just what the doctor ordered. Applied to 0.92, 0.94 and trunk

        Show
        stack added a comment - Thanks for the patch Uma. Just what the doctor ordered. Applied to 0.92, 0.94 and trunk
        Hide
        Hadoop QA added a comment -

        -1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12518819/HBASE-5595.patch
        against trunk revision .

        +1 @author. The patch does not contain any @author tags.

        -1 tests included. The patch doesn't appear to include any new or modified tests.
        Please justify why no new tests are needed for this patch.
        Also please list what manual steps were performed to verify this patch.

        +1 javadoc. The javadoc tool did not generate any warning messages.

        +1 javac. The applied patch does not increase the total number of javac compiler warnings.

        -1 findbugs. The patch appears to introduce 160 new Findbugs (version 1.3.9) warnings.

        +1 release audit. The applied patch does not increase the total number of release audit warnings.

        -1 core tests. The patch failed these unit tests:
        org.apache.hadoop.hbase.coprocessor.TestMasterObserver
        org.apache.hadoop.hbase.mapreduce.TestImportTsv
        org.apache.hadoop.hbase.mapred.TestTableMapReduce
        org.apache.hadoop.hbase.mapreduce.TestHFileOutputFormat

        Test results: https://builds.apache.org/job/PreCommit-HBASE-Build/1219//testReport/
        Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/1219//artifact/trunk/patchprocess/newPatchFindbugsWarnings.html
        Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/1219//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12518819/HBASE-5595.patch against trunk revision . +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. -1 findbugs. The patch appears to introduce 160 new Findbugs (version 1.3.9) warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. -1 core tests. The patch failed these unit tests: org.apache.hadoop.hbase.coprocessor.TestMasterObserver org.apache.hadoop.hbase.mapreduce.TestImportTsv org.apache.hadoop.hbase.mapred.TestTableMapReduce org.apache.hadoop.hbase.mapreduce.TestHFileOutputFormat Test results: https://builds.apache.org/job/PreCommit-HBASE-Build/1219//testReport/ Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/1219//artifact/trunk/patchprocess/newPatchFindbugsWarnings.html Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/1219//console This message is automatically generated.
        Hide
        Uma Maheswara Rao G added a comment -

        Attached the patch for trunk.
        I feel we can just skip the exception if NoSuchMethoException as Zhihong Yu mentioned in other JIRA HBASE-5568 and also can provide the log info clearly. Patch contains the same.

        Show
        Uma Maheswara Rao G added a comment - Attached the patch for trunk. I feel we can just skip the exception if NoSuchMethoException as Zhihong Yu mentioned in other JIRA HBASE-5568 and also can provide the log info clearly. Patch contains the same.
        Uma Maheswara Rao G made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Uma Maheswara Rao G made changes -
        Field Original Value New Value
        Attachment HBASE-5595.patch [ 12518819 ]
        Show
        stack added a comment - Ted remarks on his seeing the above over in https://issues.apache.org/jira/browse/HBASE-5568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13229478#comment-13229478
        stack created issue -

          People

          • Assignee:
            Uma Maheswara Rao G
            Reporter:
            stack
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development