Examples of ZKClusterCoordinator


Examples of org.apache.drill.exec.coord.ZKClusterCoordinator

      this.cache = serviceSet.getCache();
    }else{
      Runtime.getRuntime().addShutdownHook(new ShutdownThread(config));
      this.context = new BootStrapContext(config);
      this.manager = new WorkManager(context);
      this.coord = new ZKClusterCoordinator(config);
      this.engine = new ServiceEngine(manager.getBitComWorker(), manager.getUserWorker(), context);
      this.cache = new HazelCache(config);
    }
  }
View Full Code Here

Examples of org.apache.drill.exec.coord.ZKClusterCoordinator

    System.exit(submitter.submitQuery(args[0], args[1], args[2]));
  }

  public int submitQuery(String planLocation, String type, String zkQuorum) throws Exception {
    DrillConfig config = DrillConfig.create();
    ZKClusterCoordinator clusterCoordinator = new ZKClusterCoordinator(config, zkQuorum);
    clusterCoordinator.start(10000);
    DrillClient client = new DrillClient(config, clusterCoordinator);
    client.connect();
    QueryResultsListener listener = new QueryResultsListener();
    String plan = Charsets.UTF_8.decode(ByteBuffer.wrap(Files.readAllBytes(Paths.get(planLocation)))).toString();
    UserProtos.QueryType queryType;
View Full Code Here

Examples of org.apache.drill.exec.coord.ZKClusterCoordinator

  public synchronized void connect() throws RpcException {
    if (connected) return;

    if (clusterCoordinator == null) {
      try {
        this.clusterCoordinator = new ZKClusterCoordinator(this.config);
        this.clusterCoordinator.start(10000);
      } catch (Exception e) {
        throw new RpcException("Failure setting up ZK for client.", e);
      }
    }
View Full Code Here

Examples of org.apache.drill.exec.coord.zk.ZKClusterCoordinator

  public synchronized void connect(String connect, Properties props) throws RpcException {
    if (connected) return;

    if (ownsZkConnection) {
      try {
        this.clusterCoordinator = new ZKClusterCoordinator(this.config, connect);
        this.clusterCoordinator.start(10000);
      } catch (Exception e) {
        throw new RpcException("Failure setting up ZK for client.", e);
      }
    }
View Full Code Here

Examples of org.apache.drill.exec.coord.zk.ZKClusterCoordinator

      this.coord = serviceSet.getCoordinator();
      this.cache = serviceSet.getCache();
      this.storeProvider = new LocalPStoreProvider(config);
    } else {
      Runtime.getRuntime().addShutdownHook(new ShutdownThread(config));
      this.coord = new ZKClusterCoordinator(config);
      this.storeProvider = new PStoreRegistry(this.coord, config).newPStoreProvider();
      this.cache = new ICache(config, context.getAllocator(), false);
    }
  }
View Full Code Here

Examples of org.apache.drill.exec.coord.zk.ZKClusterCoordinator

          drillbits[i] = new Drillbit(config, serviceSet);
          drillbits[i].run();
        }
        client = new DrillClient(config, serviceSet.getCoordinator());
      } else {
        ZKClusterCoordinator clusterCoordinator = new ZKClusterCoordinator(config, zkQuorum);
        clusterCoordinator.start(10000);
        client = new DrillClient(config, clusterCoordinator);
      }
      client.connect();

      String plan;
View Full Code Here

Examples of org.apache.drill.exec.coord.zk.ZKClusterCoordinator

          drillbits[i] = new Drillbit(config, serviceSet);
          drillbits[i].run();
        }
        client = new DrillClient(config, serviceSet.getCoordinator());
      } else {
        ZKClusterCoordinator clusterCoordinator = new ZKClusterCoordinator(config, zkQuorum);
        clusterCoordinator.start(10000);
        client = new DrillClient(config, clusterCoordinator);
      }
      client.connect();

      String plan;
View Full Code Here

Examples of org.apache.drill.exec.coord.zk.ZKClusterCoordinator

      return;
    }

    if (ownsZkConnection) {
      try {
        this.clusterCoordinator = new ZKClusterCoordinator(this.config, connect);
        this.clusterCoordinator.start(10000);
      } catch (Exception e) {
        throw new RpcException("Failure setting up ZK for client.", e);
      }
    }
View Full Code Here

Examples of org.apache.drill.exec.coord.zk.ZKClusterCoordinator

    if(serviceSet != null) {
      this.coord = serviceSet.getCoordinator();
      this.storeProvider = new LocalPStoreProvider(config);
    } else {
      Runtime.getRuntime().addShutdownHook(new ShutdownThread(config));
      this.coord = new ZKClusterCoordinator(config);
      this.storeProvider = new PStoreRegistry(this.coord, config).newPStoreProvider();
    }
  }
View Full Code Here

Examples of org.apache.drill.exec.coord.zk.ZKClusterCoordinator

  public synchronized void connect(String connect, Properties props) throws RpcException {
    if (connected) return;

    if (ownsZkConnection) {
      try {
        this.clusterCoordinator = new ZKClusterCoordinator(this.config, connect);
        this.clusterCoordinator.start(10000);
      } catch (Exception e) {
        throw new RpcException("Failure setting up ZK for client.", e);
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.