public UUID getSessionId() { return getHandleIdentifier().getPublicId(); }
public UUID getSessionId() { return getHandleIdentifier().getPublicId(); }
public UUID getSessionId() { return getHandleIdentifier().getPublicId(); }
public UUID getSessionId() { return getHandleIdentifier().getPublicId(); }
public UUID getSessionId() { return getHandleIdentifier().getPublicId(); }
public UUID getSessionId() { return getHandleIdentifier().getPublicId(); }
/** * Inits the persist info. * @param sessionConf the session conf */ private void initPersistInfo(Map<String, String> sessionConf) { persistInfo.setSessionHandle(new LensSessionHandle(getSessionHandle().getHandleIdentifier().getPublicId(), getSessionHandle().getHandleIdentifier().getSecretId())); persistInfo.setUsername(getUserName()); persistInfo.setPassword(getPassword()); persistInfo.setLastAccessTime(System.currentTimeMillis()); persistInfo.setSessionConf(sessionConf); persistInfo.setProxyUser(sessionConf.get(LensConfConstants.SESSION_PROXY_USER)); if (sessionConf != null) { for (Map.Entry<String, String> entry : sessionConf.entrySet()) { conf.set(entry.getKey(), entry.getValue()); } } }
throw new LensException(e); LensSessionHandle lensSessionHandle = new LensSessionHandle(sessionHandle.getHandleIdentifier().getPublicId(), sessionHandle.getHandleIdentifier().getSecretId()); SESSION_MAP.put(lensSessionHandle.getPublicId().toString(), lensSessionHandle);
cliService.createSessionWithSessionHandle(hiveSessionHandle, userName, password, new HashMap<>()); LensSessionHandle restoredSession = new LensSessionHandle(hiveSessionHandle.getHandleIdentifier().getPublicId(), hiveSessionHandle.getHandleIdentifier().getSecretId()); SESSION_MAP.put(restoredSession.getPublicId().toString(), restoredSession);