作者:手机用户2502875691_190 | 来源:互联网 | 2023-05-17 08:58
centos6.5搭建过程可参考:(1)http:www.ibm.comdeveloperworkscnopensourceos-cn-bigdata-ambariin
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
每个节点都要要开启ntp服务:
service ntpd start
(4)关防火墙:
/etc/init.d/iptables status
/etc/init.d/iptables stop # 暂时关闭
chkconfigiptablesoff # 永久关闭,重启生效
(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
查看selinux的模式:
getenforce
关闭selinux:
# 永久性关闭(这样需要重启服务器后生效)
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
setenforce 0
setenforce 1
(9)安装cluster的services过程中的问题:
Error Downloading Packages: xxx from HDP-2.2: [Errno 256] No more mirrors to try.
增加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.
vim /etc/yum.conf
增加(修改)timeout = 600
清理yum缓存:
yum clean all
将服务器上的最新的软件包信息 现在本地缓存,以提高 搜索 安装软件的速度
yum makecache
(10)由于以下错误安装失败:
Python script has been killed due to timeout after waiting 1800 secs
修改配置文件:
vim /etc/ambari-server/conf/ambari.properties
agent.package.install.task.timeout=1800
改为2700
官方在centos6.x上安装的教程:
https://cwiki.apache.org/confluence/display/AMBARI/Start+Guide+Using+Centos+6.x