"Hadoop" 4, Hadoop installation Cloudera Manager (2)

Source: Internet
Author: User

8. Configure SSH password-free login

And after that, the back is mended.

Enter. SSH inside

This will generate a hidden file. SSH, enter this folder, and then append the public key to the Authorized_keys file, which does not initially exist, but is automatically generated when the append command is executed:

cd .ssh

cat id_rsa.pub >> authorized_keys

Verify this machine

# Ssh-copy-id 192.168.42.99

# Ssh-copy-id 192.168.42.100

...

(10.0.7.238 is the specific person you want to avoid key, you have to set and self-free key)

Verifying other clients

Other empathy

9, Configuration Time synchronization

Let's configure the DNS here first

[Email protected] ~]# vi/etc/resolv.conf


Remember to open the NTPD service when you're done configuring

/ETC/INIT.D/NTPD start

9.1 Using an existing NTP Server

Assuming that the IP of NTP server already exists in the local area network is 192.168.1.2, the command is run:

# ntpdate 192.168.1.2

A similar statement appears stating that synchronization succeeded

27Jun 10:12:01 ntpdate[25475]: Adjust time server NtpServer offset-0.127154 sec

If you need to synchronize the BIOS time

# hwclock-w

To configure timed synchronization, you need to use crontab, using the root user:

# CRONTAR-E

Write:

*/5 * * * * root ntpdate 192.168.1.2 && hwclock-w

This automatically synchronizes the system every 5 minutes.

Common exceptions:

error1: ntpdate[2748]:the NTP socket is on use, exiting

Client end to turn off the NTP service.

Service ntpd Stop

Error2:no server suitable for synchronization found

NTP server start syncing 5 minutes later.

Part of the primary node that needs to be set

10. Configuring CM Source Files (Apache)

10.1. Put the file in the specified directory

Create the appropriate directory

#mkdir/VAR/WWW/HTML/CDH

#mkdir/var/www/html/cdh/cm5.2.0

#mkdir/var/www/html/cdh/cm5.2.0/package (cm rpm file)


10.2 Creating the appropriate cm yum

Create a yum warehouse using the Createrepo command

Installation: deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm

python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm

createrepo-0.9.9-18.el6.noarch.rpm

# cd/var/www/html/cdh/cm5.2.0/

We put


Into the bag

We go online to download a


Url:

http://pkgs.org/centos-6/centos-i386/createrepo-0.9.9-22.el6.noarch.rpm/download/




# Createrepo.

When installing Createrepo here is unsuccessful, we put the front in Yum.repo. Delete something to restore

Use

yum-y Installcreaterepo Installation Test

Failed

And then we're on the DVD. It says three copies of the installed files to the virtual machine.

Install deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm First

Error:

Download the appropriate rpm

http://pkgs.org/centos-7/centos-x86_64/zlib-1.2.7-13.el7.i686.rpm/download/

Http://pkgs.org/centos-7/centos-x86_64/glibc-2.17-78.el7.i686.rpm.html

Download, this is going to match the system.


We try to find the appropriate RPM file on the disc.

Then install python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm

Final installation createrepo-0.9.9-18.el6.noarch.rpm


Create local Yum

The Repodata directory is generated under the/var/www/html/cdh/cm5.2.0/directory after executing the command.


Manually install the Createrepo command via the RPM command to create the Yum warehouse Rpm-ivh Createrepo

10.3 Restarting Apache

# service Httpdrestart

Open the browser separately to see if it can be accessed correctly

/HTTP Host ip/cdh/

"Hadoop" 4, Hadoop installation Cloudera Manager (2)

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.