错误:
bymain is not allowed to impersonate hadoop(或者
User root is not allowed to impersonate anonymous
)
1 修改/home/bymain/hadoop-3.0/etc/hadoop/core-site.xml
添加 两条属性:
hadoop.proxyuser.bymain.hosts
*
hadoop.proxyuser.bymain.groups
*
bymain是当前操作的用户名
重启 hadoop
----------------------------------------------------------------------
2错误 :
Permission denied: user=hadoop, access=EXECUTE, inode="/tmp":bymain:supergroup:drwx------、
修改 tmp 权限
hadoop fs -chmod 755 /tmp
重启 hadoop
-------------------------------------------------------------------------
3错误:
Permission denied: user=hadoop, access=EXECUTE, inode="/user/hive/warehouse ":bymain:supergroup:drwx------、
修改权限
hadoop fs -chmod 755 /user/hive/warehouse
4.还有就是重启mysql服务 su 到root下 service mysqld restart
5. pas aux|grep 10000,看hiveserver2是否正在运行!!!!!
记得重启hadoop