Centos 6.5 Ambari 2.2.2 安装

Ambari安装大数据生态圈中的工具方便快捷。html

  • 1、服务器环境设置

一、使用虚拟机虚拟出3台centos6.5node

    10.211.55.7 masterapache

    10.221.55.8 node1centos

    10.221.55.9 node2浏览器

二、修改服务器hostname,三台服务器都要改bash

vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=master #将HOSTNAME 改成 本身想设置的主机名 

vi /etc/hosts #在hosts最后添加服务器IP及 主机名
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.211.55.7 master
10.211.55.8 node1
10.211.55.9 node2

3.关闭防火墙,三台服务器都要关闭服务器

chkconfig iptables off

4.更新插件dom

yum update #更新插件

5.重启服务器工具

  • 2、查看Ambari官网,能够经过yum安装。

https://cwiki.apache.org/confluence/display/AMBARI/Install+Ambari+2.2.2+from+Public+Repositories大数据

一、安装server端,只须要安装一个,我安装在了master上

​
For Redhat/CentOS/Oracle:
  cd /etc/yum.repos.d/
  wget http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.2.0/ambari.repo

yum install ambari-server

ambari-server setup #安装时一直回车,走默认便可

ambari-server start

​

 

二、安装agent,我安装在了node1和node2上

For Redhat/CentOS/Oracle:
  cd /etc/yum.repos.d/
  wget http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.2.2.0/ambari.repo

yum install ambari-agent

#安装完成后,修改agent配置文件

vi /etc/ambari-agent/conf/ambari-agent.ini
.
.
[server]
hostname=master #将hostname 改成安装server端的主机名
url_port=8440
secured_url_port=8441
.
.

 

三、启动agent

ambari-agent start
  • 3、添加工具

浏览器输入 master:8080 ,帐号密码 都是admin。这一段网上有不少,我就先不写了。

------------------------------分割线------------------------------

ps:安装node2节点时始终没法链接到server,查看日志

WARNING 2016-09-29 00:54:47,966 NetUtil.py:112 - Server at https://master:8440 is not reachable, sleeping for 10 seconds...
INFO 2016-09-29 00:54:57,967 NetUtil.py:60 - Connecting to https://master:8440/ca
ERROR 2016-09-29 00:54:58,016 NetUtil.py:84 - [Errno 1] _ssl.c:492: error:100AE081:elliptic curve routines:EC_GROUP_new_by_curve_name:unknown group
ERROR 2016-09-29 00:54:58,016 NetUtil.py:85 - SSLError: Failed to connect. Please check openssl library versions. 
Refer to: https://bugzilla.redhat.com/show_bug.cgi?id=1022468 for more details.
WARNING 2016-09-29 00:54:58,016 NetUtil.py:112 - Server at https://master:8440 is not reachable, sleeping for 10 seconds...

在网上查到 http://www.cnblogs.com/6tian/p/4277808.html

解决方法:

一下是官方论坛中给出的方法,很好

Platforms:

  • RHEL / CentOS 6.5
  • Ambari 1.4 or later

Root Cause: The OpenSSL library available and installed by default on RHEL/CentOS 6.5 has a bug. Refer to https://bugzilla.redhat.com/show_bug.cgi?id=1025598 for detailed information on the bug.

Remedy:

  1. Check the OpenSSL library version installed on your host(s):
    rpm -qa | grep openssl
    
    openssl-1.0.1e-15.el6.x86_64
  2. If the output says openssl-1.0.1e-15.x86_64 (1.0.1 build 15) you will need to upgrade the OpenSSL library by running the following command:

    yum upgrade openssl

  3. Verify you have the newer version of OpenSSL (1.0.1 build 16):

    rpm -qa | grep openssl

    openssl-1.0.1e-16.el6.x86_64

  4. Restart Ambari Agent(s) and Click Retry Failed on the Wizard

 

按照上面的操做成功链接,原来是openssl 版本太低,因为以前两台服务器 都yum update 因此没有出现这个问题。经过这件事情咱们发现,一、任何错误都是有迹可循的,要善于查日志;二、新作完系统 要先更新 yum update。

相关文章
相关标签/搜索