Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-20271 Improve HoS query cancellation handling
  3. HIVE-16962

Better error msg for Hive on Spark in case user cancels query and closes session

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 3.0.0
    • Spark
    • None

    Description

      In case user cancels a query and closes the session, Hive marks the query as failed. However, the error message is a little confusing. It still says:

      org.apache.hive.service.cli.HiveSQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.spark.SparkTask. Failed to create spark client. This is likely because the queue you assigned to does not have free resource at the moment to start the job. Please check your queue usage and try the query again later.

      followed by some InterruptedException.
      Ideally, the error should clearly indicates the fact that user cancels the execution.

      Attachments

        1. HIVE-16962.patch
          3 kB
          Xuefu Zhang
        2. HIVE-16962.patch
          3 kB
          Xuefu Zhang
        3. HIVE-16962.2.patch
          4 kB
          Xuefu Zhang

        Activity

          People

            xuefuz Xuefu Zhang
            xuefuz Xuefu Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: