Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

get Impala running query with duration with curl /cm API

avatar
Explorer

Hi ,

 

I am trying to pull impala running query with status 

/services/Impala/impalaQueries#'?filter=(query_state=RUNNING) but it also displaying all Finished query detials.

 

I need to pull information of Only RUNNING query which duration exceed with certain time period.

 

Can some one help me.

 

Thanks

At

1 ACCEPTED SOLUTION

avatar
Super Collaborator

Try something like 

# curl -u admin "http://$cmhost:7180/api/v33/clusters/Cluster%201/services/IMPALA-1/impalaQueries?filter=(query_state=RUNNING%20and%20query_duration>=1000)&from=2021-05-04T00:00:00.00Z"

 

View solution in original post

1 REPLY 1

avatar
Super Collaborator

Try something like 

# curl -u admin "http://$cmhost:7180/api/v33/clusters/Cluster%201/services/IMPALA-1/impalaQueries?filter=(query_state=RUNNING%20and%20query_duration>=1000)&from=2021-05-04T00:00:00.00Z"