Created 01-09-2018 04:26 PM
Hi,
I have an ORC table which updates every 5 min in different date partitions, i want to run the CONCATENATE alter table command, but how do i run it on all partitions at once? with the below command i could do only on single partition:
ALTER TABEL tablename PARTITION (dt=20180109) CONCATENATE;
Thanks.
Created 01-09-2018 07:42 PM
I don't think there is a way to do it at once for all partitions, best you could is to specify multiple partitions like ALTER TABLE tableName PARTITION(dt=20180109, dt=20180110..) CONCATENATE. Please note that there are known issues with ALTER TABLE CONCATENATE in versions earlier than HDP 2.6 and it is not recommended to run CONCATENATE.
Created 01-09-2018 08:25 PM
Thanks for the answer.
I use 2.5.3 HDP, when i use concatenate once on the partition with many files, it only concatenates 1 or a few files each time, i have to do it multiple times to concatenate all to one large file.. was this an issue as well? could be please direct me to the issues of the concatenate in earlier versions?
Created 08-17-2018 03:54 AM
Created 08-17-2018 05:39 PM