https://docs.hortonworks.com/index.html
https://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-installation/content/download_the_ambari_repo_lnx6.html
wget -nv http://public回购- 1. - hortonworks.com/ambari/centos6/2.x/updates/2.4.2.0/ambari.repo -O /etc/yum.repos.d/ambari.repo yum repolist yum install ——downloadonly ambari-server ——downloaddir=/tmp/yum install ——downloadonly HDP-2.5.0.0 ——downloaddir=/tmp/yum install ——downloadonly 黄芪丹参滴丸- 2.5 . *,——downloaddir=/tmp/Update 提醒;2018-5-13 百胜源有问题了,wget下载地址: wget http://public回购- 1. - hortonworks.com/hdp跑龙套1.1.0.21/repos/centos6/hdp -跑龙套1.1.0.21 centos6.tar.gz wget http://public回购- 1. - hortonworks.com/hdp/centos6/2.x/updates/2.5.0.0/hdp 2.5.0.0 - centos6 rpm.tar.gz [root@db_monitor] #噢 -rw-r——r, 1, root root 5996696005, Aug 27,, 2016年HDP-2.5.0.0-centos6-tars-tarball.tar.gz -rw-r——r, 1, root root , 833424206, Oct 26, 23:09 HDP-UTILS-1.1.0.21-centos6.tar。广州
yum install httpd - y #,service httpd 重启 #,chkconfig httpd
<强> 强>
,美元ssh-keygen -t rsa -f ~/sh/id_rsa
ssh-copy-id server2 ssh-copy-id server3 ssh-copy-id , server4
ansible all -m selinux -a & # 39;状态=禁用# 39;
ansible all -m service -a & # 39; name=iptables 状态=stopped 启用=从# 39;
wget http://10.21.xx.xx/deploy/jdk1.7.0_79.tar。广州
# tar -xzvf , jdk1.7.0_79.tar.gz -C /usr/当地
export JAVA_HOME=/usr/地方/jdk1.8.0_144 , export JRE_HOME=/usr/地方/jdk1.8.0_144/jre export CLASSPATH=? $ JAVA_HOME/lib/dt.jar: $ JAVA_HOME/lib/tools.jar: JRE_HOME/lib:美元类路径中 export 路径=$ JAVA_HOME/bin: $路径 source /etc/profile
(注意:如果选择自行安装jdk,并且后续需要使用kerberos认证的话,还是需要JCE的。不然就无法正常连接KDC的。这是我后面遇到问题才发现的。而甲骨文且官网,只能下载1.8版本的JCE.1.7及以下,需要metalink账号才能下载,所以,如果网速可以的情况下,建议直接选择1、2进行安装jdk)
(root@ip-10-21-23-29 洋麻)#,ambari-server 设置 Using python /usr/bin/python Setup ambari-server Checking SELinux… SELinux status  is & # 39;残疾人# 39; Customize user  account for ambari-server  daemon [y/n], (n) ?, Adjusting ambari-server  permissions 以及所有权…… Checking firewall 状态…… Checking JDK… [1],Oracle JDK 1.8, +, Java Cryptography Extension (JCE), Policy Files 8 [2],Oracle JDK 1.7, +, Java Cryptography Extension (JCE), Policy Files 7, & lt; & lt; & lt; & lt; & lt; & lt; & lt;重要 [3],Custom JDK==============================================================================Enter choice (1): 3 警告:,JDK must  be installed 提醒all hosts 以及JAVA_HOME must be valid 提醒all 主机。 警告:,JCE Policy files 断开连接;required for configuring Kerberos 安全只If 你plan 用use Kerberos, please make sure JCE Unlimited Strength Jurisdiction Policy files 断开连接;valid 提醒all 主机。 Path 用JAVA_HOME:/usr/地方/jdk1.7.0_79 Validating JDK 提醒Ambari 服务器…。 Completing 设置… Configuring 数据库… null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null null洋麻,黄芪丹参滴丸完整安装手册