centos7.4安装ambari2.6.0和hdp2.6.5

下载包:

http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.6.0.0/ambari-2.6.0.0-centos7.tar.gz
http://public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.6.5.0/HDP-2.6.5.0-centos7-rpm.tar.gz
http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/centos7/HDP-UTILS-1.1.0.21-centos7.tar.gz

配置ambari用户

[root@xx-hz16 ~]# useradd ambari
[root@xx-hz16 ~]# passwd ambari

配置DNS和FQDN

vim /etc/hosts
ip hz16-hadooop hz16-hadoop.bdp

vim /etc/sysconfig/network
HOSTNAME=hz16-hadoop.bdp

关闭selinux和防火墙

关闭防火墙:
sudo systemctl disable firewalld
sudo systemctl stop firewalld

关闭selinx:
查看SELinux状态:sestatus
临时关闭,不用重启机器:setenforce 0
修改配置文件需要重启机器:
cat /etc/sysconfig/selinuxy
SELINUX=disabled

配置本地yum源

sudo yum install -y httpd
sduo systemctl start httpd.service
sduo systemctl enable httpd.service
sduo yum install yum-utils createrepo -y

安装ntp服务

sudo yum  install ntp -y
sudo systemctl is-enabled ntpd
sudo systemctl enable ntpd
sudo systemctl start ntpd

安装并启动http服务

sudo yum install -y httpd
sudo systemctl start httpd.service
sudo systemctl status httpd.service
sudo mkdir /var/www/html/ambari

配置repo文件

ambari.repo
[root@xx-hz16 yum.repos.d]# vi ambari.repo 
#VERSION_NUMBER=2.6.0.0-267
[ambari-2.6.0.0]
name=ambari Version - ambari-2.6.0.0
baseurl=http://ip/ambari/ambari/centos7/2.6.0.0-267
gpgcheck=1
gpgkey=http://ip/ambari/ambari/centos7/2.6.0.0-267/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1

hdp.repo
[root@xx-hz16 yum.repos.d]# vi hdp.repo 
#VERSION_NUMBER=2.6.3.0-235
[HDP-2.6.3.0]
name=HDP Version - HDP-2.6.3.0
baseurl=http://ip/ambari/HDP/centos7
gpgcheck=1
gpgkey=http://ip/ambari/HDP/centos7/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1

[HDP-UTILS-1.1.0.21]
name=HDP Utils Version - HDP-UTILS-1.1.0.21
baseurl=http://ip/ambari/HDP-UTILS
gpgcheck=1
gpgkey=http://ip/ambari/HDP-UTILS/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1

将mysql的驱动包放到/usr/share/java

create database ambari DEFAULT CHARACTER SET utf8;
create user 'ambari'@'%' IDENTIFIED BY '123456';
grant all PRIVILEGES on *.* TO ' ambari'@'%';  
FLUSH PRIVILEGES;
source /var/lib/ambari-server/resources/Ambari-DDL-MySQL-CREATE.sql

安装postgresql

[ambari@xx-hz16 software]$ sudo rpm -ivh postgresql-libs-8.4.18-1.el6_4.x86_64.rpm
[ambari@xx-hz16 software]$ sudo rpm -ivh postgresql-8.4.18-1.el6_4.x86_64.rpm
[ambari@xx-hz16 software]$ sudo rpm -ivh postgresql-server-8.4.18-1.el6_4.x86_64.rpm

安装ambari

sudo yum install ambari-server
sudo ambari-server setup
source /opt/software/Ambari-DDL-MySQL-CREATE.sql
sudo ambari-server start

系统基本参数配置

sysctl -w vm.swappiness=10
echo "vm.swappiness=10" >> /etc/sysctl.conf
echo never > /sys/kernel/mm/transparent_hugepage/defrag
echo never > /sys/kernel/mm/transparent_hugepage/enabled
echo "echo never > /sys/kernel/mm/transparent_hugepage/defrag" >> /etc/rc.local
echo "echo never > /sys/kernel/mm/transparent_hugepage/enabled" >> /etc/rc.local 

启动

ip:8080
账号:admin
密码:amdin
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
CentOS是一种基于Linux的免费和开放源代码操作系统,CentOS 7.4是CentOS版本的一个特定版本。在这个版本上安装CentOS 7.4的步骤如下: 1. 准备安装介质:从CentOS官方网站下载最新的CentOS 7.4 ISO文件,并将其写入一个可启动的光盘或USB驱动器。 2. 确保你的物理机满足最低硬件要求:至少2GB的RAM和20GB的可用硬盘空间,支持64位操作系统的处理器。 3. 将安装介质插入物理机的光驱或将USB驱动器连接到物理机上。 4. 启动物理机,并从安装介质启动。可以通过进入BIOS设置,选择从光驱或USB驱动器启动。 5. 在启动菜单中选择“Install CentOS 7”并按下回车键。系统将加载安装程序。 6. 在安装程序的语言选择界面上选择你想要使用的语言,并点击“Continue”按钮。 7. 在安装选项界面上,选择“Installation Destination”选项。确保正确的磁盘被选中,并点击“Done”按钮。 8. 在网络和主机名界面上,配置网络设置并选择一个主机名,然后点击“Apply”按钮。 9. 在“Software Selection”界面上选择你想要安装的软件包组。例如,选择“Server with GUI”来安装包含图形用户界面的服务器软件包。 10. 在安装界面上的“Begin Installation”按钮上点击,以开始安装过程。你可以在左侧的导航栏上查看安装的进度。 11. 完成安装后,系统将提示你进行重启。点击“Reboot”按钮,将物理机重新启动。 12. 在重启后,系统会要求你创建一个新的用户并设置密码。完成后,你将能够登录到CentOS 7.4系统。 以上是CentOS 7.4的详细安装过程。安装期间可能需要进行一些其他的配置和设置,具体取决于你的需求和环境。希望这个回答能够对你有所帮助。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值