public static SessionState start(HiveConf conf) {
    SessionState ss = new SessionState(conf);
    return start(ss);
  }
start a new session and set it to current session.
ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java