作者:白纸鹤u8_fw7 | 来源:互联网 | 2023-10-11 11:19
beeline连接hiveserver2报错Error:CouldnotopenclienttransportwithJDBCUri:jdbc:hive2:localhost
beeline连接hiveserver2报错
Error: Could not open client transport with JDBC Uri: jdbc:hive2://localhost:10000: Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: test is not allowed to impersonate anonymous (state=08S01,code=0)
解决方法
core-site.xml
hadoop.proxyuser.test.groups
*
hadoop.proxyuser.test.hosts
*
这里是test用户,其他用户自行调整,即执行beeline的用户名,修改完成后重启hdfs和yarn