您的位置:首页 > 其它

安装ambari

2016-01-07 19:49 489 查看
<span style="font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);"><span style="font-size:14px;">参考:</span></span> https://cwiki.apache.org/confluence/display/AMBARI/Install+Ambari+2.1.2+from+Public+Repositories http://hawq.docs.pivotal.io/ http://docs.hortonworks.com/ http://www.itweet.cn/2015/08/31/hdp-install/ http://www.ibm.com/developerworks/cn/opensource/os-cn-bigdata-ambari/index.html http://www.ibm.com/developerworks/cn/opensource/os-cn-bigdata-ambari2/index.html
下载源:(fzhecnu)
http://s3.amazonaws.com/public-repo-1.hortonworks.com/index.html
一. 安装准备

SSH免登录配置

yum正常工作

确保 home 目录的写权限

Python>=2.6

启动ntp服务同步计算机时间

配置永久关闭防火墙服务

配置永久关闭PackageKit服务

配置永久关闭selinux服务

注意:一旦没有完成上述准备,会对后面有影响!!!

我的安装环境:centos6.5

2.安装过程

参照官方https://cwiki.apache.org/confluence/display/AMBARI/Install+Ambari+2.1.2+from+Public+Repositories

 


Install Ambari 2.1.2 from Public Repositories

Skip
to end of metadata

Created by Richard Zang, last modified on Oct
02, 2015

Go
to start of metadata


Install Ambari 2.1.2 from Public Repositories


Step1: Download the Ambari repository on the Ambari Server host

Choose an appropriate <ambari-repo-url> based on the platform used:

(Redhat / CentOS / Oracle) 6
http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.1.2/ambari.repo
(Redhat / CentOS / Oracle) 7
http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.1.2/ambari.repo
SUSE 11
http://public-repo-1.hortonworks.com/ambari/suse11/2.x/updates/2.1.2/ambari.repo
Ubuntu 12http://public-repo-1.hortonworks.com/ambari/ubuntu12/2.x/updates/2.1.2/ambari.list 
Ubuntu 14http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/2.1.2/ambari.list
Debian 7http://public-repo-1.hortonworks.com/ambari/debian7/2.x/updates/2.1.2/ambari.list


Step 2: Install, Setup, and Start Ambari Server

Install Ambari Server from the public Ambari repository:

Run the setup command to configure your Ambari Server, Database, JDK, LDAP, and other options:

 

Start Ambari Server:

Step 3: Deploy Cluster using Ambari Web UI

Open up a web browser and go to http://<ambari-server-host>:8080.
Log in with username admin and password admin and follow on-screen instructions.

离线安装

0.启动本地http服务,将离线包解压后,放在其中

1.下载安装包http://s3.amazonaws.com/public-repo-1.hortonworks.com/index.html

2.配置ambari.repo

[ambari-2.1.2]

name=ambari-2.1.2

baseurl=http://10.11.1.192/ambari/ambari-2.1.2/centos6/

gpgcheck=0

enabled=1

priority=1

3.yum安装

NOTE:修改ambari的端口

在/etc/ambari-server/conf/ambari.properties文件增加 client.api.port=<port_number>

打开页面127.0.0.1:8080,第一段落完成!

二、部署Hadoop集群

step1:命名

step2:选择stack

NOTE:离线安装

ss1:下载安装包下载安装包http://s3.amazonaws.com/public-repo-1.hortonworks.com/index.html

ss2:解压相应的安装包放在httpd中,确保内网可以访问

ss3:将对应的地址放在【step2】页面中的链接源中

step3:

a.输入ip或者别名(/etc/hosts中)

b.ambari-server所在机器的私钥

c.免登录的账户

step4: confirm hosts

NOTE:可能出现register出问题

a.sudo免密码输入

b.openssl更新

注意其中stderr和log的输出信息

step5:选择service

step6、7:assign master and slave,注意standymaster跟master不要配置在同一台机器上。

step8:配置参数

step9:审阅

step10:安装

安装可能会出错,有些服务的文件找不到,需要从其他机器拷贝过去!!!软链接失效!!!

当然不可能一帆风顺,接下来有

ambari高级操作

ambari安装hawq
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ambari