configureSession(sessionConfMap);
@Override /** * Opens a new HiveServer2 session for the client connection. * Creates a new SessionState object that will be associated with this HiveServer2 session. * When the server executes multiple queries in the same session, * this SessionState object is reused across multiple queries. * Note that if doAs is true, this call goes through a proxy object, * which wraps the method logic in a UserGroupInformation#doAs. * That's why it is important to create SessionState here rather than in the constructor. */ public void open(Map<String, String> sessionConfMap) throws HiveSQLException { sessionState = new SessionState(hiveConf, username); sessionState.setUserIpAddress(ipAddress); sessionState.setIsHiveServerQuery(true); SessionState.start(sessionState); try { sessionState.reloadAuxJars(); } catch (IOException e) { String msg = "Failed to load reloadable jar file path: " + e; LOG.error(msg, e); throw new HiveSQLException(msg, e); } // Process global init file: .hiverc processGlobalInitFile(); if (sessionConfMap != null) { configureSession(sessionConfMap); } lastAccessTime = System.currentTimeMillis(); lastIdleTime = lastAccessTime; }
@Override /** * Opens a new HiveServer2 session for the client connection. * Creates a new SessionState object that will be associated with this HiveServer2 session. * When the server executes multiple queries in the same session, * this SessionState object is reused across multiple queries. * Note that if doAs is true, this call goes through a proxy object, * which wraps the method logic in a UserGroupInformation#doAs. * That's why it is important to create SessionState here rather than in the constructor. */ public void open(Map<String, String> sessionConfMap) throws HiveSQLException { sessionState = new SessionState(hiveConf, username); sessionState.setUserIpAddress(ipAddress); sessionState.setIsHiveServerQuery(true); SessionState.start(sessionState); try { sessionState.reloadAuxJars(); } catch (IOException e) { String msg = "Failed to load reloadable jar file path: " + e; LOG.error(msg, e); throw new HiveSQLException(msg, e); } // Process global init file: .hiverc processGlobalInitFile(); if (sessionConfMap != null) { configureSession(sessionConfMap); } lastAccessTime = System.currentTimeMillis(); lastIdleTime = lastAccessTime; }
@Override /** * Opens a new HiveServer2 session for the client connection. * Creates a new SessionState object that will be associated with this HiveServer2 session. * When the server executes multiple queries in the same session, * this SessionState object is reused across multiple queries. * Note that if doAs is true, this call goes through a proxy object, * which wraps the method logic in a UserGroupInformation#doAs. * That's why it is important to create SessionState here rather than in the constructor. */ public void open(Map<String, String> sessionConfMap) throws HiveSQLException { sessionState = new SessionState(hiveConf, username); sessionState.setUserIpAddress(ipAddress); sessionState.setIsHiveServerQuery(true); SessionState.start(sessionState); try { sessionState.reloadAuxJars(); } catch (IOException e) { String msg = "Failed to load reloadable jar file path: " + e; LOG.error(msg, e); throw new HiveSQLException(msg, e); } // Process global init file: .hiverc processGlobalInitFile(); if (sessionConfMap != null) { configureSession(sessionConfMap); } lastAccessTime = System.currentTimeMillis(); lastIdleTime = lastAccessTime; }
@Override /** * Opens a new HiveServer2 session for the client connection. * Creates a new SessionState object that will be associated with this HiveServer2 session. * When the server executes multiple queries in the same session, * this SessionState object is reused across multiple queries. * Note that if doAs is true, this call goes through a proxy object, * which wraps the method logic in a UserGroupInformation#doAs. * That's why it is important to create SessionState here rather than in the constructor. */ public void open(Map<String, String> sessionConfMap) throws HiveSQLException { sessionState = new SessionState(hiveConf, username); sessionState.setUserIpAddress(ipAddress); sessionState.setIsHiveServerQuery(true); SessionState.start(sessionState); try { sessionState.reloadAuxJars(); } catch (IOException e) { String msg = "Failed to load reloadable jar file path: " + e; LOG.error(msg, e); throw new HiveSQLException(msg, e); } // Process global init file: .hiverc processGlobalInitFile(); if (sessionConfMap != null) { configureSession(sessionConfMap); } lastAccessTime = System.currentTimeMillis(); lastIdleTime = lastAccessTime; }
configureSession(sessionConfMap);