"client already initialized -- double init not allowed");
int timeout = FlumeConfiguration.get().getThriftSocketTimeoutMs();
TTransport masterTransport = new TSocket(masterHostname, masterPort, timeout);
TProtocol protocol = new TBinaryProtocol(masterTransport);
try {
masterTransport.open();
} catch (TTransportException e) {
throw new IOException(e.getMessage());
}
masterClient = new Client(protocol);
LOG.info("Connected to master at " + masterHostname + ":" + masterPort);