Reply
Explorer
Posts: 18
Registered: ‎03-19-2019

ImpalaQueries Cloudera REST API is returning empty JSON Array.

Hi Friends, I am trying to invoke REST API to get the details of query, and for that I am invoking beowl REST API


https://host:7183/api/v15/clusters/ClusterName/services/impala/impalaQueries/

But this API is returning me empty JSON Array -

{
  "queries" : [ ],
  "warnings" : [ ]
}

 

This REST call returns me the result only when I fires the query or immediate after the query.
When I use queryId filter then slo it returns the result with empty JSON array, like (https://host:7183/api/v15/clusters/Cluster%201/services/impala/impalaQueries?query_id=fe4b632ffc5c2c...)


I want to consume result of above rest call in my java programme. 


What should I do to get the query details all the time. Which Filters I need to use the get the details of a query?

Cloudera Employee
Posts: 222
Registered: ‎01-15-2015

Re: ImpalaQueries Cloudera REST API is returning empty JSON Array.

You may want to review if the Service Monitor has been restarted or is unoperable. To keep the Impala queries for a longer time, please increase the Impala queries store maximum size

Announcements