Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-28395

TableNotFoundException when executing 'hbase hbck'

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      Reproduction:
      Starting hbase cluster
      Executing command 'hbase hbck'
      TableNotFoundException occur aboubt 'hbase:replication'

      //代码占位符
      org.apache.hadoop.hbase.replication.ReplicationException: failed to listAllQueues
              at org.apache.hadoop.hbase.replication.TableReplicationQueueStorage.listAllQueues(TableReplicationQueueStorage.java:289)
              at org.apache.hadoop.hbase.util.hbck.ReplicationChecker.getUnDeletedQueues(ReplicationChecker.java:77)
              at org.apache.hadoop.hbase.util.hbck.ReplicationChecker.checkUnDeletedQueues(ReplicationChecker.java:105)
              at org.apache.hadoop.hbase.util.HBaseFsck.checkAndFixReplication(HBaseFsck.java:2575)
              at org.apache.hadoop.hbase.util.HBaseFsck.onlineHbck(HBaseFsck.java:803)
              at org.apache.hadoop.hbase.util.HBaseFsck.exec(HBaseFsck.java:3752)
              at org.apache.hadoop.hbase.util.HBaseFsck$HBaseFsckTool.run(HBaseFsck.java:3551)
              at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:82)
              at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:97)
              at org.apache.hadoop.hbase.util.HBaseFsck.main(HBaseFsck.java:3536)
      Caused by: org.apache.hadoop.hbase.TableNotFoundException: hbase:replication 

      Problem analysis:
      hbase does not create the table 'hbase:replication' until the first add_peer operation would be executed.
      However, 'hbase hbck' operation would check the 'hbase:replication', So if this table has not been created, we would get TableNotFoundException.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            guluo guluo
            guluo guluo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment