问题描述
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

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

被折叠的 条评论
为什么被折叠?



