RHEL6.5上使用Ambari快速搭建Hadoop集群

RHEL6.5上使用Ambari快速搭建Hadoop集群

ip hostname
10.7.1.1 master.coke
10.7.1.2 dn1.coke
10.7.1.3 dn2.coke
10.7.1.4 dn3.coke
10.7.1.5 dn4.coke

1,ssh

master.coke 生成pub key  作为中控机,添加到每台机器包括master.coke 的  /root/.ssh/authorized_keys

2,hostname

对照表格更改hadoop集群的每台机器的hostname 和/etc/sysconfig/network HOSTNAME=XXXX

3,ntp

启动ntp 服务保证各台机器时钟同步

4,repo

https://cwiki.apache.org/confluence/display/AMBARI/Install+Ambari+1.7.0+from+Public+Repositories

cd /etc/yum.repos.d/

wget CentOS6/1.x/updates/1.7.0/ambari.repo

yum install ambari-server

yum install MySQL-server mysql

提前建立库和授权

mysql>grant all on ambari.* to ‘ambari’@’localhost‘ identified by “175an.com”;

mysql> flush privileges;
 

[@master.coke yum.repos.d]# yum install ambari-server
 Loaded plugins: product-id, security, subscription-manager
 This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
 6ASU5-updates | 1.1 kB 00:00
 HighAvailability | 3.9 kB 00:00
 LoadBalancer | 3.9 kB 00:00
 ResilientStorage | 3.9 kB 00:00
 ScalableFileSystem | 3.9 kB 00:00
 Server | 3.9 kB 00:00
 Updates-ambari-1.7.0 | 2.9 kB 00:00
 ambari-1.x | 1.3 kB 00:00
 epel | 1.1 kB 00:00
 Setting up Install Process
 Resolving Dependencies
–> Running transaction check
—> Package ambari-server.noarch 0:1.7.0-169 will be installed
–> Processing Dependency: postgresql-server >= 8.1 for package: ambari-server-1.7.0-169.noarch
–> Running transaction check
—> Package postgresql-server.x86_64 0:8.4.20-1.el6_5 will be installed
–> Processing Dependency: postgresql(x86-64) = 8.4.20-1.el6_5 for package: postgresql-server-8.4.20-1.el6_5.x86_64
–> Processing Dependency: postgresql-libs(x86-64) = 8.4.20-1.el6_5 for package: postgresql-server-8.4.20-1.el6_5.x86_64
–> Processing Dependency: libpq.so.5()(64bit) for package: postgresql-server-8.4.20-1.el6_5.x86_64
–> Running transaction check
—> Package postgresql.x86_64 0:8.4.20-1.el6_5 will be installed
—> Package postgresql-libs.x86_64 0:8.4.20-1.el6_5 will be installed
–> Finished Dependency ResolutionDependencies Resolved

=================================================================================================================================================================================
 Package Arch Version Repository Size
 =================================================================================================================================================================================
 Installing:
 ambari-server noarch 1.7.0-169 Updates-ambari-1.7.0 96 M
 Installing for dependencies:
 postgresql x86_64 8.4.20-1.el6_5 6ASU5-updates 2.6 M
 postgresql-libs x86_64 8.4.20-1.el6_5 6ASU5-updates 201 k
 postgresql-server x86_64 8.4.20-1.el6_5 6ASU5-updates 3.4 M

Transaction Summary
 =================================================================================================================================================================================
 Install 4 Package(s)

Total download size: 102 M
 Installed size: 152 M
 Is this ok [y/N]: y
 Downloading Packages:
 (1/4): ambari-server-1.7.0-169.noarch.rpm | 96 MB 00:14
 (2/4): postgresql-8.4.20-1.el6_5.x86_64.rpm | 2.6 MB 00:00
 (3/4): postgresql-libs-8.4.20-1.el6_5.x86_64.rpm | 201 kB 00:00
 (4/4): postgresql-server-8.4.20-1.el6_5.x86_64.rpm | 3.4 MB 00:00
———————————————————————————————————————————————————————————
Total 6.7 MB/s | 102 MB 00:15
 warning: rpmts_HdrFromFdno: Header V4 RSA/SHA1 Signature, key ID 07513cad: NOKEY
 Retrieving key from
 Importing GPG key 0x07513CAD:
 Userid: “Jenkins (HDP Builds) <jenkin@hortonworks.com>”
From :
 Is this ok [y/N]: y
 Running rpm_check_debug
 Running Transaction Test
 Transaction Test Succeeded
 Running Transaction
 Installing : postgresql-libs-8.4.20-1.el6_5.x86_64 1/4
 Installing : postgresql-8.4.20-1.el6_5.x86_64 2/4
 Installing : postgresql-server-8.4.20-1.el6_5.x86_64 3/4
 Installing : ambari-server-1.7.0-169.noarch 4/4
 Verifying : postgresql-server-8.4.20-1.el6_5.x86_64 1/4
 Verifying : postgresql-libs-8.4.20-1.el6_5.x86_64 2/4
 Verifying : postgresql-8.4.20-1.el6_5.x86_64 3/4
 Verifying : ambari-server-1.7.0-169.noarch 4/4

Installed:
 ambari-server.noarch 0:1.7.0-169

Dependency Installed:
 postgresql.x86_64 0:8.4.20-1.el6_5 postgresql-libs.x86_64 0:8.4.20-1.el6_5 postgresql-server.x86_64 0:8.4.20-1.el6_5

Complete!
 

ambari-server setup

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/5131fa9790ce9132682192a5cd7e1cbb.html