欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

异常-hsql 小文件过多

程序员文章站 2022-06-07 22:59:07
...

1.背景:

   hive  做 insert overwrite select * from table 操作

   出现异常:

   [Fatal Error] total number of created files now is 100028, which exceeds 100000. Killing the job.

 

2.实际默认限制:

   hive> set hive.exec.max.created.files;

   hive.exec.max.created.files=100000

 

3.解决方案:

   加上:DISTRIBUTE BY  

   其他问题:因为会多一次shuffer 速度变慢,还可能分区不均匀导致问题

 

 

   

 

 

 

参考:

https://confusedcoders.com/data-engineering/etl/hive/hive-dynamix-partition-error-fatal-error-total-number-of-created-files-now-is-100000-which-exceeds-100000-killing-the-job

 

https://sungang-1120.iteye.com/blog/2262234