我们的团队使用python执行配置单元查询。但是,繁重的查询总是会阻塞其他较轻的查询,并且必须等待一个多小时
是否可以为单个连接设置优先级或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
错误
谢谢
由于您直接连接到配置单元,因此设置中的
hive.security.authorization.sqlstd.confwhitelist.append
值似乎不正确或太严格,不允许在运行时设置变量这里描述了解决方案here。示例hiveserver2.xml值与正则表达式中的值:
相关问题 更多 >
编程相关推荐