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  127.127.1.0     # local clock
fudge   127.127.1.0 stratum 10

2. Configure others as NTP clients

vi /etc/ntp.conf:
server hdm.xxx.com

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 192.111.111.0 mask 255.255.255.0 nomodify notrap
restrict 127.0.0.1
restrict -6 ::1
server  127.127.1.0     # local clock
fudge   127.127.1.0 stratum 10
keys /etc/ntp/keys
On client side:
driftfile /var/lib/ntp/drift
server hdm.xxx.com prefer true iburst
keys /etc/ntp/keys

7 comments:

  1. Very nice blog here and thanks for post it.. Keep blogging...
    ExcelR data science training

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  5. Great post i must say and thanks for the information. Education is definitely a sticky subject. However, is still among the leading topics of our time. I appreciate your post and look forward to more.

    data analytics courses

    data science interview questions

    business analytics courses

    data science course in mumbai

    ReplyDelete
  6. Such a very useful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article.

    business analytics course

    data analytics courses

    data science interview questions

    data science course in mumbai

    ReplyDelete
  7. Usually I never comment on blogs but your article is so convincing that I never stop myself to say something about it. You’re doing a great job, Keep it up.
    Machine Learning Training In Hyderabad

    ReplyDelete

Popular Posts