Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Solved
Go to solution
get Impala running query with duration with curl /cm API
Labels:
- Labels:
-
Cloudera Manager
Explorer
Created 05-03-2021 09:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Super Collaborator
Created 05-04-2021 02:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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"
1 REPLY 1
Super Collaborator
Created 05-04-2021 02:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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"
