【发布时间】:2021-06-18 09:21:55
【问题描述】:
我们的团队使用 python 来执行 hive 查询。但是,繁重的查询总是会阻塞其他轻量级的查询,并且必须等待一个多小时。
是否可以为单个连接设置优先级或 vcpu 资源?
在配置中设置“yarn.nodemanager.resource.cpu-vcores”或“mapred.job.priority”是解决方案吗?
configuration = {
"mapred.job.priority": 'LOW',
"yarn.nodemanager.resource.cpu-vcores": 2
}
# configuration={}
con = hive.connect(ip, port=10000, auth=auth, kerberos_service_name='hive', database=db_name, configuration=configuration)
如果是,我该如何修复It is not in list of params that are allowed to be modified at runtime 错误?
谢谢
【问题讨论】:
-
能否请您添加 -
mem_limit=300000000?这将限制每个连接。 -
@Koushik Roy ,它抛出
It is not in list of params that are allowed to be modified at runtime