1. 配置 ambari.repo

1
2
3
4
5
6
7
8
9
10
11
For Redhat/CentOS/Oracle:
cd /etc/yum.repos.d/
wget <ambari-repo-url>
For SUSE:
cd /etc/zypp/repos.d
wget <ambari-repo-url>
For Ubuntu/Debian:
cd /etc/apt/sources.list.d
wget <ambari-repo-url>

ambari-repo-url 地址:

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

2. 安装、设置、启动

  • 安装 Ambari Server
1
2
3
4
5
6
7
8
9
10
For Redhat/CentOS/Oracle:
yum install ambari-server
For SUSE:
zypper install ambari-server
For Ubuntu/Debian:
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD
apt-get update
apt-get install ambari-server
  • 运行 setup 命令配置 ambari server
1
2
3
4
5
6
7
ambari-server setup
--ambari-server stop
--ambari-server reset
ambari-server setup
  • 启动服务
1
ambari-server start

3.访问 Ambari sever

访问地址:http://:8080.
登录用户名和密码 admin

其他相关命令

1
2
3
4
5
6
7
8
9
10
11
12
13
CREATE USER 'hive'@'up006' IDENTIFIED BY 'hive';
GRANT ALL ON *.* TO 'hive'@'%';
CREATE USER 'hive'@'up144' IDENTIFIED BY 'hive';
GRANT ALL ON *.* TO 'hive'@'%';
yum list installed | grep ambari
yum remove hive
yum remove spark
echo never > /sys/kernel/mm/redhat_transparent_hugepage/enabled
cat /sys/kernel/mm/redhat_transparent_hugepage/enabled

本文地址: http://blog.up72.cn/2016/06/05/ambari install/