安裝HDP叢集過程中的報錯
阿新 • • 發佈:2021-09-13
1、搭建ambari 時遇見的問題
[root@hadoop-master ~]# yum -y install ambari-server
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package ambari-server.x86_64 0:2.7.3.0-139 will be installed
--> Processing Dependency: postgresql-server >= 8.1 for package: ambari-server-2.7.3.0-139.x86_64
--> Finished Dependency Resolution
Error: Package: ambari-server-2.7.3.0-139.x86_64 (ambari-2.7.3.0)
Requires: postgresql-server >= 8.1
You could try using --skip-broken to work around the problem
** Found 4 pre-existing rpmdb problem(s), 'yum check' output follows:
bea-stax-api-1.2.0-9.el7.noarch has missing requires of jpackage-utils
bea-stax-api-1.2.0-9.el7.noarch has missing requires of jpackage-utils
stax2-api-3.1.1-10.el7.noarch has missing requires of jpackage-utils
tomcat-servlet-3.0-api-7.0.76-7.el7_5.noarch has missing requires of jpackage-utils
根據 下面四行所說 缺少 jpackage-utils 。轉回本地源
yum -y install jpackage-utils
Error: Package: ambari-server-2.7.3.0-139.x86_64 (ambari-2.7.3.0)
Requires: postgresql-server >= 8.1
說明postgresql 版本過低 或者沒有安裝
先 yum-y update postgresql-server
根據反饋選擇 安裝還是升級
2、搭建hdp過程中修改了各節點主機名,導致在進行主機確認時,無法識別
解決辦法:
重新安裝ambari,將ambari相關的檔案,程式都刪除了(除了原始碼包),否則認證的時候無法成功
1、 通過ambari將叢集中的所用元件都關閉
2、 關閉ambari-server,ambari-agent
3、清除瀏覽器的快取
4,yum刪除所有Ambari元件
5、刪除除原始碼包外的所有ambari相關檔案
6、清理資料庫
3、在對主機進行檢查認證時(常規報錯)
EOF occurred in violation of protocol (_ssl.c:618)
ERROR 2020-07-09 10:35:24,213 NetUtil.py:97 - SSLError: Failed to connect. Please check openssl library versions.
ambari openssl 版本問題:SSLError: Failed to connect. Please check openssl library versions.
1.檢查os openssl版本,如果低於 openssl-1.0.1e-16.el6.x86_64 版本,請更新。
[root@node-1 ~]# rpm -qa | grep openssl
openssl-1.0.1e-57.el6.x86_64
openssl-devel-1.0.1e-57.el6.x86_64
更新openssl
[root@node-1 ~]# yum -y update openssl
重啟ambari-server
ambari-server restart
2.若不行,
編輯 /etc/python/cert-verification.cfg 配置檔案,將 [https] 節的 verify 項設為禁用:
vim /etc/python/cert-verification.cfg
verify=disable
修改/etc/ambari-agent/conf/ambari-agent.ini,在
vim /etc/ambari-agent/conf/ambari-agent.ini
[security]新增下面內容
ssl_verify_cert=0 force_https_protocol=PROTOCOL_TLSv1_2
重啟ambari-agent
ambari-agent restart
3、安裝服務時報錯
javax.net.ssl.SSLHandshakeException:ClientrequestedprotocolTLSv1notenabledornotsupported
搭建的java jre配置問題
vim $JAVA_HOME/jre/lib/security/java.security
禁用、刪除3DES_EDE_CBC即可,無需新增 TLSv1
修改完成後重啟JAVA程序 (不行的話就重啟伺服器)
5、安裝HDFSclient報錯
排查發現缺少依賴包:
解決辦法:安裝依賴包
http://mirror.centos.org/centos/7/os/x86_64/Packages/libtirpc-0.2.4-0.16.el7.x86_64.rpm
http://mirror.centos.org/centos/7/os/x86_64/Packages/libtirpc-devel-0.2.4-0.16.el7.x86_64.rpm
rpm -ivh libtirpc-0.2.4-0.16.el7.x86_64.rpmlibtirpc-devel-0.2.4-0.16.el7.x86_64.rpm
報錯 檢視 /var/log/ambari-server/ambari-server.log日誌