Ambar
1.检测依赖软件安装情况
RHEL/CentOS v5
Ambari Agent
libffi 3.0.5-1.el5
python26 2.6.``8``-``2``.el5
python26-libs ``2.6``.``8``-``2``.el5
Nagios Server
nagios ``3.2``.``3``-``2``.el5
nagios-plugins ``1.4``.``15``-``2``.el5
nagios-common ``2.12``-``10``.el5
Ganglia Collector
ganglia-gmetad ``3.2``.``0``-``99
rrdtool ``1.4``.``5``-``1``.el5
Ganglia Monitor
ganglia-gmond ``3.2``.``0``-``99
(将未安装的一并yum安装)
2.检查SELinux
暂时关闭
setenforce ``0
永久关闭
vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are ``protected``.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
3.关闭防火墙
chkconfig iptables off
/etc/init.d/iptables stop
4.关闭PackageKit
vim /etc/yum/pluginconf.d/refresh-packagekit.conf
enable=``0
5.检查umask值
umask
022``(``0022``)
二. 安装
1.setup bits
yum install epel-release
yum repolist
(保证执行后列表中出现以下项目)
repo id repo name status
HDP-UTILS-``1.1``.``0.15
Hortonworks Data Platform Utils Version - HDP-UTILS-``1.1``.``0.15
52
Updates-ambari-``1``.x ambari-``1``.x - Updates ``35
ambari-``1``.x Ambari ``1``.x ``5
epel Extra Packages ``for
Enterprise Linux ``5
\- x86_64 ``7``,``397
yum install ambari-server
2.set up the Server
ambari-server setup
过程中会出现询问PostgreSQL数据库(Ambari默认DB)的用户名密码
n ``//使用默认 ambari-server/bigdata
y ``//使用自己指定的
#成功配置显示的内容
ambari-server setup
Using python /usr/bin/python2.``6
Initializing ...
Setup ambari-server
Checking SELinux...
SELinux status is ``'disabled'
Checking iptables...
iptables is disabled now
Checking JDK...
Completing setup...
Configuring database...
Enter advanced database configuration [y/n] (n)?
Default properties detected. Using built-in database.
Checking PostgreSQL...
Running initdb: This may take upto a minute.
About to start PostgreSQL
Configuring database...
Configuring PostgreSQL...
Restarting PostgreSQL
Ambari Server ``'setup'
finished successfully
3.start&login
#成功启动显示的内容
ambari-server start
Using python /usr/bin/python2.``6
Starting ambari-server
Checking iptables...
iptables is disabled now
Running server: /usr/jdk64/jdk1.``6``.0_31/bin/java -server -XX:NewRatio=``3
-XX:+UseConcMarkSweepGC
-XX:-UseGCOverheadLimit -XX:CMSInitiatingOccupancyFraction=``60
-Xms512m -Xmx2048m -cp
/etc/ambari-server/conf:/usr/lib/ambari-server/*:/usr/kerberos/sbin:/usr/local/hadoop/hive/bin:/usr/local/jdk1.``6``.0_45/bin:
- 版权声明:自由转载-非商用-非衍生-保持署名 | Creative Commons BY-NC-ND 3.0
- 转载请注明:Chentao’s Home