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

HS2 - add an option to disallow parallel query execution within a single Session

    XMLWordPrintableJSON

Details

    Description

      HiveServer2 currently allows concurrent queries to be run in a single session. However, every HS2 session has an associated SessionState object, and the use of SessionState in many places assumes that only one thread is using it, ie it is not thread safe.
      There are many places where SesssionState thread safety needs to be addressed, and until then we should serialize all query execution for a single HS2 session. This problem can become more visible with HIVE-4239 now allowing parallel query compilation.

      Note that running queries in parallel for single session is not straightforward with jdbc, you need to spawn another thread as the Statement.execute calls are blocking. I believe ODBC has non blocking query execution API, and Hue is another well known application that shares sessions for all queries that a user runs.

      Attachments

        1. HIVE-11402.01.patch
          15 kB
          Sergey Shelukhin
        2. HIVE-11402.02.patch
          15 kB
          Sergey Shelukhin
        3. HIVE-11402.03.patch
          30 kB
          Sergey Shelukhin
        4. HIVE-11402.04.patch
          31 kB
          Sergey Shelukhin
        5. HIVE-11402.05.patch
          31 kB
          Sergey Shelukhin
        6. HIVE-11402.06.patch
          31 kB
          Sergey Shelukhin
        7. HIVE-11402.patch
          14 kB
          Sergey Shelukhin

        Issue Links

          Activity

            People

              sershe Sergey Shelukhin
              thejas Thejas Nair
              Votes:
              0 Vote for this issue
              Watchers:
              24 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: