ApacheAmbari安装过程(CentOS6)
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
ApacheAmbari安装过程(CentOS6)
一、准备工作:
基本工具
yum
rpm
scp
curl
wget
pdsh
前几个一般系统都自带了,pdsh需要自己装
[plain] view plaincopy
1.yum install pdsh
2、配置hosts
vim /etc/hosts
[plain] view plaincopy
1.10.*.*.120 master master.hadoop.test
2.10.*.*.121 dn1 dn1.hadoop.test
3.10.*.*.122 dn2 dn2.hadoop.test
4.10.*.*.123 dn3 dn3.hadoop.test
3、配置ssh免登录
选定master.hadoop.test作为ambari server,需要配置该节点到其它节点的ssh免登录
[plain] view plaincopy
1.cd ~
2.ssh-keygen
一直按回车,会生成默认的公钥和私钥
[sql] view plaincopy
1..ssh/id_rsa
2..ssh/id_rsa.pub
执行
[plain] view plaincopy
1.chmod 700 ~/.ssh
2.chmod 600 ~/.ssh/authorized_keys
配置本地的免登录
[plain] view plaincopy
1.cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_key s
配置其它节点的免登陆
[plain] view plaincopy
1.scp ~/.ssh/authorized_keys dn1:/root/.ssh/
2.scp ~/.ssh/authorized_keys dn2:/root/.ssh/
3.scp ~/.ssh/authorized_keys dn3:/root/.ssh/
将私钥从master上下载下来,配置ambari agent时会用到
[plain] view plaincopy
1..ssh/id_rsa
同步集群的时间(ntp)
其它
[plain] view plaincopy
1.setenforce 0
2.chkconfig iptables off
3./etc/init.d/iptables stop
4.umask 022
Disable PackageKit
[plain] view plaincopy
1.vim /etc/yum/pluginconf.d/refresh-
packagekit.conf
将内容改为enabled=0
二、安装Ambari Server
添加yum资源库
[plain] view plaincopy
1.wget
2.
3./ambari/centos6/1.x/updates/1.2.
4.9/ambari.re
po
4./ambari/centos6/1.x/updates/1.4.3.38/ambari.re
po
5.cp ambari.repo /etc/yum.repos.d
6.yum install epel-release
由于公司安全机制,这个地方可能不会安装成功
[plain] view plaincopy
1.yum repolist
看下有没有
[plain] view plaincopy
1.repo id repo name
2.AMBARI-
1.x | Ambari 1.x
3.HDP-UTILS-
1.1.0.15 | Hortonworks Data Platform Utils Version -
HDP-UT
4.epel | Extra Packages for Enterprise Li
nux 6 - x86_64
如果有的话,就可以开始安装了
[plain] view plaincopy
1.yum install ambari-server
实验证明,网速巨慢,耐心。
等待安装完成后
[plain] view plaincopy
1.ambari-server setup
会提示安装jdk,网速好的可以确定,否则可以下载jdk-6u31-linux-x64.bin,放到/var/lib/ambari-
server/resources/下面
接着会提示配置用的数据库,可以选择Oracle或postgresql,选择n会按默认配置
数据库类型:postgresql
数据库:ambari
用户名:ambari
密码:bigdata
如果提示Oracle JDK license,yes
等待安装完成【这里可能会报错ERROR: Unable to start PostgreSQL server. Exiting;Postgresql初始化问题】启动Ambari Server
[plain] view plaincopy
1.ambari-server start
然后访问:http://master:8080
不出意外的话就安装完成了
用户名/密码:admin/admin
三、配置Ambari
给集群起个名字
选择HDP的版本
配置Agent:
不支持ip,输入hosts
选择ssh私钥,选择第一步生成的id_rsa 等待配置完成,然后选择服务,等待安装完成。