OS: Centos 7.6
JDK: 1.8.0_91
Python: Python 2.7.5
Apatch: httpd: Apache/2.4.6
Ambari: 2.7.3.0
HDP: 3.1.0.0
Postgresql: 9.2.24-1.el7_5
>>安装JDK:https://my.oschina.net/jerval/blog/3051256
>>安装Apatch httpd:https://my.oschina.net/jerval/blog/3051264
>>下载Ambari,HDP所有包和repo文件:
Ambari:
参考:https://docs.hortonworks.com/HDPDocuments/Ambari-2.7.3.0/bk_ambari-installation/content/ambari_repositories.html
ambari-2.7.3.0-centos7.tar.gz: http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.3.0/ambari-2.7.3.0-centos7.tar.gz
ambari.repo: http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.3.0/ambari.repo
HDP:
参考:https://docs.hortonworks.com/HDPDocuments/Ambari-2.7.3.0/bk_ambari-installation/content/hdp_31_repositories.html
HDP-3.1.0.0-centos7-rpm.tar.gz: http://public-repo-1.hortonworks.com/HDP/centos7/3.x/updates/3.1.0.0/HDP-3.1.0.0-centos7-rpm.tar.gz
hdp.repo: http://public-repo-1.hortonworks.com/HDP/centos7/3.x/updates/3.1.0.0/hdp.repo
HDP-UTILS-1.1.0.22-centos7.tar.gz: http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos7/HDP-UTILS-1.1.0.22-centos7.tar.gz
HDP-GPL-3.1.0.0-centos7-gpl.tar.gz: http://public-repo-1.hortonworks.com/HDP-GPL/centos7/3.x/updates/3.1.0.0/HDP-GPL-3.1.0.0-centos7-gpl.tar.gz
hdp.gpl.repo: http://public-repo-1.hortonworks.com/HDP-GPL/centos7/3.x/updates/3.1.0.0/hdp.gpl.repo
>>关闭所有机器的防火墙
# systemctl stop firewalld
# systemctl disable firewalld
>>禁用SELinux, 需要重启服务器
# vim /etc/selinux/config
SELINUX=disabled
>>设置机器hostname
# hostnamectl set-hostname server1.jvwl.com
# hostname -f
>>添加所有机器hostname访问功能
# vim /etc/hosts
添加代码:
192.168.31.111 server1.jvwl.com
192.168.31.112 server2.jvwl.com
>>重启网络