Installing HDP on CentOS 7

Source: Internet
Author: User
Tags hortonworks

Installation on CentOS 7

Cat /etc/redhat-release

Http://s3.amazonaws.com/public-repo-1.hortonworks.com/HDP/centos7/2.x/updates/2.3.4.0/HDP-2.3.4.0-centos7-rpm.tar.gz

Http://s3.amazonaws.com/public-repo-1.hortonworks.com/ambari/centos7/2.x/updates/2.2.0.0/ambari-2.2.0.0-centos7.tar.gz

1. Configure/etc/hosts

VI /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4:: 1         localhost Localhost.localdomain localhost6 localhost6.localdomain6192.168.0.33 hadoop192.168.0.34 HADOOP1 192.168.0.35 HADOOP2

Note: 3 machines are to be fitted.

2. Configure the SSH certificate

1 Ssh-keygen -t RSA

Note: All 3 machines generate a secret key, and the direct enter is the right one.

1 ssh-copy-ID  hadoop2ssh-copy-ID  hadoop13 ssh-copy-ID hadoop2

Note: My general machine is equipped with the main node, the other machines with the following, can ping the main node on the line.

1 ssh-copy-ID Hadoop

Note: After the match, ping each other host, must be able to ping through.

Ping Hadoop Ping HADOOP1 Ping hadoop2

Note: The child node can ping the primary node on the line.

3. Install httpd service First

Yum Install httpdsystemctl start Httpd.service

4. unzip the downloaded package and place it in the following directory

cd/var/www/html/hdp/centos7/

Note: I unzipped the ambari and put it directly into the CENTOS7 directory.

5. Configure the yum source

[email protected] ~]# vi /etc/yum. repos.d/ambari.repo[hadoop]name=Hadoopbaseurl =http://192.168.0.33/hdp/centos7/2.2.0.0-1310/gpgcheck=0Enabled=1 

Note: The native IP is 192.168.0.33

Yum Yum  yumyum search ambari-yumyuminstall ambari-   yum. repos.d]# ambari-server Setup

If you have not turned off SELinux, you will be prompted during the execution of this command, select Y. PostgreSQL is then configured to select the version of Oracle JDK to install. After configuring the database, select n Use the default database username Ambari-server and password bigdata, select Y to create the user name password yourself.

yum. repos.d]# ambari-server Start

6. Visit the Ambari home page

Host ip:8080

User name: admin password : admin

After entering the interface to register the host, add services and other subsequent steps will not be written. The main node's private key and all node host names are required inside the prompt.

Private Key acquisition:

1 Cat ~/. ssh/id_rsa

Glue the contents of the file to the appropriate location. The components can be added according to their needs.

7. View the Hadoop version after installation:

Hadoop version

Installing HDP on CentOS 7

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.