Hive 5.0 mysql as metastore backend. Using external tables with location for
partitions...

alter table XXXX_action ADD PARTITION (hit_date = '20100329' , mid =
'000843') LOCATION 'hit_date=20100329/mid=000843';
alter table XXXX_action ADD PARTITION (hit_date = '20100329' , mid =
'000844') LOCATION 'hit_date=20100329/mid=000844';
alter table XXXX_action ADD PARTITION (hit_date = '20100329' , mid =
'000849') LOCATION 'hit_date=20100329/mid=000849';
alter table XXXX_action ADD PARTITION (hit_date = '20100329' , mid =
'000850') LOCATION 'hit_date=20100329/mid=000850';
alter table XXXX_action ADD PARTITION (hit_date = '20100329' , mid =
'000851') LOCATION 'hit_date=20100329/mid=000851';
alter table XXXX_action ADD PARTITION (hit_date = '20100329' , mid =
'000852') LOCATION 'hit_date=20100329/mid=000852';

Eventually this fails after a number of entries.

Time taken: 0.159 seconds
OK
Time taken: 0.17 seconds
OK
Time taken: 0.241 seconds
FAILED: Error in metadata: Unable to fetch table XXXXX_action
FAILED: Execution Error, return code 1 from
org.apache.hadoop.hive.ql.exec.DDLTask

Restarting the process after removing the already added tables works until
it breaks again. Anyone ever dealt with this?

Doing one hive -e per table always works but takes a lot longer ...3 seconds
a partition rather then ~.5 seconds.

Reply via email to