FacebookService.Processor processor = new ThriftHive.Processor(handler);
TThreadPoolServer.Options options = new TThreadPoolServer.Options();
TServer server = new TThreadPoolServer(processor, serverTransport,
new TTransportFactory(), new TTransportFactory(),
new TBinaryProtocol.Factory(), new TBinaryProtocol.Factory(), options);
server.serve();
HiveServerHandler.LOG.info("Started the new hive server on port " + port);
} catch (Exception x) {
x.printStackTrace();
}
}