(1)ambari-server 不识别,设置超链接
将/etc/init.d/下的ambari-server脚本超链接至/usr/bin/下面
ln -s /etc/init.d/ambari-server /usr/bin/ambari-server
(2)python版本
vi /etc/init.d/ambari-server
(3)执行setup时No module named ambari_commons.exceptions
将/usr/lib/ambari-server/lib下的文件夹复制到python/site-package下面
(4)/usr/bin/env: ambari-python-wrap: No such file or directory
经排查
在/usr/bin下没有ambari-python-wrap,将其他服务上的复制过来
比如81的/usr/bin
>cd /usr/bin
>scp -r ./ambari-python-wrap root@10.1.3.110:/usr/bin
追踪原因:
若安装上之后、usr/bin下已有python2.7,则ln -s ./python2.7 ./python2
然后再将当前目录下的python2软连接成所需:ln -s /usr/bin/python2 /usr/bin/ambari-python-wrap
最终解决:
cd /usr/bin/
ln -s ./python ./ambari-python-wrap
(5)修改启动指令为seabox-server start
修改/etc/rc.d/init.d/下的ambari-server为seabox-server
然后建立软连接到/usr/bin/seabox-server
ln -s /etc/rc.d/init.d/seabox-server /usr/bin/seabox-server
(6)
(7)在打开hive视图时
Service 'userhome' check failed:
file does not exits:/user/admin
解决:
>su hdfs
>hadoop fs -mkdir /user/admin
>hdfs dfs -chown admin:hadoop /user/admin或hadoop fs -chown admin:hadoop /user/admin
若出现:Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [admin] does not have [USE] privilege on [null] [ERROR_STATUS]
解决:在服务上设置admin访问hive的权限
(8)安装hive 时
ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/lib/ambari-server/mysql-connector-java-5.1.38-bin.jar
需更改为seabox-server setup --jdbc-db=mysql --jdbc-driver=/usr/lib/ambari-server/mysql-connector-java-5.1.38-bin.jar