You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, the format of the data cannot be disclosed, but the bucket table is created through the following table creation statements and options in hive.
set hive.enforce.bucketing = true; set hive.exec.dynamic.partition.mode=nonstrict; set hive.exec.max.dynamic.partitions=1000; set hive.exec.max.dynamic.partitions.pernode=1000; set hive.execution.engine=mr; set hive.mapreduce.job.queuename=root.queue1;
Insert Data (1 months)
Insert into table `schema1.ex1` partition(date) select col1, col2, col3, col4 from `schema1.existing_table` where date between '2021-09-01' and '2021-10-01'
Read the data (in trino)
Then, When I read the hive bucket table in trino, I got the following error
'io.trino.spi.TrinoException: Hive table is corrupt. File 'hdfs://cluster1/hive/warehouse/schema1/ex1/date=2021-09-02/000026_0' is for bucket 26, but contains a row for bucket 9.
I don't know why the above error occurred. I would appreciate it if you could tell me the cause of the error and the solution.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First of all, the format of the data cannot be disclosed, but the bucket table is created through the following table creation statements and options in hive.
Then, When I read the hive bucket table in trino, I got the following error
I don't know why the above error occurred. I would appreciate it if you could tell me the cause of the error and the solution.
Beta Was this translation helpful? Give feedback.
All reactions