.transportFactory(new TTransportFactory())
.protocolFactory(new TBinaryProtocol.Factory())
.minWorkerThreads(cli.minWorkerThreads)
.maxWorkerThreads(cli.maxWorkerThreads);
TServer server = new TThreadPoolServer(sargs);
String msg = "Starting hive server on port " + cli.port
+ " with " + cli.minWorkerThreads + " min worker threads and "
+ cli.maxWorkerThreads + " max worker threads";
HiveServerHandler.LOG.info(msg);
HiveServerHandler.LOG.info("TCP keepalive = " + tcpKeepAlive);
if (cli.isVerbose()) {
System.err.println(msg);
}
server.serve();
} catch (Exception x) {
x.printStackTrace();
}
}