解决问题:Cannot modify mapreduce.job.reduces at runtime. It is not in list of params that are allowed to

解决问题:Cannot modify mapreduce.job.reduces at runtime. It is not in list of params that are allowed to,第1张

解决问题:Cannot modify mapreduce.job.reduces at runtime. It is not in list of params that are allowed to

用beeline连接hive的时候,发现任务总是抢占不到资源,增加:set mapreduce.job.reduces=60;

但是返回:Error while processing statement: Cannot modify mapreduce.job.reduces at runtime. It is not in list of params that are allowed to be modified at runtime

看到大多数人的解决方式都是修改hive-site.xml,然后重启,但是由于生产环境这样 *** 作不现实,仅仅为了一个脚本就重启hive。

还有一个解决方案就是:用旧的参数名设置:set mapred.reduce.tasks=60;

说明:
在hadoop2中有些参数名称过时了,例如原来的mapred.reduce.tasks
改名为mapreduce.job.reduces了,当然,这两个参数你都可以使用,只是第一个参数过时了。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5683770.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存