立即注册 登录
About云-梭伦科技 返回首页

jixianqiuxue的个人空间 https://www.aboutyun.com/?331 [收藏] [复制] [分享] [RSS]

日志

beeline使用账号密码连接hiveserver2报错

已有 7917 次阅读2016-5-9 13:33 | 密码, 账号

报错如下:
beeline> !connect jdbc:hive2://master:10000
Connecting to jdbc:hive2://master:10000
Enter username for jdbc:hive2://master:10000: root
Enter password for jdbc:hive2://master:10000:                                                    
Enter password for jdbc:hive2://master:10000: Error: Failed to open new session: java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: root is not allowed to impersonate root (state=,code=0)
解决办法:
<!-- 在core-site.xml添加如下属性:-->
<property>
      <name>hadoop.proxyuser.root.groups</name>
      <value>root</value>
      <description>Allow the superuser oozie to impersonate any members of the group group1 and group2</description>
    </property>
<property>
      <name>hadoop.proxyuser.root.hosts</name>
      <value>localhost</value>
      <description>The superuser can connect only from host1 and host2 to impersonate a user</description>
</property>

路过

雷人

握手

鲜花

鸡蛋

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 立即注册

关闭

推荐上一条 /2 下一条