presto-admin
presto-admin copied to clipboard
Implement getting query_history
Similar to presto-admin collect query_info <query_id>, but the entire query history. The query_history is gone after a restart/cluster terminate. So nice to have it available locally for user's reference For entire history get it from - v1/query Similar to collect query_info, the user has to collect the query_history he wants before a presto stop/restart. The output of v1/query is an array of JSON elements, one element per query_id. Download it as a zip, similar to collect system_info Another thing (and probably better one) to consider is : Have query_history integrated to show up in Presto UI along with other monitoring/stats info. (query list on the Presto UI is gone after a server restart at this point)