public int getOpenSessionsCount() {
    return cliService != null ? cliService.getSessionManager().getOpenSessionCount() : 0;
  }
For a kerberized cluster, we dynamically set up the client's JAAS conf.

@param hiveConf
@return
@throws Exception
service/src/java/org/apache/hive/service/server/HiveServer2.java