CentOS 6.x offline installation Cloudera 5.7.x-not completed

Source: Internet
Author: User

Because development requires a Hadoop/spark cluster to be built locally, the company it policy does not allow local clusters to access the Internet, so you can only install a variety of components offline.

The installation process is documented below as a project document.

Install the preparation work host and system
Hadoopmaster Cent OS 6.4 x64 16G 192.168.1.10
HadoopSlave1 Cent OS 6.4 x64 16G 192.168.1.11
HadoopSlave2 Cent OS 6.4 x64 8G 192.168.1.12
Install package download

You can go to the file directory listed below to find the latest version or direct point file links to download parcel and SHA files

Note: Here we use the cent OS 6.4 to download the time to select the EL6 tag

Cloudera Manager:

File directory: http://archive.cloudera.com/cm5/cm/5/

Cloudera Manager5.7.1 Bag: http://archive.cloudera.com/cm5/cm/5/cloudera-manager-el6-cm5.7.1_x86_64.tar.gz

CDH:

File directory: http://archive.cloudera.com/cdh5/parcels/5/

CHD5.7.1 Parcel:http://archive.cloudera.com/cdh5/parcels/5.7/cdh-5.7.1-1.cdh5.7.1.p0.11-el6.parcel

CHD5.7.1 SHA:HTTP://ARCHIVE.CLOUDERA.COM/CDH5/PARCELS/5.7/CDH-5.7.1-1.CDH5.7.1.P0.11-EL6.PARCEL.SHA1

Kafka:

File directory: HTTP://ARCHIVE.CLOUDERA.COM/KAFKA/PARCELS/2.0.1/

Kafka1.2.0.1 Parcel:http://archive.cloudera.com/kafka/parcels/2.0.1/kafka-2.0.1-1.2.0.1.p0.5-el6.parcel

Kafka1.2.0.1 SHA:HTTP://ARCHIVE.CLOUDERA.COM/KAFKA/PARCELS/2.0.1/KAFKA-2.0.1-1.2.0.1.P0.5-EL6.PARCEL.SHA1

System and environment configuration hostname and host file configuration change host name:

Open Network Configuration

sudo vim/etc/sysconfig/network

Change the hostname as follows, changing the host name of the machine to Hadoopmaster/hadoopslave1/hadoopslave2

networking=yeshostname=hadoopmaster

Restart Network

sudo service network restart
To configure the Hosts file:

Open the Hosts file

sudo vim/etc/hosts

Change to the following configuration

192.168. 1.10    hadoopmaster192.168. 1.11    HadoopSlave1192.168. 1.12   HadoopSlave2

SSH password-free login configuration between hosts

Generate SSH Key

Execute the following command, all the way to the return ~

Ssh-keygen -t RSA

After execution, a file with the public key is generated in the ~/.ssh/directory: id_rsa.pub

Append the Hadoopmaster public key to the SSH authentication file

Cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

Write the HadoopSlave1 and HadoopSlave2 's public key to the Hadoopmaster ~/.ssh/authorized_keys file, and eventually generate the following Authorized_keys file:

Ssh-rsa AAAAB3NZAC1YC2EAAAABIWAAAQEARYU2KMXSU75GZWVUBY7OOGZC7GVWXVO+OL/7NJVD BpKpJLRHRe/ D2HSNE9ZZRWLK2TU0E41BAMXRYROAKJA2UJCWFY7T57C3ARO9HA7KJY7MQMIT8WHQ m3i2afsx6svkequ/czdlxhn+ Kjwkbr8z0tuycgtxgkawx1pcpckefdaxdvvxycursunaigl5egzu iy97n52ld/ Wxuznrrstpdpw88jkhwdov1bdo4o67rnv5tsykhxfpwqi8nekqohiexgvrshlvm8fe xvv4mo8lxydqprcyrtm9/v+ 4ksw8eabo7w6hm9yvzispsqx0+oqibwtvqsmiavh0jmut0mcevq== [Email protected]ssh-rsa    Aaaab3nzac1yc2eaaaabiwaaaqea7n27x4qszrqngqal+rt1+91iqnm9cwzyfesuzrjd    Gdfwctjmknrbyxrdmxtam6mkjfwwkpzxnbkhlqndijkusdf8h2xcgdmbjlssvqjoc2jseg/vppqn HJWOBBIL3K1FBU2KXKOP7YW5PIODZRGUWLH5WDXTFSPKIMVV72UA1KUIQPBYA3ZJQXW9BT87K6SV IAkvUjshnfaS+wNEBVwW1dhXyz6DHuY+ TN9330+1OYFDMGSJS4ZQVZVOTHHHV58DNWZAYWINCPBA tkjfbk/sof0q/ 4rsjrpe2yh9xouzdwqxmfk3dkp0ufzkv2evslyacnkwtbsukn75fwhgl8qb7w== [Email protected]ssh-rsa AAAAB3NZAC1YC2EAAAABIWAAAQEAW91O/1NWNBR6/VOP+XWNQR/XYNPWKWSELZYHNQGD pygxxsdhsvozbptx7pgotgvsmlzetcdx4c1lsc/ Po8iitvvbs/qwu216lxaqlw61rclicryh/rWN F8XTLX/GA04W2QEIFLLOIUH6X/KA22MUOLYASIEFXV38XJ0HJ41IE5ZISEALUJOGN7IQJ6FQ0WQH    I6uef9basswnohhn6cjamyz3fc9r2m3vwpmkgagpp1fdyydxodk+mzlwu6txqp6qq7by/wh5dzk8 c8zpdozgqgworghf58tlzsmjymukv1nqsy8pcfuoj7vfouzvkqkykceiohwbctb50vgpl06bmq== [email protected]

Copy the Hadoopmaster Authorized_keys to HadoopSlave1 and HadoopSlave2.

SCP ~/.ssh/authorized_keys [email protected]:~/.ssh/scp ~/.ssh/authorized_keys [email protected]:~/.ssh/

For detailed steps please refer to: http://www.cnblogs.com/keitsi/p/5653520.html

Install Java 8 old version Uninstall
grep-e--nodeps Java package name

Install package download

Open the link below to download the relevant RPM package

Http://www.oracle.com/technetwork/java/javase/downloads/index.html

Installation
sudo rpm-ivh jdk-8u91-linux-x64.rpm

Install the configuration MySQL (hadoopmaster) installation on the master node
#安装 sudo Yum Install mysql-server#  boot sudo chkconfig mysqld on# start sudo  service Mysqld start# set root user password sudo'xxxx'

Shutting down firewalls and SELinux

If a configuration port will be more troublesome, so during the installation of the firewall shut down, can be installed after the completion of the requirements of the configuration

Shutting down the firewall

Temporarily closed

sudo service iptables stop

If you want to close permanently, you can modify the configuration:

sudo chkconfig iptables off
Turn off SELinux

Temporarily closed

sudo 0

If you want to close permanently, you can modify the configuration:

sudo vim/etc/selinux/config

Set selinux=disabled

Installation Configuration NTP

NTP is used to synchronize the time of each server, which can cause some services to be down if the time difference between the servers is too large.

If you can connect to the outside network and can connect to the time server, can be configured, but here is the Intranet test environment no way to connect to the synchronization server, so only their own mobile phone control time!

Cloudera Manager installation File upload

Upload Cloudera-manager-el6-cm5.7.1_x86_64.tar to master machine and copy to all slave machines

SCP CLOUDERA-MANAGER-EL6-CM5. 7. 1_x86_64. tar. gz [email protected]:~SCP CLOUDERA-MANAGER-EL6-CM5. 7. 1_x86_64. tar. gz [Email protected]:~
Unzip the file

Perform the following command on all machines to extract the cm compressed file to/opt/

sudo tar xzvf cloudera-manager-el6-cm5. 7. 1_x86_64. tar. Gz-c/opt/
Agent configuration

Configure the host name of the master machine on all slave machines

sudo vim/opt/cm-5.7. 1/etc/cloudera-scm-agent/config.ini

Set the Server_host as the host name of the master machine

Server_host=hadoopmaster
New User CLOUDERA-SCM

To create a new CLOUDERA-SCM user for all machines , note that the--home is set to the corresponding path:

sudo useradd--system--home=/opt/cm-5.7. 1/run/cloudera-scm-server/--no-create-home--shell=/bin/false"cloudera SCM User  " CLOUDERA-SCM
Set up a database for Cloudera Manager

Download MySQL Driver

http://dev.mysql.com/downloads/connector/j/

Unzip to upload the drive jar file to/opt/cm-5.7.1/share/cmf/lib

Create a database

sudo /opt/cm-5.7. 1/share/cmf/schema/scm_prepare_database. sh mysql cm-hlocalhost-uroot [email protected]--scm-host localhost SCM SCM SCM

Mysql-uroot-pxxxx

Create DATABASE hive default CHARSET UTF8 COLLATE utf8_general_ci;create database amon default CHARSET UTF8 COLLATE utf8_g Eneral_ci;

CentOS 6.x offline installation Cloudera 5.7.x-not completed

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.