Thursday, June 19, 2014

NTP tips for hadoop cluster

Below is quick tips to setup NTP server and sync the whole hadoop cluster.

1. Configure hdm as the NTP server.

vi /etc/ntp.conf:
server     # local clock
fudge stratum 10

2. Configure others as NTP clients

vi /etc/ntp.conf:

3. Start ntpd on all servers.

service ntpd start

4. Enable ntpd on all servers.

chkconfig ntpd on

5. Make sure NTP server has sycned with itself

ntpq -p

6. Check NTP clients

ntpdate -q hdm

7. Troubleshooting on NTP client

ntpdate -d hdm

8. Sample&Minimum /etc/ntp.conf

On server side:
driftfile /var/lib/ntp/drift
restrict mask nomodify notrap
restrict -6 ::1
server     # local clock
fudge stratum 10
keys /etc/ntp/keys
On client side:
driftfile /var/lib/ntp/drift
server prefer true iburst
keys /etc/ntp/keys


  1. I recently came across your article and have been reading along. I want to express my admiration of your writing skill and ability to make readers read from the beginning to the end. I would like to read newer posts and to share my thoughts with you.
    data science training


Popular Posts