You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by jx...@apache.org on 2015/04/01 17:16:07 UTC
svn commit: r1670667 -
/hive/trunk/service/src/java/org/apache/hive/service/cli/thrift/ThriftBinaryCLIService.java
Author: jxiang
Date: Wed Apr 1 15:16:06 2015
New Revision: 1670667
URL: http://svn.apache.org/r1670667
Log:
HIVE-10167: HS2 logs the server started only before the server is shut down
Modified:
hive/trunk/service/src/java/org/apache/hive/service/cli/thrift/ThriftBinaryCLIService.java
Modified: hive/trunk/service/src/java/org/apache/hive/service/cli/thrift/ThriftBinaryCLIService.java
URL: http://svn.apache.org/viewvc/hive/trunk/service/src/java/org/apache/hive/service/cli/thrift/ThriftBinaryCLIService.java?rev=1670667&r1=1670666&r2=1670667&view=diff
==============================================================================
--- hive/trunk/service/src/java/org/apache/hive/service/cli/thrift/ThriftBinaryCLIService.java (original)
+++ hive/trunk/service/src/java/org/apache/hive/service/cli/thrift/ThriftBinaryCLIService.java Wed Apr 1 15:16:06 2015
@@ -92,10 +92,10 @@ public class ThriftBinaryCLIService exte
// TCP Server
server = new TThreadPoolServer(sargs);
- server.serve();
- String msg = "Started " + ThriftBinaryCLIService.class.getSimpleName() + " on port "
+ String msg = "Starting " + ThriftBinaryCLIService.class.getSimpleName() + " on port "
+ portNum + " with " + minWorkerThreads + "..." + maxWorkerThreads + " worker threads";
LOG.info(msg);
+ server.serve();
} catch (Throwable t) {
LOG.fatal(
"Error starting HiveServer2: could not start "