Reply
Highlighted
Explorer
Posts: 12
Registered: ‎08-30-2018
Accepted Solution

Cancel or close queued queries using Impala JDBC driver

Hi,

 

I have a dashboard application (using Zoomdata) in which we submit queries to a Impala resource pool with limited number of concurrent requests. While we load the dashboard, some queries might get queued if conc. requests limit is reached.

When I change the dashboard time range, I noticed the running queries are properly cancelled, but the queued ones stay in the queue and are going to execute before the new queries submitted.

 

Do you know if there is any Impala JDBC driver property or Impala server setting to be able to cancel queued queries and prevent them from running?

Cloudera Employee
Posts: 437
Registered: ‎07-29-2015

Re: Cancel or close queued queries using Impala JDBC driver

We fixed this behaviour in CDH6.1/Impala 3.1 - there was a product limitation that queued queries couldn't be cancelled. After the fix they should be cancellable the same as any other query. For reference, https://issues.apache.org/jira/browse/IMPALA-5216

Explorer
Posts: 12
Registered: ‎08-30-2018

Re: Cancel or close queued queries using Impala JDBC driver

Thanks a lot, Tim!