Manage partition retention time
You can keep the size of the Hive metadata and data you accumulate for log processing, and other activities, to a manageable size by setting a retention period for the data.
The table must be configured to automatically synchronize partition metadata with
directories or objects on a file system, such as HDFS or S3.
If you specify a partition metadata retention period, Hive drops the metadata and
corresponding data in any partition created after the retention period. You express
the retention time using a numeral and the
following character or characters:
- ms (milliseconds)
- s (seconds)
- m (minutes)
- d (days)
In this task, you configure automatic synchronization of the file system partitions
with the metastore and a partition retention period. Assume you already created a
partitioned, external table named employees
as described earlier (see link below).