[root@ambari yum.repos.d]# yum repolist Loaded plugins: priorities, security, ulninfo HDP-2.5.3.0 | 2.9 kB 00:00 HDP-2.5.3.0/primary_db | 69 kB 00:00 HDP-UTILS-1.1.0.21 | 2.9 kB 00:00 HDP-UTILS-1.1.0.21/primary_db | 33 kB 00:00 Updates-ambari-2.4.2.0 | 2.9 kB 00:00 Updates-ambari-2.4.2.0/primary_db | 8.3 kB 00:00 mysql-connectors-community | 2.5 kB 00:00 mysql-connectors-community/primary_db | 13 kB 00:00 mysql-tools-community | 2.5 kB 00:00 mysql-tools-community/primary_db | 34 kB 00:00 mysql57-community | 2.5 kB 00:00 mysql57-community/primary_db | 102 kB 00:00 public_ol6_UEKR4 | 1.2 kB 00:00 public_ol6_UEKR4/primary | 11 MB 00:00 public_ol6_UEKR4 268/268 public_ol6_latest | 1.4 kB 00:00 public_ol6_latest/primary | 61 MB 00:04 public_ol6_latest 36858/36858 28 packages excluded due to repository priority protections repo id repo name status HDP-2.5.3.0 HDP Version - HDP-2.5.3.0 200 HDP-UTILS-1.1.0.21 HDP-UTILS Version - HDP-UTILS-1.1.0.21 51 Updates-ambari-2.4.2.0 ambari-2.4.2.0 - Updates 12 mysql-connectors-community MySQL Connectors Community 30 mysql-tools-community MySQL Tools Community 43 mysql57-community MySQL 5.7 Community Server 164 public_ol6_UEKR4 Latest Unbreakable Enterprise Kernel Release 4 for Oracle Linux 6Server (x86_64) 206+62 public_ol6_latest Oracle Linux 6Server Latest (x86_64) 29,845+7,013 repolist: 30,551 [root@ambari yum.repos.d]# yum install ambari-server Loaded plugins: priorities, security, ulninfo Setting up Install Process 28 packages excluded due to repository priority protections Resolving Dependencies --> Running transaction check ---> Package ambari-server.x86_64 0:2.4.2.0-136 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================= Package Arch Version Repository Size ============================================================================================================================================================= Installing: ambari-server x86_64 2.4.2.0-136 Updates-ambari-2.4.2.0 645 M Transaction Summary ============================================================================================================================================================= Install 1 Package(s) Total download size: 645 M Installed size: 700 M Is this ok [y/N]: y Downloading Packages: ambari-server-2.4.2.0-136.x86_64.rpm | 645 MB 00:54 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : ambari-server-2.4.2.0-136.x86_64 1/1 Verifying : ambari-server-2.4.2.0-136.x86_64 1/1 Installed: ambari-server.x86_64 0:2.4.2.0-136 Complete! [root@ambari yum.repos.d]# ambari-server setup Using python /usr/bin/python Setup ambari-server Checking SELinux... SELinux status is 'disabled' Customize user account for ambari-server daemon [y/n] (n)? y Enter user account for ambari-server daemon (root):ambari Adjusting ambari-server permissions and ownership... Checking firewall status... Checking JDK... [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): 1 To download the Oracle JDK and the Java Cryptography Extension (JCE) Policy Files you must accept the license terms found at http://www.oracle.com/technetwork/java/javase/terms/license/index.html and not accepting will cancel the Ambari Server setup and you must install the JDK and JCE files manually. Do you accept the Oracle Binary Code License Agreement [y/n] (y)? y Downloading JDK from http://public-repo-1.hortonworks.com/ARTIFACTS/jdk-8u77-linux-x64.tar.gz to /var/lib/ambari-server/resources/jdk-8u77-linux-x64.tar.gz jdk-8u77-linux-x64.tar.gz... 100% (173.0 MB of 173.0 MB) Successfully downloaded JDK distribution to /var/lib/ambari-server/resources/jdk-8u77-linux-x64.tar.gz Installing JDK to /usr/jdk64/ Successfully installed JDK to /usr/jdk64/ Downloading JCE Policy archive from http://public-repo-1.hortonworks.com/ARTIFACTS/jce_policy-8.zip to /var/lib/ambari-server/resources/jce_policy-8.zip Successfully downloaded JCE Policy archive to /var/lib/ambari-server/resources/jce_policy-8.zip Installing JCE policy... 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 / MariaDB [4] - PostgreSQL [5] - Microsoft SQL Server (Tech Preview) [6] - SQL Anywhere [7] - BDB ============================================================================== Enter choice (1): 3 Hostname (localhost): ambari Port (3306): 3306 Database name (ambari): ambaridb Username (ambari): ambari Enter Database Password (bigdata): Re-enter password: Configuring ambari database... Copying JDBC drivers to server resources... Configuring remote database connection properties... WARNING: Before starting Ambari Server, you must run the following DDL against the database to create the schema: /var/lib/ambari-server/resources/Ambari-DDL-MySQL-CREATE.sql Proceed with configuring remote database connection properties [y/n] (y)? y Extracting system views... ............ambari-admin-2.4.2.0.136.jar Adjusting ambari-server permissions and ownership... Ambari Server 'setup' completed successfully. [root@ambari yum.repos.d]# mysql -u ambari -p********* mysql: [Warning] Using a password on the command line interface can be insecure. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4 Server version: 5.7.17 MySQL Community Server (GPL) Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> exit Bye [root@ambari yum.repos.d]# vi /etc/ambari-server/conf/password.dat [root@ambari yum.repos.d]# su - ambari [ambari@ambari ~]$ ambari-server start Using python /usr/bin/python Starting ambari-server Organizing resource files at /var/lib/ambari-server/resources... Unable to check firewall status when starting without root privileges. Please do not forget to disable or adjust firewall if needed Ambari database consistency check started... No errors were found. ERROR: Exiting with exit code 1. REASON: Database check failed to complete. Please check /var/log/ambari-server/ambari-server.log and /var/log/ambari-server/ambari-server-check-database.log for more information.