beeline 连接,参数报错 Cannot modify ** at runtime. It is in the list of parameters that can‘t be modified

本文介绍了一种在使用beeline连接CDH大数据集群中的HiveServer2时遇到的错误及其解决方法。当尝试设置spark相关参数时,会收到运行时无法修改hive.spark.client.server.connect.timeout的错误提示。解决此问题需通过Cloudera Manager配置hive.conf.restricted.list属性。

问题描述

CDH 大数据集群,使用beeline 连接hiveserver2时,后面跟spark的一些参数时。报错Failed to open new session: java.lang.IllegalArgumentException: Cannot modify hive.spark.client.server.connect.timeout at runtime. It is in the list of parameters that can't be modified at runtime or is prefixed by a restricted variable,详情如下:

[wzqi@cdh1 shell]$ beeline -u 'jdbc:hive2://ha01.bg.hadoop:10000/default;principal=hive/ha01.bg.hadoop@HA.CDH' --hiveconf hive.merge.smallfiles.avgsize=16000000 --hiveconf hive.execution.engine=spark --hiveconf hive.server2.long.polling.timeout=50ms --hiveconf hive.mapjoin.smalltable.filesize=100000000 --hiveconf hive.merge.sparkfiles=true --hiveconf spark.executor.extraJavaOptions=-XX:+UseG1GC --hiveconf hive.map.aggr.hash.percentmemory=0.5 --hiveconf hive.auto.convert.join.noconditionaltask=true --hiveconf hive.compute.query.using.stats=true --hiveconf spark.task.maxFailures=5 --hiveconf hive.spark.job.monitor.timeout=180s --hiveconf

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值