给hadoop用户sudo权限
hadoop ALL=(ALL) NOPASSWD:ALL
建立SSH互信,参考Hadoop HA的搭建中的互信建立
建立相应的下载脚本down.sh
nohup wget -c http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.1.0/ambari-2.2.1.0-centos6.tar.gz > 1.log 2>&1 & nohup wget -c http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.4.0.0/HDP-2.4.0.0-centos6-rpm.tar.gz > 1.log 2>&1 & nohup wget -c http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/centos6/HDP-UTILS-1.1.0.20-centos6.tar.gz > 2.log 2>&1 &
创建ambari目录
mkdir -p /opt/www/html/ambari
安装httpd
yum install -y httpd
把文件解压到ambari目录下