We are using HDP hadoop distribution v2.3.2, we are dealing with Hive external tables and these are queried on daily basis.
After few days since process started, the data directories contain lot of staging directories with format: .hive-staging_hive_date-time_ There are lot of staging directories generated, each staging directory corresponds to a query run on the Hive table.
What can I do to avoid these staging directories to be piled up into my data directories ?