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

Cancel Running Druid Query when a hive query is cancelled.

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Druid integration
    • Labels:
      None

      Description

      https://issues.apache.org/jira/browse/HIVE-20686 ensures that hive query id is passed to druid.
      Druid also supports query cancellation by query id.
      Queries can be cancelled explicitly using their queryId by sending a DELETE request to following endpoint on the broker or router -

       
      DELETE /druid/v2/{queryId}
      

      Implementation wise we need to cancel a druid query when a RecordReader is closed.
      I believe Hive should already be calling close on open recordReaders when someone cancels a query.

        Attachments

          Activity

            People

            • Assignee:
              nishantbangarwa Nishant Bangarwa
              Reporter:
              nishantbangarwa Nishant Bangarwa
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: