`
dacoolbaby
  • 浏览: 1254206 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

[转]hive产生动态分区太多导致的问题 .

    博客分类:
  • Hive
阅读更多

转自:http://blog.csdn.net/chenyi8888/article/details/8236726

 

做应用开发的也要帮助他们找BUG,真是头疼。遇到如下异常,度娘给出的答案如下:

 

过多的动态分区会导致job出现以下情况:

org.apache.hadoop.hive.ql.metadata.HiveException: org.apache.hadoop.ipc.RemoteException: org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException: No lease on /tmp/hive-maintain/hive_2012-11-28_22-39-43_810_1689858262130334284/_task_tmp.-ext-10002/part=33436268/_tmp.000004_0 File does not exist. Holder DFSClient_attempt_201211250925_9859_m_000004_0 does not have any open files.

 

解决方案:

加大动态分区数即可,下面是在当前session下设置。

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics