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

HiveServer2 on Tez doesn't support concurrent queries within one session

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • HiveServer2
    • None

    Description

      When a user submits multiple queries in the same HS2 session (using thrift interface) concurrently, the query goes through the same TezSessionState and ends up being submitted to the same Tez AM, and the second query fails with the error "App master already running a DAG"

      Is this by design? I looked into the code, and the comments as well as the code suggest support only for serial execution of queries within the same HiveServer2 session (on tez).

      This works for CLI environment but in a server, it is plausible that client sends multiple concurrent queries under the same session (e.g: a web app that executes queries for user, such as Cloudera Hue). So shouldn't HS2 on Tez implementation support concurrent queries?

      Attachments

        Activity

          People

            Unassigned Unassigned
            pala Pala M Muthaia
            Votes:
            6 Vote for this issue
            Watchers:
            23 Start watching this issue

            Dates

              Created:
              Updated: