Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

ImpalaQueries Cloudera REST API is returning empty JSON Array.

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?

1 REPLY 1

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

Expert Contributor

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