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 http://127.0.0.1:80 to see if it works.

Ambari # download the installation package and wget http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.3.0/ambari.repo wget repo file http://public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.7.3.0/ambari-2.7.3.0-centos7.tar.gz # download HDP installation package and repo file Wget wget HTTP: / / http://public-repo-1.hortonworks.com/HDP/centos7/3.x/updates/3.1.0.0/HDP-3.1.0.0-centos7-rpm.tar.gz http://public-repo-1.hortonworks.com/HDP/centos7/3.x/updates/3.1.0.0/hdp.repo wget http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.22/repos/centos7/HDP-UTILS-1.1.0.22-centos7.tar.gz wget http://public-repo-1.hortonworks.com/HDP-GPL/centos7/3.x/updates/3.1.0.0/HDP-GPL-3.1.0.0-centos7-gpl.tar.gz wget http://public-repo-1.hortonworks.com/HDP-GPL/centos7/3.x/updates/3.1.0.0/hdp.gpl.repo

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.http://host1.hdp.com:8080, 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. https://blog.csdn.net/youyou1543724847/article/details/82823914

    # 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’; https://community.hortonworks.com/questions/93129/ambari-agent-registration-failed.html
  • 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.

    https://community.hortonworks.com/questions/180040/fail-failed-to-download-file-from-httpip-172-31-9.html 

    https://community.hortonworks.com/articles/170133/hive-start-failed-because-of-ambari-error-mysql-co.html