1. Accumulo
  2. ACCUMULO-240

client code for TableConfiguration has problems


    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.5
    • Fix Version/s: 1.4.2
    • Component/s: client
    • Labels:


      There are a number of problems with accessing TableConfiguration object from client code, the first being that TableOperationImpl uses code that relies on a hidden HDFSZooInstance in client configuration. If the client is not running with access to the HDFS Accumulo directory, or if the HDFS setup on the client differs from the Accumulo instance, then this call will fail:

      Exception in thread "main" java.lang.ExceptionInInitializerError
      Caused by: org.apache.accumulo.core.client.impl.HdfsZooInstance$AccumuloNotInitializedException: Accumulo not initialized, there is no instance id at /accumulo/instance_id
      	at org.apache.accumulo.core.client.impl.HdfsZooInstance._getInstanceID(
      	at org.apache.accumulo.core.client.impl.HdfsZooInstance.getInstanceID(
      	at org.apache.accumulo.core.conf.ZooConfiguration.getInstanceId(
      	at org.apache.accumulo.core.conf.ZooConfiguration.iterator(
      	at org.apache.accumulo.core.conf.TableConfiguration.iterator(
      	at org.apache.accumulo.core.conf.ConfigSanityCheck.validate(
      	at org.apache.accumulo.core.conf.AccumuloConfiguration.getTableConfiguration(
      	at org.apache.accumulo.core.client.admin.TableOperationsImpl.getProperties(
      	at org.apache.accumulo.core.client.admin.TableOperationsImpl.setLocalityGroups(

      Another problem is that the ZooConfiguration object uses static instance information, negating the possibility of using multiple instances in the same JVM.

        Issue Links


          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          353d 4h 18m 1 Christopher Tubbs 18/Dec/12 19:28
          Christopher Tubbs made changes -
          Link This issue is duplicated by ACCUMULO-225 [ ACCUMULO-225 ]
          Christopher Tubbs made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 1.4.2 [ 12321843 ]
          Fix Version/s 1.5.0 [ 12318645 ]
          Resolution Fixed [ 1 ]
          Gavin made changes -
          Workflow no-reopen-closed, patch-avail [ 12647453 ] patch-available, re-open possible [ 12671337 ]
          Keith Turner made changes -
          Field Original Value New Value
          Fix Version/s 1.5.0 [ 12318645 ]
          Jared Winick added a comment -

          I believe this bug describes the same issue as ACCUMULO-225, but in a more general way. If you agree, feel free to close ACCUMULO-225.

          Jared Winick added a comment - I believe this bug describes the same issue as ACCUMULO-225 , but in a more general way. If you agree, feel free to close ACCUMULO-225 .
          Adam Fuchs created issue -


            • Assignee:
              Adam Fuchs
              Adam Fuchs
            • Votes:
              1 Vote for this issue
              1 Start watching this issue


              • Created: