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中只保留一個名稱:

 

 

 

 

 

 

 

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