操作系统 CentOS7.5.1804
下载地址:http://mirrors.163.com/centos/7.5.1804/isos/x86_64/
安装Ambari说明:https://hortonworks.com/downloads/#data-platform
版本和操作系统的对应关系:https://supportmatrix.hortonworks.com/
安装操作系统:安装操作系统
配置网络:/etc/sysconfig/network-scripts/ifcfg-ens33
TYPE=Ethernet PROXY_METHOD=none BROWSER_ONLY=no BOOTPROTO=static DEFROUTE=yes IPV4_FAILURE_FATAL=no IPV6INIT=yes IPV6_AUTOCONF=yes IPV6_DEFROUTE=yes IPV6_FAILURE_FATAL=no IPV6_ADDR_GEN_MODE=stable-privacy NAME=ens33 DEVICE=ens33 ONBOOT=yes IPADDR=192.168.126.101 GATEWAY=192.168.126.2 NETMASK=255.255.255.0G
GATEWAY 与 vmnet8 对应
配置DNS /etc/resolv.conf
nameserver 8.8.8.8
关闭防火墙:
systemctl stop firewalld && systemctl disable firewalld /etc/selinux/config SELINUX=disabled
修改主机名:
vi /etc/hostname vi /etc/hosts
免密码登录
ssh-keygen -t rsa #生成密钥文件 ssh-copy-id 主机名 #将生成的公钥文件copy到指定主机
安装NTP
yum install -y ntp systemctl enable ntpd
默认数据库安装需要执行如下sql命令:
echo "CREATE DATABASE hive;" | psql -U postgres
echo "CREATE USER hive WITH PASSWORD 'hive';" | psql -U postgres
echo "GRANT ALL PRIVILEGES ON DATABASE hive TO hive;" | psql -U postgres
echo "CREATE DATABASE oozie;" | psql -U postgres
echo "CREATE USER oozie WITH PASSWORD 'oozie';" | psql -U postgres
echo "GRANT ALL PRIVILEGES ON DATABASE oozie TO oozie;" | psql -U postgres
echo "CREATE DATABASE ranger;" | psql -U postgres echo "CREATE USER rangeradmin WITH PASSWORD 'admin';" | psql -U postgres echo "GRANT ALL PRIVILEGES ON DATABASE ranger TO rangeradmin;" | psql -U postgres