First, the official installation document

Ambari installation documentation HDP cluster installation documentation

Second, build YUM source

Refer to the online tutorial to install HTTPD and place the following installation package in /var/www/html. Restart the HTTPD. Visit to see if it works.

Ambari # download the installation package and wget wget repo file # download HDP installation package and repo file Wget wget HTTP: / / wget wget wget

Three, each machine configuration

Configure /etc/hosts for all machines and custom domain names.
# Check if the hosts configuration is normal cat /etc/hosts
Each machine is configured with the corresponding hostname.
Hostname -f is successfully set to hostname
DNS, /etc/resolv.conf.
OpenJDK is installed on each machine.
Yum install java-1.8.0-openJDK yum install java-1.8.0-openJDK yum install java-1.8.0-openJDK yum install java-1.8.0-openJDK -devel ~/.bashrc echo JAVA_HOME=/usr/lib/ JVM/java-1.8.0-OpenJDk-1.8.50.x86_64 >> /etc/profile source /etc/profile
The SSH key is generated on the first machine and copied to other machines for SSH no-secret login.
Ssh-keygen: ssh-keygen: ssh-keygen: ssh-keygen: ssh-copy-id: [email protected]
The first machine is configured with ambari. Repo to install the Ambari Server.
All machines are equipped with hdp.repo, hdp-gpl. HDP – utils. Repo.

Four, cluster installation

Install, configure, and start Ambari Server on the first machine. Install the MySQL driver.Master install mysql-connect-java to resolve ambari error
Yum install ambari-server # Install mysql-connector-java* ls-al /usr/share/ Java /mysql-connector-java.jar CD /var/lib/ambari-server/resources/ # link to ambari server directory /usr/share/ Java /mysql-connector-java.jar mysql-connector-java.jar # configure the ambari server using ln -s /usr/share/ Java /mysql-connector-java.jar # configure the ambari server using ln -s /usr/share/ Java /mysql-connector-java.jar # configure the ambari server using: Mysql > install ambari-server restart mysql > install ambari-server restart
Browser log in to Ambari Server., default username and password admin/admin.
Configure the machine information, private-key (~/.ssh/id_rsa previously generated by ssh-keygen), and deployment information in the Ambari installation step.

5. Possible mistakes

  • Tip ambari: sslhandshakeException: Client Requested Protocol TLSV1 is not enabled or not supported Ambari due to a JRE configuration problem. Modified the JRE configuration of Ambari-server.

    # in the JDK. TLS. DisabledAlgorithms configuration items, delete 3 des_ede_cbc, make run when shaking hands with HTTPS, using vim TLS_v1 agreement $JAVA_HOME/jre/lib/security/Java security
  • Ambari-agent registration failed ambari-server log Ambari-agent registration failed ambari-server -f = localhost; /etc/hostname = ‘localhost’; / /etc/hostname = ‘localhost’;
  • 404: Not Found mysql-connect-java.jar 404: Not Found

    You need to install the above steps to install the MySQL driver. And link to the corresponding directory for Ambari Server.