CENTOS7 installation CDH5.5.0

Source: Internet
Author: User

1. Installing the JDK

Mkdir-p/usr/java
Tar zxvf jdk-7u80-linux-x64.tar.gz-c/usr/java/

Vi/etc/profile
Export java_home=/usr/java/jdk1.7.0_80
Export path= $PATH: $JAVA _home/bin
Export classpath= $CLASSPATH: $JAVA _home/lib: $JAVA _home/jre/lib
Source/etc/profile

Alternatives--install/usr/bin/java Java/usr/java/jdk1.7.0_80/bin/java 1
Alternatives--install/usr/bin/javac Javac/usr/java/jdk1.7.0_80/bin/javac 1
Alternatives--install/usr/bin/jar Jar/usr/java/jdk1.7.0_80/bin/jar 1
Alternatives--INSTALL/USR/BIN/JAVAP Javadoc/usr/java/jdk1.7.0_80/bin/javadoc 1
Alternatives--install/usr/bin/javaws Javaws/usr/java/jdk1.7.0_80/bin/javaws 1
Alternatives--config Java

2. SSH configuration

Server and servant:
SSH-KEYGET-T RSA
chmod ~/.ssh
chmod ~/.ssh/authorized_keys
CP Id_rsa.pub Id_rsa_server.pub

Copy Pub to Servant
SCP id_rsa_server.pub [Email protected]:~/.ssh/
Cat ~/.ssh/id_rsa.pub>>~/.ssh/authorized_keys
Error debugging with tail Secure-n 20

3. Close the firewall root account

Systemctl Stop Firewalld.service
Systemctl Disable Firewalld.service

4, modify the/etc/selinux/config under the selinux=disabled (after restart to take effect)

Selinux=disabled

5. Install NTP service

Su Root
Yum Install-y NTP
Yum Install-y ntpdate
Vi/etc/ntp.conf
Main changes restrict and NTP server specific Baidu
Systemctl Start NTPD
Systemctl Enable NTPD

Ntpdate-u pool.ntp.org
Ntpdate-u h104

6. Install MySQL

RPM-IVH mysql-community-release-el7-5.noarch.rpm
Yum Install Mysql-server
Systemctl Start Mysqld.service
Systemctl Enable Mysqld.service
Mysql-u Root
Use MySQL;
Update user set Password=password (' 123456 ') where user= ' root ';
Grant all on * * to [e-mail protected] "%" identified by ' 123456 ';
Flush privileges;

7, CM and CDH installation preparations

1) Unzip the package to/opt
Tar zxvf cloudera-manager-centos7-cm5.5.0_x86_64.tar.gz-c/opt
2) Copy parcel package to/opt/cloudera/parcel-repo
sudo cp/usr/local/software/cdh-5.5.0-1.cdh5.5.0.p0.8-el7.parcel.sha1/opt/cloudera/parcel-repo/ Cdh-5.5.0-1.cdh5.5.0.p0.8-el7.parcel.sha

sudo cp/usr/local/software/manifest.json/opt/cloudera/parcel-repo

sudo cp/usr/local/software/cdh-5.5.0-1.cdh5.5.0.p0.8-el7.parcel/opt/cloudera/parcel-repo
3) Modify Server_host
Vi/opt/cm-5.5.0/etc/cloudera-scm-agent/config.ini
server_host=
4) Create user CLOUDERA-SCM
Useradd--system--home=/opt/cm-5.5.0/run/cloudera-scm-server--no-create-home--shell=/bin/false--comment " Cloudera SCM User "CLOUDERA-SCM
5) Cloudera Manager 5.5 Build Database
/opt/cm-5.5.0/share/cmf/schema/scm_prepare_database.sh MySQL cm-hlocalhost-uroot-p123456--scm-host localhost SCM SCM SCM

Need to copy the JDBC driver
cp/usr/local/software/mysql-connector-java-5.1.38-bin.jar/opt/cm-5.5.0/share/cmf/lib/

6) Create additional databases as needed
Data name take component header two letters or full names such as: Hive OS (Oozie server)
Create DATABASE hive DEFAULT CHARSET UTF8 COLLATE utf8_general_ci;

Create database am DEFAULT CHARSET UTF8 COLLATE utf8_general_ci;

Create DATABASE rm DEFAULT CHARSET UTF8 COLLATE utf8_general_ci;

Create database OS DEFAULT CHARSET UTF8 COLLATE utf8_general_ci;

8. Backup system

Everything's ready. To back up the system, the installation fails and can be restored
Tar cvpzf backup.tgz/--exclude=/proc--exclude=/lost+found--exclude=/backup.tgz--exclude=/mnt--exclude=/sys
Tar cvpjf backup.tar.bz2/--exclude=/proc--exclude=/lost+found--exclude=/backup.tar.bz2--exclude=/mnt--exclude=/ Sys
Statements that are restored
Tar Xvpfz backup.tgz-c/
Tar xvpfj backup.tar.bz2-c/
9. Start the server
Sudo/opt/cm-5.5.0/etc/init.d/cloudera-scm-server start
10. Start Agent
Scp-r/opt/cm-5.5.0 [Email protected]:/opt
Sudo/opt/cm-5.5.0/etc/init.d/cloudera-scm-agent start

11. Start the installation

12, the Java driver can not find the problem to solve

SCP Mysql-connector-java-5.1.38-bin.jar [Email protected]:/opt/cloudera/parcels/cdh/lib/hive/lib/

SCP Mysql-connector-java-5.1.38-bin.jar [Email protected]:/opt/cloudera/parcels/cdh/lib/hive/lib/

SCP Mysql-connector-java-5.1.38-bin.jar [Email protected]:/opt/cloudera/parcels/cdh/lib/oozie/lib/

CENTOS7 installation CDH5.5.0

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.