Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-10569

Hive CLI gets stuck when hive.exec.parallel=true; and some exception happens during SessionState.start

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.13.1, 1.1.0, 1.2.0
    • 1.3.0, 2.0.0
    • None
    • None

    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

      Attachments

        1. HIVE-10569.patch
          0.4 kB
          Rohit Agarwal

        Activity

          People

            ragarwal Rohit Agarwal
            ragarwal Rohit Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: