Description
_强调文本_The CLI gets stuck in the loop in DriverContext.pollFinished when some TaskRunner which has completed has not been marked as non-running.
This can happen when there is exception in SessionState.start which is called from TaskRunner.run.
This happened with us when we were running with hive.exec.parallel=true, hive.execution.engine=tez and Tez wasn't correctly setup.
In this case the CLI printed the exception and then got hung (No prompt.)
A simple fix is to call result.setRunning(false); in the finally block of TaskRunner.run