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

Running IntegrationTestBigLinkedList against cluster getting not an instance of org.apache.hadoop.hbase.MiniHBaseCluster

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • None
    • None
    • Reviewed

    Description

      Running integration test against cluster I'm getting this on tip of branch-1:

      2014-12-02 15:51:37,193 ERROR [main] util.AbstractHBaseTool: Error running command-line tool
      java.lang.RuntimeException: org.apache.hadoop.hbase.DistributedHBaseCluster@7103cb56 not an instance of org.apache.hadoop.hbase.MiniHBaseCluster
      	at org.apache.hadoop.hbase.HBaseTestingUtility.getMiniHBaseCluster(HBaseTestingUtility.java:952)
      	at org.apache.hadoop.hbase.HBaseTestingUtility.getConnection(HBaseTestingUtility.java:2494)
      	at org.apache.hadoop.hbase.HBaseTestingUtility.getHBaseAdmin(HBaseTestingUtility.java:2514)
      	at org.apache.hadoop.hbase.IntegrationTestingUtility.createDistributedHBaseCluster(IntegrationTestingUtility.java:141)
      	at org.apache.hadoop.hbase.IntegrationTestingUtility.initializeCluster(IntegrationTestingUtility.java:75)
      	at org.apache.hadoop.hbase.test.IntegrationTestBigLinkedList.setUpCluster(IntegrationTestBigLinkedList.java:1104)
      	at org.apache.hadoop.hbase.IntegrationTestBase.setUp(IntegrationTestBase.java:124)
      	at org.apache.hadoop.hbase.IntegrationTestBase.doWork(IntegrationTestBase.java:109)
      	at org.apache.hadoop.hbase.util.AbstractHBaseTool.run(AbstractHBaseTool.java:114)
      	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
      	at org.apache.hadoop.hbase.test.IntegrationTestBigLinkedList.main(IntegrationTestBigLinkedList.java:1225)
      

      It looks like this was broken by:

         1 commit c0cdaf8400831bada22558febbab9681f606e26c
         2 Author: stack <stack@apache.org>
         3 Date:   Tue Nov 25 12:26:54 2014 -0800
         4
         5         HBASE-12404 Task 5 from parent: Replace internal HTable constructor use with
         6         HConnection#getTable (0.98, 0.99)
      

      We used to create an HBaseAdmin internally with managed connection but we changed it to use the HTU's admin. In the patch we added check that there is a HTU cluster up and running – a mini cluster – but there won't be in the case of an IT test going against a cluster.

      Attachments

        1. 12617.txt
          0.8 kB
          Michael Stack

        Activity

          People

            stack Michael Stack
            stack Michael Stack
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: