Ambari配置&安装的若干坑 centos6.8



<转http://blog.csdn.net/yeruby/article/details/49618933>

centos6.5

搭建过程可参考: 
(1)http://www.ibm.com/developerworks/cn/opensource/os-cn-bigdata-ambari/index.html 
(2)http://www.ibm.com/developerworks/cn/opensource/os-cn-bigdata-ambari2/index.html

注意: 
(1)配置root用户免登陆,以root登录系统 
(2)ambari-server所在的节点用来配置若干个ambari-agent,所以可以配置自己即ambari-server为一个ambari-agent,也可以不配置。 
(3)查看NTP服务状态:

service ntpd status
 
 
  • 1

每个节点都要要开启ntp服务:

service ntpd start
 
 
  • 1

(4)关防火墙:

/etc/init.d/iptables status
/etc/init.d/iptables stop # 暂时关闭
chkconfigiptablesoff  # 永久关闭,重启生效
 
 
  • 1
  • 2
  • 3

(5)openssl版本太低需要注意:Ambari Agent Registration Failure on RHEL 6.5 Due to OpenSSL 
http://zh.hortonworks.com/community/forums/topic/ambari-agent-registration-failure-on-rhel-6-5-due-to-openssl-2/

(6)一个Issue的原因:<<关于CentOS 6下Hadoop占用系统态CPU高的处理办法>>

(7)在Host Checks的过程中,如有Issues全部修复

(8)关SELINUX 
查看selinux状态,如果为enable则表示为开启:

/usr/sbin/sestatus -v
 
 
  • 1

查看selinux的模式:

getenforce
 
 
  • 1

关闭selinux:

# 永久性关闭(这样需要重启服务器后生效)
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
 
 
  • 1
  • 2
# 临时性关闭(立即生效,但是重启服务器后失效)
setenforce 0 #设置selinux为permissive模式(即关闭)
setenforce 1      #设置selinux为enforcing模式(即开启)
 
 
  • 1
  • 2
  • 3

(9)安装cluster的services过程中的问题:

Error Downloading Packages: xxx from HDP-2.2: [Errno 256] No more mirrors to try.
 
 
  • 1

增加yum安装的timeout,man yum.conf 查看默认的timeout:

 timeout  Number  of seconds to wait for a connection before timing out. Defaults to 30 seconds. This may be too short of a time
              for extremely overloaded sites.
 
 
  • 1
  • 2

vim /etc/yum.conf 增加(修改)timeout = 600

清理yum缓存:

yum clean all
 
 
  • 1

将服务器上的最新的软件包信息 现在本地缓存,以提高 搜索 安装软件的速度

yum makecache
 
 
  • 1

(10)由于以下错误安装失败:

Python script has been killed due to timeout after waiting 1800 secs
 
 
  • 1

修改配置文件: 
vim /etc/ambari-server/conf/ambari.properties

agent.package.install.task.timeout=1800
改为2700
 
 
  • 1
  • 2

官方在centos6.x上安装的教程: 
https://cwiki.apache.org/confluence/display/AMBARI/Start+Guide+Using+Centos+6.x

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值