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. Very nice blog here and thanks for post it.. Keep blogging...
    ExcelR data science training

  2. I am looking for and I love to post a comment that "The content of your post is awesome" Great work!
    data analytics courses

  3. I am really enjoying reading your well written articles. It looks like you spend a lot of effort and time on your blog. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work. data science course fees in Bangalore

  4. I’m excited to uncover this page. I need to to thank you for ones time for this particularly fantastic read!! I definitely really liked every part of it and i also have you saved to fav to look at new information in your site.
    data analytics courses hyderabad
    data science
    business analytics course


Popular Posts