Ways to clean up old queries from the Query Processor tables
Learn how to schedule a query clean-up and how to use the API to manually clean up queries from the following Query Processor tables: vertex_info, dag_details, dag_info, query_details, hive_query, tez_app_info.
Scheduling query clean-up
By default, the Hue Query Processor automatically clears queries from the
Query Processor tables that are 30 days old at 2 AM every day as per the timezone set on
your server. You can configure the following parameters in
to set up a schedule based on your requirements:- hue.query-processor.event-pipeline.cleanup.cron.expression
- hue.query-processor.event-pipeline.cleanup-interval-secs
For
example:
“hue.query-processor.event-pipeline.cleanup.cron.expression” : “0 0 2 * * ?”,
“hue.query-processor.event-pipeline.cleanup-interval-secs” : “2592000”