编译报错
File "/opt/cloudera/parcels/CDH-5.9.0-1.cdh5.9.0.p0.23/lib/hue/build/env/lib/python2.6/site-packages/MySQL_python-1.2.5-py2.6-linux-x86_64.egg/MySQLdb/connections.py", line 193, in __init__
super(Connection, self).__init__(*args, **kwargs2)
django.db.utils.OperationalError: (1045, "Access denied for user 'root'@'slave01' (using password: YES)")
make[1]: *** [/opt/cloudera/parcels/CDH-5.9.0-1.cdh5.9.0.p0.23/lib/hue/desktop/desktop.db] 错误 1
make[1]: Leaving directory `/opt/cloudera/parcels/CDH-5.9.0-1.cdh5.9.0.p0.23/lib/hue/desktop'
make: *** [desktop] 错误 2
解决方案:
修改:
desktop/conf/pseudo-distributed.ini
修改593行:(linux查找命令:/engine)
engine=mysql
host=master
port=3306
user=root
password=Sunmnet@123
name=hue
改成我们自己的数据库信息
如下图所示:
Sentry权限设置有问题
Access denied to ldapadmin
解决方案:
暂未解决。。。
sqoop.properties的问题
解决方案:
拷贝sqoop.properties 文件至 /etc/sqoop2/conf 目录
/etc/sqoop2/conf
发现不行。。
HDFS用户被ban
YARN-->Web UI-->第一行的那个
进入yarn目录查看日志文件,发现报错:
Requested user hdfs is banned
Failing this attempt. Failing the application.
解决方案:
修改Clouder关于这个该项的设置,Yarn->配置->banned.users 将hdfs用户移除
kerbers认证问题
提示是kerbers认证的问题,需要输入:
kinit hive
输入:kinit root/admin
密码:sunmnet123
输入:kadmin
密码:sunmnet123
---------------------------------------------------------------------
# 查看当前用户的认证信息ticket
klist
addprinc hive
输入密码:sunmnet123
确认密码:sunmnet123
kinit hive
输入密码:sunmnet123
Sentry日志位置
Sentry日志:/var/log/sentry
beeline登录
beeline -u "jdbc:hive2://master:10000/" -n root -p root
在CDH启用Kerbers时,ZooKeeper报错
java.io.IOException: Could not configure server because SASL configuration did not allow the ZooKeeper server to authenticate itself properly:
javax.security.auth.login.LoginException: No supported encryption types listed in default_tkt_enctypes
解决方案:
重新确认jdk的位置,一定要和java -version相匹配,参考如下链接:
https://www.cnblogs.com/kerrycode/archive/2015/08/27/4762921.html
kinit: Client not found in Kerberos database while getting initial credentials
解决方案:
这是说“用户未找到”
输入:kinit root/admin
密码:sunmnet123