Package org.apache.accumulo.core.master.thrift.MasterClientService

Examples of org.apache.accumulo.core.master.thrift.MasterClientService.Client


    SetGoalState.main(new String[]{MasterGoalState.NORMAL.name()});
    Process exec = Runtime.getRuntime().exec(new String[]{System.getenv().get("ACCUMULO_HOME") + "/bin/start-all.sh"});
    exec.waitFor();
    while (true) {
      try {
        Client client = MasterClient.getConnection(HdfsZooInstance.getInstance());
        MasterMonitorInfo masterStats = client.getMasterStats(Tracer.traceInfo(), SecurityConstants.getSystemCredentials());
        if (!masterStats.tServerInfo.isEmpty())
          break;
      } catch (Exception ex) {
        UtilWaitThread.sleep(1000);
      }
View Full Code Here


      UtilWaitThread.sleep(1000);
    }
   
    while (true) {
        try {
          Client client = MasterClient.getConnection(HdfsZooInstance.getInstance());
          client.getMasterStats(Tracer.traceInfo(), SecurityConstants.getSystemCredentials());
        } catch (Exception e) {
          // assume this is due to server shutdown
          break;
        }
        UtilWaitThread.sleep(1000);
View Full Code Here

    Process exec = Runtime.getRuntime().exec(new String[] {System.getenv().get("ACCUMULO_HOME") + "/bin/start-all.sh"});
    exec.waitFor();
    while (true) {
      try {
        Instance instance = HdfsZooInstance.getInstance();
        Client client = MasterClient.getConnection(instance);
        MasterMonitorInfo masterStats = client.getMasterStats(Tracer.traceInfo(), SystemCredentials.get().toThrift(instance));
        if (!masterStats.tServerInfo.isEmpty())
          break;
      } catch (Exception ex) {
        UtilWaitThread.sleep(1000);
      }
View Full Code Here

    }
   
    while (true) {
      try {
        Instance instance = HdfsZooInstance.getInstance();
        Client client = MasterClient.getConnection(instance);
        client.getMasterStats(Tracer.traceInfo(), SystemCredentials.get().toThrift(instance));
      } catch (Exception e) {
        // assume this is due to server shutdown
        break;
      }
      UtilWaitThread.sleep(1000);
View Full Code Here

    UtilWaitThread.sleep(30 * 1000);
   
    while (true) {
      MasterMonitorInfo stats = null;
      Credentials creds = new Credentials("root", new PasswordToken(ROOT_PASSWORD));
      Client client = null;
      try {
        client = MasterClient.getConnectionWithRetry(c.getInstance());
        stats = client.getMasterStats(Tracer.traceInfo(), creds.toThrift(c.getInstance()));
      } finally {
        if (client != null)
          MasterClient.close(client);
      }
      int tablets = 0;
View Full Code Here

TOP

Related Classes of org.apache.accumulo.core.master.thrift.MasterClientService.Client

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.