Ambari配置&安装的若干坑

来源:互联网 发布:神仙道懒娃 源码 编辑:程序博客网 时间:2024/06/05 04:26

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

原创粉丝点击