TTransport transport = new TSocket(thriftAddress.getHostName(),
HBaseThriftServerClusterActionHandler.PORT);
transport.open();
LOG.info("Connected to thrift server.");
LOG.info("Waiting for .META. table...");
TProtocol protocol = new TBinaryProtocol(transport, true, true);
Hbase.Client client = new Hbase.Client(protocol);
int scannerId = client.scannerOpen(ByteBuffer.wrap(HConstants.META_TABLE_NAME),
ByteBuffer.wrap(Bytes.toBytes("")), null, null);
client.scannerClose(scannerId);
thriftClient = client;