@Override public void run() { runner = Thread.currentThread(); try { OperationLog.setCurrentOperationLog(operationLog); SessionState.start(ss); runSequential(); } finally { try { // Call Hive.closeCurrent() that closes the HMS connection, causes // HMS connection leaks otherwise. Hive.closeCurrent(); } catch (Exception e) { LOG.warn("Exception closing Metastore connection:" + e.getMessage()); } runner = null; result.setRunning(false); } }
@Override public void run() { runner = Thread.currentThread(); try { OperationLog.setCurrentOperationLog(operationLog); SessionState.start(ss); runSequential(); } finally { runner = null; } }
private void registerCurrentOperationLog() { if (isOperationLogEnabled) { if (operationLog == null) { LOG.warn("Failed to get current OperationLog object of Operation: " + getHandle().getHandleIdentifier()); isOperationLogEnabled = false; return; } OperationLog.setCurrentOperationLog(operationLog); } }
protected void registerCurrentOperationLog() { if (isOperationLogEnabled) { if (operationLog == null) { LOG.warn("Failed to get current OperationLog object of Operation: " + getHandle().getHandleIdentifier()); isOperationLogEnabled = false; return; } OperationLog.setCurrentOperationLog(operationLog); } } }
protected void registerCurrentOperationLog() { if (isOperationLogEnabled) { if (operationLog == null) { LOG.warn("Failed to get current OperationLog object of Operation: " + getHandle().getHandleIdentifier()); isOperationLogEnabled = false; return; } OperationLog.setCurrentOperationLog(operationLog); } } }
private void registerCurrentOperationLog() { if (isOperationLogEnabled) { if (operationLog == null) { LOG.warn("Failed to get current OperationLog object of Operation: " + getHandle().getHandleIdentifier()); isOperationLogEnabled = false; return; } OperationLog.setCurrentOperationLog(operationLog); } }
OperationLog.setCurrentOperationLog(operationLog);
OperationLog.setCurrentOperationLog(operationLog);
OperationLog.setCurrentOperationLog(operationLog);
OperationLog.setCurrentOperationLog(operationLog);