目錄
一、錯(cuò)誤現(xiàn)象
二、?解決方案
三、其他解決方式
背景:ranger 整合cdh后登陸HiveServer2測(cè)試
一、錯(cuò)誤現(xiàn)象
后臺(tái)日志
Error: Could not open client transport with JDBC Uri: jdbc:hive2://hadoop105:10000: Failed to open new session: java.lang.IllegalArgumentException: Cannot modify hive.query.redaction.rules at runtime. It?
is not in list of params that are allowed to be modified at runtime (state=08S01,code=0)
?HiveServer2日志
[HiveServer2-Handler-Pool: Thread-55]: Error opening session: org.apache.hive.service.cli.HiveSQLException: Failed to open new session: java.lang.IllegalArgumentException: Cannot modify hive.query.redaction.rules at runtime. It is not in list of params that are allowed to be modified at runtime at org.apache.hive.service.cli.session.SessionManager.createSession(SessionManager.java:420) ~[hive-service-2.1.1-cdh6.3.2.jar:2.1.1-cdh6.3.2]
二、?解決方案
修改/opt/cloudera/parcels/CDH/lib/hive/conf/
目錄下的hive
環(huán)境變量文件hive-env.sh
,注釋export HIVE_OPTS
配置(集群所有機(jī)器都要修改)
vim /opt/cloudera/parcels/CDH/lib/hive/conf/hive-env.sh
不需要重啟
beeline -u jdbc:hive2://hadoop105:10000/test -n test?
成功登陸
三、其他解決方式
在?hadoop
?文件?core-site.xml
?中配置信息如下,重啟Hadoop,再次啟動(dòng)?hiveserver2
?和?beeline
?即可文章來源:http://www.zghlxwxcb.cn/news/detail-530225.html
把下面的root替換成自己的用戶名文章來源地址http://www.zghlxwxcb.cn/news/detail-530225.html
?? ?<property>
?? ??? ?<name>hadoop.proxyuser.root.hosts</name>
?? ??? ?<value>*</value>
?? ?</property>
?? ?<property>
?? ??? ?<name>hadoop.proxyuser.root.groups</name>
?? ??? ?<value>*</value>
?? ?</property>
到了這里,關(guān)于Error: Could not open client transport with JDBC Uri: jdbc:hive2://解決連接beenline連接HiveServer2報(bào)錯(cuò)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!