标签:epo tools /usr hostname 2.0 -o system top net
echo #CENTOS7
echo #1.最小化安装之后需要做的事
echo 2.配置
echo 2.1 安装网络
yum install net-tools -y
echo 2.2 更新机器名
echo hdp1.student >/etc/hostname
echo 2.3.配置防火墙
echo #关闭防火墙
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
echo 2.4 关闭selinux
sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/‘ /etc/selinux/config
setenforce 0 #临时禁用selinux
echo 2.5 安装ssh 服务器 客户端 并启动服务
yum -y install openssh-server openssh-clients
systemctl enable sshd
systemctl start sshd
#firewall-cmd --zone=public --add-port=22/tcp --permanent
echo 2.6 安装 wget
yum -y install wget
echo 2.7 替换repo源为阿里repo
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
echo #重建源数据缓存
yum clean all
yum makecache
echo 2.8 更新并升级系统
yum -y update && yum -y upgrade
echo create ambari repo
cat >/etc/yum.repos.d/ambari.repo <<EOF
[Updates-ambari-2.5.2.0]
name=ambari-2.5.2.0 - Updates
baseurl=http://192.168.217.1:8080/ambari/centos7/
gpgcheck=1
gpgkey=http://192.168.217.1:8080/ambari/centos7/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1
EOF
yum install ambari-server -y
mariadb root Root_123
需要注意的两点:
复制mysql-connector-java.jar 到/usr/share/java/
启动设置的时候指定jdbc
cat >>/etc/hosts <<EOF
192.168.217.128 hdp1.student hdp1
192.168.217.129 hdp2.student hdp2
192.168.217.130 hdp3.student hdp3
EOF
http://192.168.217.1:8080/HDP-UTILS/centos7/
http://192.168.217.1:8080/HDP/centos7/
安装hdp的时候需要注意的是:
1.修改日志默认配置位置
标签:epo tools /usr hostname 2.0 -o system top net
原文地址:http://www.cnblogs.com/huaxiaoyao/p/7537815.html