ServerUtils.cleanUpScratchDir(conf);
TServerTransport serverTransport = new TServerSocket(port);
// Hive 0.8.0
ThriftHiveProcessorFactory hfactory = new ThriftHiveProcessorFactory(null, conf);
TThreadPoolServer.Args sargs = new TThreadPoolServer.Args(serverTransport).processorFactory(hfactory).
transportFactory(new TTransportFactory()).
protocolFactory(new TBinaryProtocol.Factory()).
minWorkerThreads(minThreads).