Ambari安装相关问题解决

离线安装ambari

地址:https://blog.csdn.net/Happy_Sunshine_Boy/article/details/86595945

1、不能启动服务“REASON: Server not yet listening on http port 8080 after 50 seconds. Exiting.”

修改配置文件/etc/ambari-server/conf/ambari.properties
server.jdbc.hostname=hadoop01
server.jdbc.rca.url=jdbc:mysql://hadoop01:3306/ambari
server.jdbc.url=jdbc:mysql://hadoop01:3306/ambari
以上三个参数修改为:
server.jdbc.hostname=localhost
server.jdbc.rca.url=jdbc:mysql://localhost:3306/ambari
server.jdbc.url=jdbc:mysql://localhost:3306/ambari

2、在确认主机时出现错误

查看文件:tail /var/log/ambari-agent/ambari-agent.log

INFO 2020-06-20 11:33:22,053 hostname.py:67 - agent:hostname_script configuration not defined thus read hostname 'hostdomain01' using socket.getfqdn().
ERROR 2020-06-20 11:33:22,053 main.py:269 - Ambari agent machine hostname (hostdomain01) does not match expected ambari server hostname (hadoop01). Aborting registration. Please check hostname, hostname -f and /etc/hosts file to confirm your hostname is setup correctly

以上说明主机名称不对

修改方法(此次):

第一:将每台主机的 /etc/hostname 文件:

第二:修改/etc/hosts文件,将 第一行和第二行开头设置为指定的hostname;保证hostname命令、hostname -f两个命令执行结果相同

第三:IPV6中只保留一个名称:

 

 

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章