centos7.2 安装hdp2.6.1步骤
环境:
Operating System: CentOS Linux release 7.2.1511 (Core)
Kernel: Linux 3.10.0-327.el7.x86_64
HDP:2.6.1.0
Ambari:ambari-server-2.5.0.3
下载地址:
MD5:HDP-UTILS-1.1.0.21-centos7.tar.gz: B6 1E 3F 3D D9 10 51 8D 86 3D 44 FC 59 15 57 52
# tar -zxvf /data/jdk-8u111-linux-x64.tar.gz -C /usr/
# unzip /data/UnlimitedJCEPolicyJDK8.zip
# cp -f /data/UnlimitedJCEPolicyJDK8/local_policy.jar /usr/jdk1.8.0_111/jre/lib/security/
# cp -f /data/UnlimitedJCEPolicyJDK8/US_export_policy.jar /usr/jdk1.8.0_111/jre/lib/security/
# vi /etc/profile
末尾添加
export JAVA_HOME=/usr/jdk1.8.0_111
export PATH=$JAVA_HOME/bin:$PATH
#. /etc/profile
1.ssh信任配置(略)
2.ntp配置
2.1 安装并开启ntp
yum install -y ntp
2.2 开启ntp
systemctl is-enabled ntpd
2.3 vi /etc/ntp.conf
注释其他server,添加本地ntp服务器
server x.x.x.x iburst
2.4
systemctl enable ntpd
systemctl start ntpd
systemctl status ntpd.service 检查服务是否正常
3.主机名配置
hostnamectl set-hostname server_name
查看主机信息
[root@eva0 yum.repos.d]# hostnamectl
Static hostname: eva0
Icon name: computer-vm
Chassis: vm
Machine ID: b5b4a6e010034d50axxxxxxxxxxxxxxx
Boot ID: 818af0fc48c64931bxxxxxxxxxxxxxxx
Virtualization: vmware
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-514.10.2.el7.x86_64
Architecture: x86-64
4.配置/etc/hosts,不要更改下述行,否则会引起各种问题
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
eva0 x.x.x.x
eva1 x.x.x.x
eva2 x.x.x.x
之后hostname -f检查是否配置成功
5.所有主机关闭防火墙
# systemctl disable firewalld
# service firewalld stop
6.关闭selinux,packagekit(如果已启用)
vi /etc/yum/pluginconf.d/refresh-packagekit.conf
enabled=0
7.更改umask
# umask 0022
环境:
Operating System: CentOS Linux release 7.2.1511 (Core)
Kernel: Linux 3.10.0-327.el7.x86_64
HDP:2.6.1.0
Ambari:ambari-server-2.5.0.3
下载地址:
ambari-2.5.0.3 tar包下载地址:http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.5.0.3/ambari-2.5.0.3-centos7.tar.gz
HDP-2.6.1.0 tar包下载地址:http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.1.0/HDP-2.6.1.0-centos7-rpm.tar.gzMD5:HDP-2.6.1.0-centos7-rpm.tar.gz: 48 3F C7 17 19 4A 83 94 82 48 70 7C D4 85 62 14
HDP-UTILS 2.6.10 tar包下载地址:http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos7/HDP-UTILS-1.1.0.21-centos7.tar.gzMD5:HDP-UTILS-1.1.0.21-centos7.tar.gz: B6 1E 3F 3D D9 10 51 8D 86 3D 44 FC 59 15 57 52
# tar -zxvf /data/jdk-8u111-linux-x64.tar.gz -C /usr/
# unzip /data/UnlimitedJCEPolicyJDK8.zip
# cp -f /data/UnlimitedJCEPolicyJDK8/local_policy.jar /usr/jdk1.8.0_111/jre/lib/security/
# cp -f /data/UnlimitedJCEPolicyJDK8/US_export_policy.jar /usr/jdk1.8.0_111/jre/lib/security/
# vi /etc/profile
末尾添加
export JAVA_HOME=/usr/jdk1.8.0_111
export PATH=$JAVA_HOME/bin:$PATH
#. /etc/profile
1.ssh信任配置(略)
2.ntp配置
2.1 安装并开启ntp
yum install -y ntp
2.2 开启ntp
systemctl is-enabled ntpd
2.3 vi /etc/ntp.conf
注释其他server,添加本地ntp服务器
server x.x.x.x iburst
2.4
systemctl enable ntpd
systemctl start ntpd
systemctl status ntpd.service 检查服务是否正常
3.主机名配置
hostnamectl set-hostname server_name
查看主机信息
[root@eva0 yum.repos.d]# hostnamectl
Static hostname: eva0
Icon name: computer-vm
Chassis: vm
Machine ID: b5b4a6e010034d50axxxxxxxxxxxxxxx
Boot ID: 818af0fc48c64931bxxxxxxxxxxxxxxx
Virtualization: vmware
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-514.10.2.el7.x86_64
Architecture: x86-64
4.配置/etc/hosts,不要更改下述行,否则会引起各种问题
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
eva0 x.x.x.x
eva1 x.x.x.x
eva2 x.x.x.x
之后hostname -f检查是否配置成功
5.所有主机关闭防火墙
# systemctl disable firewalld
# service firewalld stop
6.关闭selinux,packagekit(如果已启用)
vi /etc/yum/pluginconf.d/refresh-packagekit.conf
enabled=0
7.更改umask
# umask 0022