1、安装Ambari
yum install ambari-server
ambari-server setup
3.1、检查SELinux是否关闭,如果关闭不用操作
Using python /usr/bin/python
Setup ambari-server
Checking SELinux...
SELinux status is 'disabled'
3.2、选择自定义配置
Customize user account for ambari-server daemon [y/n] (n)? y
3.3、创建账号
Enter user account for ambari-server daemon (root):
Adjusting ambari-server permissions and ownership...
如果不输入将把root作为账号,也可自定义创建账号。
3.4、检查防火墙,如果没有关闭请先关闭
Checking firewall status...
Redirecting to /bin/systemctl status iptables.service
3.5、设置JDK,选择3,自己输入JDK路径
Checking JDK...
Do you want to change Oracle JDK [y/n] (n)? y
[] Oracle JDK 1.8 + Java Cryptography Extension (JCE) Policy Files 8
[] Oracle JDK 1.7 + Java Cryptography Extension (JCE) Policy Files 7
[] Custom JDK
==============================================================================
Enter choice (1): 3
3.6、输入安装好的JDK路径,目录如下到JDK目录即可
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: /usr/java/jdk1.8.111
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
[5] - Microsoft SQL Server (Tech Preview)
[6] - SQL Anywhere
==============================================================================
Enter choice (3): 3
http://blog.csdn.net/lidachao01/article/details/53470111
如果MySQL是自定义安装的,与ambari-server不在一个服务器上,请根据实际情况填写。
Hostname (localhost):
Port ():
Database name (ambari):
Username (ambari):
Enter Database Password (Ambari-123):
4、导入ambari启动所需的数据库脚本
mysql -u ambari -p
use ambari
source /var/lib/ambari-server/resources/Ambari-DDL-MySQL-CREATE.sql
ambari-server start
http://192.168.0.174:8080/