accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Klucar <>
Subject getMasterStats problems
Date Mon, 16 Jul 2012 02:52:02 GMT
I'm trying to get the master stats in the same way the monitor server
does, but I keep having issues.

The code I'm using is from the program:

    MasterClientService.Iface client = null;
    MasterMonitorInfo stats = null;
    try {
      client = MasterClient.getConnectionWithRetry(HdfsZooInstance.getInstance());
      stats = client.getMasterStats(null,
    } finally {
      if (client != null)

The problem is that the HdfsZooInstance can never find the instance
data, even though it's there. I can create a ZooKeeperInstance just
fine, but passing that into the MasterClient fails the same way.

Caused by: java.lang.RuntimeException: Accumulo not initialized, there
is no instance id at /accumulo/instance_id
	at org.apache.accumulo.core.client.ZooKeeperInstance.getInstanceIDFromHdfs(
	at org.apache.accumulo.server.conf.ZooConfiguration.getInstance(
	at org.apache.accumulo.server.conf.ServerConfiguration.getZooConfiguration(
	at org.apache.accumulo.server.conf.ServerConfiguration.getSystemConfiguration(
	at org.apache.accumulo.server.client.HdfsZooInstance.<init>(
	at org.apache.accumulo.server.client.HdfsZooInstance.getInstance(
	... 91 more

Any ideas as to what I'm missing?

View raw message