CDH5.3 cluster Installation Notes-environment preparation (2)

Source: Internet
Author: User

2. Installation time Server

    • Install the NTP service in server1.cdhwork.org (192.168.10.1) to ensure that the server has access to the extranet:

Yum-y Install Ntpchkconfig--add ntpdchkconfig ntpd on

    • To edit an NTP configuration file:

Cp/etc/ntp.conf/etc/ntp.conf.bakvi/etc/ntp.conf
Modify the following sections:
# Permit time synchronization with We time source, but does not# Permit the source to query or modify the service in this s ystem.# restrict default Kod nomodify notrap nopeer noquery# restrict default nomodifyrestrict 192.168.10.0 mask 255.255.2 55.255 Notrust nomodify Notrap
and the following sections:
# Servers from the pool.ntp.org project.# please consider joining the pool (http://www.pool.ntp.org/join.html). Server 0.rhel.pool.ntp.orgserver 1.asia.pool.ntp.orgserver 3.asia.pool.ntp.orgserver 3.cn.pool.ntp.org

Save exit.

    • Server1 Execution Time Update:

Ntpdate 0.rhel.pool.ntp.org

    • Start the NTP service on Server1:

Service NTPD Start
The time server installation on this server1 is complete.

    • The next step is to perform the following command on all servers, update the time and do a timed task, and synchronize the clock at intervals.

Ntpdate 192.168.10.1echo ' */30 * * * * root/usr/sbin/ntpdate 192.168.10.1 ' >>/etc/crontabchkconfig crond onservice Crond restart
If you encounter
Jan 22:03:05 ntpdate[13550]: The NTP socket is on use, exiting
Error prompt, it is because the NTPD process is already running on this server and needs to perform service NTPD stop NTPD services.

Time synchronization is to ensure that all servers on the same time, this is hbase regionserver installation requirements, in order to facilitate processing, we simply put all the servers are clock synchronization.

Server environment We have basically done, we need to install the software environment behind.

CDH5.3 cluster Installation Notes-environment preparation (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.