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。

相關文章
相關標籤/搜索