Package org.apache.drill.exec.coord

Examples of org.apache.drill.exec.coord.ZKClusterCoordinator.start()


  }

  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

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.