Ambari 安装

安装准备:

1、SSH 的无密码登录

[所有节点]
ssh-keygen -t dsa -P ''
[子节点]
cp id_dsa.pub authorized_keys
chmod 600 authorized_keys
scp authorized_keys node02:/root/.ssh/authorized_keys
scp authorized_keys node03:/root/.ssh/authorized_keys

2、确保 Yum 可以正常工作

3、确保 home 目录的写权限

4、确保机器的 Python 版本大于或等于 2.6.   Centos 7自带,查看版本 python -V 

 

安装过程:

首先需要获取 Ambari 的公共库文件(public repository)下载地址:http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.0.1/ambari.repo

将下载的 ambari.repo 文件拷贝到 Linux 的系统目录/etc/yum.repos.d/

执行安装: yum install ambari-server 

配置: ambari-server setup 

# ambari-server setup
Using python  /usr/bin/python2.7
Setup ambari-server
Checking SELinux...
SELinux status is 'enabled'
SELinux mode is 'enforcing'
Temporarily disabling SELinux
WARNING: SELinux is set to 'permissive' mode and temporarily disabled.
OK to continue [y/n] (y)? y
Customize user account for ambari-server daemon [y/n] (n)? y
Enter user account for ambari-server daemon (root): 
Adjusting ambari-server permissions and ownership...
Checking iptables...
Redirecting to /bin/systemctl status iptables.service
Unit iptables.service could not be found.

Checking JDK...
[1] Oracle JDK 1.7
[2] Oracle JDK 1.6
[3] - Custom JDK
==============================================================================
Enter choice (1): 3
WARNING: JDK must be installed on all hosts and JAVA_HOME must be valid on all hosts.
WARNING: JCE Policy files are required for configuring Kerberos security. If you plan to use Kerberos,please make sure JCE Unlimited Strength Jurisdiction Policy Files are valid on all hosts.
Path to JAVA_HOME: /home/jdk1.8.0_211
Validating JDK on Ambari Server...done.
Completing setup...
Configuring database...
Enter advanced database configuration [y/n] (n)? y
Configuring database...
==============================================================================
Choose one of the following options:
[1] - PostgreSQL (Embedded)
[2] - Oracle
[3] - MySQL
[4] - PostgreSQL
==============================================================================
Enter choice (1): 1
Database name (ambari): ambari
Postgres schema (ambari): ambari
Username (ambari): ambari
Enter Database Password (bigdata): 
Re-enter password: 
Passwords do not match
Enter Database Password (bigdata): 
Re-enter password: 
Default properties detected. Using built-in database.
Configuring ambari database...
Checking PostgreSQL...
Running initdb: This may take upto a minute.
Initializing database ... OK


About to start PostgreSQL
Configuring local database...
Connecting to local database...done.
Configuring PostgreSQL...
Restarting PostgreSQL
Extracting system views...
ambari-admin-2.0.1.45.jar
...
Adjusting ambari-server permissions and ownership...
Ambari Server 'setup' completed successfully.

启动: ambari-server start 

打开Web:http://192.168.29.131:8080/     默认账号密码:admin/admin

posted @ 2020-03-30 11:40  一个人、一座城  阅读(560)  评论(0编辑  收藏  举报