Using python /usr/bin/python Setup ambari-server Checking SELinux... SELinux status is 'disabled'
提示是否自定义设置 输入:y
1
Customize user account for ambari-server daemon [y/n] (n)? y
ambari-server 账号 输入:ambari
1 2
Enter user account for ambari-server daemon (root):ambari Adjusting ambari-server permissions and ownership...
亦可不输入
检查防火墙,如果关闭则不用操作
1 2
Checking firewall status... Redirecting to /bin/systemctl status iptables.service
设置JDK 输入:3
1 2 3 4 5 6 7
Checking JDK... Do you want to change Oracle JDK [y/n] (n)? y [1] Oracle JDK 1.8 + Java Cryptography Extension (JCE) Policy Files 8 [2] Oracle JDK 1.7 + Java Cryptography Extension (JCE) Policy Files 7 [3] Custom JDK ============================================================================== Enter choice (1): 3
此前环境准备中已经配置过jdk,此处选自定义,
如果上面选择3自定义JDK,则需要设置JAVA_HOME
1 2 3 4 5
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: /xxx/xxx/jdk1.8.0_152 Validating JDK on Ambari Server...done. Completing setup...
查看机器中配置的JAVA_HOME,
1 2
echo $JAVA_HOME /xxx/xxx/jdk1.8.0_152
注:如果不选择自定义,注意选择1,安装1.8的jdk
数据库配置 选择:y
1 2
Configuring database... Enter advanced database configuration [y/n] (n)? y
选择数据库类型 输入:3
1 2 3 4 5 6 7 8 9 10 11
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
此前,以及安装好了mysql数据库,故选择3
设置数据库的具体配置信息,根据实际情况输入,如果和括号内相同,则可以直接回车
1 2 3 4 5
Hostname (localhost): Port (3306): Database name (ambari): Username (ambari): Enter Database Password (123456):
数据库名,用户名,密码可根据自己设置的填入
提示必须安装MySQL JDBC,回车结束ambari配置
1 2
WARNING: Before starting Ambari Server, you must copy the MySQL JDBC driver JAR file to /usr/share/java. Press <enter> to continue.