1. Ambari 简介
Apache Ambari是一种基于Web的工具,支持Apache Hadoop集群的供应、管理和监控。Ambari已支持大多数Hadoop组件,包括HDFS、MapReduce、Hive、Pig、 Hbase、Zookeeper、Sqoop和Hcatalog等。
2. 安装环境准备
1. ssh 免密码登录
修改主机名
vi /etc/sysconfig/network
Created by anaconda
HOSTNAME=master.ambari
三台机器master,work1,work2之间可以免密码登录
2. JDK
3.python2.7+(三台机器同样的操作)
Ambari用python2.*写的,Python3会报错
一般centos7会自带python2.7,/usr/bin/python2.7
用which is python 查看当前的python环境是/opt/anaconda3/bin/下的python
cd /opt/anaconda3/bin
ll |grep python
删除python链接
[root@master bin]# rm -rf python
然后新建Python2.*的链接
(base) [root@master bin]# whereis python
python: /usr/bin/python /usr/bin/python2.7 /usr/bin/python2.7-config /usr/lib/python2.7 /usr/lib/python2.6 /usr/lib64/python2.7 /etc/python /usr/include/python2.7 /opt/anaconda3/bin/python3.6 /opt/anaconda3/bin/python3.6-config /opt/anaconda3/bin/python3.6m-config /opt/anaconda3/bin/python3.6m /usr/share/man/man1/python.1.gz
(base) [root@master bin]# pwd
/opt/anaconda3/bin
(base) [root@master bin]# ln -s /usr/bin/python2.7 /opt/anaconda3/bin/python
(base) [root@master bin]# ll |grep python
-rwxrwxr-x 1 root root 237 May 27 11:14 ipython
-rwxrwxr-x 1 root root 237 May 27 11:14 ipython3
lrwxrwxrwx 1 root root 18 Jun 27 15:31 python -> /usr/bin/python2.7 (创建成功)
lrwxrwxrwx 1 root root 9 May 27 11:14 python3 -> python3.6
-rwxrwxr-x 1 root root 11944432 May 27 11:13 python3.6
lrwxrwxrwx 1 r