hive-table-partitioning
Hive Table Partitioning |
|---|
What is Partitioning
|
|
Static Partition - We need to load the data into the partitions manually, mostly with query on staging table Hive creates a directory inside table location and stores the given data in to that. and sub-directory structure for each subsequent partitioning column.
|
|
Dynamic Partition - Hive takes care of data importing into respective partitions It creates a directory structure for each partition and sub-directory structure for each subsequent partitioning column. Please set below properties to enable dynamic partition set hive.exec.dynamic.partition=true; set hive.exec.dynamic.partition.mode=nonstrict; Please set below properties to control dynamic partitions count set hive.exec.max.dynamic.partitions= {desired max partitions no.}; set hive.exec.max.dynamic.partitions.pernode={desired max partitions no.};
|
Comments
Post a Comment