public static SchedulerService.Client createBlockingSchedulerClient(
String host, int port, int timeout) throws IOException {
TTransport tr = new TFramedTransport(new TSocket(host, port, timeout));
try {
tr.open();
} catch (TTransportException e) {
LOG.warn("Error creating scheduler client to " + host + ":" + port);
throw new IOException(e);
}
TProtocol proto = new TBinaryProtocol(tr);