centos7安裝Ambari-2.7.3
原文參考官網
https://docs.hortonworks.com/HDPDocuments/Ambari-2.7.3.0/bk_ambari-installation/content/prepare_the_environment.html
准備工作
產品的互操作性
Ambari 2.7.3只支持HDP-3.1.0和HDF-3.2.0
使用以下URL確定對每個產品版本的支持。
https://supportmatrix.hortonworks.com
軟件需求
On each of your hosts:
yum和rpm (RHEL/CentOS/Oracle/Amazon Linux)
zypper和php_curl (SLES)
apt (Debian / Ubuntu)
scp、curl、unzip、tar、wget和gcc*
OpenSSL (v1.01,構建16或更高版本)
Python (python-devel *)
Ambari Metrics Monitor使用一個python庫(psutil),它需要gcc和python-devel包。
准備環境
設置無密碼SSH
https://www.linuxidc.com/Linux/2018-09/154112.htm
https://www.cnblogs.com/xiaoaofengyue/p/8080639.html
在集群和瀏覽器主機上啟用NTP
https://www.cnblogs.com/quchunhui/p/7658853.html
檢查DNS和NSCD
配置iptables
CentOS7如何關閉防火牆
https://jingyan.baidu.com/article/ff42efa9fd8c1cc19e2202bb.html
禁用SELinux和PackageKit並檢查umask值
臨時和永久關閉Selinux
https://blog.csdn.net/xin_y/article/details/79007986
UMASK Examples:
為當前登錄會話設置umask:
umask 0022
檢查您當前的umask:
umask
永久更改所有交互式用戶的umask:
echo umask 0022 >> /etc/profile
1下載並設置數據庫連接器
2.使用本地存儲庫
(我選擇了mysql,具體可以參考我的另一篇文章 https://www.cnblogs.com/wangdaxianer/p/10521923.html )
Mysql的連接器mysql-connector-java-8.0.13.jar(ambari-server setup的時候會用到)
安裝Ambari
RHEL / CentOS / Oracle Linux 7
- 以root。登錄主機。
- 將Ambari存儲庫文件下載到安裝主機上的目錄中。
- wget -nv http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.3.0/ambari.repo -O /etc/yum.repos.d/ambari.repo
|
重要 |
不要修改ambari.repo文件名。在代理注冊期間,此文件應在Ambari Server主機上可用。 |
- 通過檢查repo列表確認已配置存儲庫。
- yum repolist
您應該在列表中看到與Ambari存儲庫類似的值。
repo id repo name status
ambari-2.7.3.0-139 ambari Version - ambari-2.7.3.0-139 12
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 11,387
ol7_UEKR4/x86_64 Latest Unbreakable Enterprise Kernel Release 4
for Oracle Linux 7Server (x86_64) 295
ol7_latest/x86_64 Oracle Linux 7Server Latest (x86_64) 18,642
puppetlabs-deps/x86_64 Puppet Labs Dependencies El 7 - x86_64 17
puppetlabs-products/x86_64 Puppet Labs Products El 7 - x86_64 225
repolist: 30,578
版本值因安裝而異。
安裝Ambari位。這也安裝了默認的PostgreSQL Ambari數據庫。
Yum -y install ambari-server
成功安裝顯示類似於以下內容的輸出:
安裝:postgresql-libs-9.2.18-1.el7.x86_64 1/4
安裝:postgresql-9.2.18-1.el7.x86_64 2/4
安裝:postgresql-server-9.2.18-1.el7.x86_64 3/4
安裝:ambari-server-2.7.3.0-139.x86_64 4/4
驗證:ambari-server-2.7.3.0-139.x86_64 1/4
驗證:postgresql-9.2.18-1.el7.x86_64 2/4
驗證:postgresql-server-9.2.18-1.el7.x86_64 3/4
驗證:postgresql-libs-9.2.18-1.el7.x86_64 4/4
安裝:
ambari-server.x86_64 0:2.7.3.0-139
安裝依賴項:
postgresql.x86_64 0:9.2.18-1.el7
postgresql-libs.x86_64 0:9.2.18-1.el7
postgresql-server.x86_64 0:9.2.18-1.el7
完成!
設置Ambari-server
ambari-server setup
啟動httpd服務
Systemctl start httpd.service
訪問頁面192.168.255.132:8080進行頁面繼續安裝