Wednesday, 23 May 2018

[Apache Hive] org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: [UserName] is not allowed to impersonate anonymous

When Connect Hive by JDBC driver, This exception occurred.






  • Solution

1. Edit Hadoop Configuration

#> vi $HADOOP_HOME/etc/hadoop/core-site.xml
















2. Format NameNode

#> hadoop namenode -format


3. Restart Hadoop

#> $HADOOP_HOME/sbin/stop-all.sh
#> $HADOOP_HOME/sbin/start-all.sh


4. Restart Hive

No comments:

Post a Comment