admin管理员组

文章数量:1531954

1 关闭防火墙 systemctl stop firewalld 

systemctl disable firewalld

2 ssh 免密 

每个节点上 ssh-keygen 

然后每个节点 ssh-copy-id user@ip

expect -c "

        set timeout -1;

        spawn ssh-keygen

        expect {

                \"*Enter file*\" {send \"\r\"; exp_continue}

                \"*Enter passphrase*\" {send \"\r\"; exp_continue}

                \"*Enter same passphrase*\" {send \"\r\"; exp_continue}

                \"*The key fingerprint*\" {send \"\r\"; exp_continue}

        }"

 

3 安装ambari-server

ambari 默认使用pstgresql 可配置成mysql

安装mysql

后期可配置mysql 密码 以及允许root远程登录

alter user 'root'@'localhost' identified by 'your_password';

开启root 远程访问 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456'

flush privileges;  

4 配置本地源 因为 如果在线安装的话,非常大,近10G

//开启http服务,以便其他机器可以通过网络下载具体目录为 /var/www/html

yum install httpd

systemctl start(enable) httpd

离线下载 (我一般选用最新版的)

在下面这个网址里

https://docs.hortonworks/HDPDocuments/Ambari-2.4.1.0/bk_ambari-installation/content/ambari_repositories.html

ambari  https://docs.hortonworks/HDPDocuments/Ambari-2.4.1.0/bk_ambari-installation/content/ambari_repositories.html

需要注意的是需要下载 tar.gz 包

 

HDP https://docs.hortonworks/HDPDocuments/Ambari-2.4.1.0/bk_ambari-installation/content/hdp_25_repositories.html

注意 需要下载 HDP 和HDP-utils 对应的linux版本

 

解压 HDP HDP-UTILS ambari 

cp * /var/www/html 

配置yum 源 

cat ambari.repo 

#VERSION_NUMBER=2.4.1.0-22

[Updates-ambari-2.7.3.0]

name=ambari-2.7.3.0

baseurl=http://ip/ambari/centos7/2.7.3.0-139

gpgcheck=1

gpgkey=http://ip/ambari/centos7/2.7.3.0-139/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins

enabled=1

priority=1

本文标签: HDP