hadoop 问题备注

在这个博文中总结在hadoop中遇到的所有问题。

HIVE
1.在登录mysql上时,总是报错:

Access denied for user 'root'@'localhost' (using password: YES)

当时的登录方式为

./mysql -uroot -p root

刚刚我也不知道为什么,换了一种登录方式

./mysql -u root -p

就可以了。

2.在hive下开启远程访问端口,使用beeline时,报错

beeline> !connect jdbc:hive2://localhost:10000/mydb2
Connecting to jdbc:hive2://localhost:10000/mydb2
Enter username for jdbc:hive2://localhost:10000/mydb2: root
Enter password for jdbc:hive2://localhost:10000/mydb2:
18/03/04 10:02:04 [main]: WARN jdbc.HiveConnection: Failed to connect to localhost:10000
Error: Could not open client transport with JDBC Uri: jdbc:hive2://localhost:10000/mydb2: 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=08S01,code=0)

是因为没有在hadoop的core-site中配置


  hadoop.proxyuser.root.hosts
  *
 
 
  hadoop.proxyuser.root.groups
  *

配置好了重启hdfs就好了。

你可能感兴趣的:(hadoop 问题备注)