AuthorizationException: User not allowed to impersonate User

后端 未结 1 859
予麋鹿
予麋鹿 2020-12-31 09:48

I wrote a spark job which registers a temp table and when I expose it via beeline (JDBC client)

$ ./bin/beeline
beeline> !connect jdbc:hive2://IP:10003 -n         


        
相关标签:
1条回答
  • 2020-12-31 10:37
    <property>
     <name>hive.server2.enable.doAs</name>
     <value>true</value>
    </property>
    

    Also if you want user ABC to impersonate all(*), add below properties to your core-site.xml

    <property>
      <name>hadoop.proxyuser.ABC.groups</name>
    <value>*</value>
    </property>
    
    <property>
     <name>hadoop.proxyuser.ABC.hosts</name>
     <value>*</value>
    </property>
    
    0 讨论(0)
提交回复
热议问题