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;