478479480481482483484
} TTransport masterTransport = new TSocket(host, port); TProtocol protocol = new TBinaryProtocol(masterTransport); masterTransport.open(); mMasterClient = new Client(protocol); }
5859606162636465
try { masterTransport.open(); } catch (TTransportException e) { throw new IOException(e); } masterClient = new Client(protocol); LOG.info("Connected to master at " + masterHost + ":" + masterPort); }