Why do I get “File could only be replicated to 0 nodes” when writing to a partitioned table?

后端 未结 1 466
梦谈多话
梦谈多话 2021-01-25 01:24

I create an external table in Hive with partitions and then try to populate it from the existing table, however, I get the following exceptions:

Caused by: org.a         


        
1条回答
  •  暖寄归人
    2021-01-25 02:04

    SET hive.exec.max.dynamic.partitions=100000; 
    SET hive.exec.max.dynamic.partitions.pernode=100000;
    

    Setting the above parameters solved it for me. I guess hive was not able to replicate data to those partitions that show up in the exception, because there were more than the maximum (which is 224 in the case of my dataset).

    0 讨论(0)
提交回复
热议问题