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

23 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
  8. Great Blog! The concept has been explained very well. Thanks for sharing nice information
    Machine Learning Training in Hyderabad

    ReplyDelete
  9. It’s really great information for becoming a better Blogger. Keep sharing, Thanks...
    Data Science Training In Hyderabad

    ReplyDelete
  10. This Was An Amazing ! I Haven't Seen This Type of Blog Ever ! Thankyou For Sharing, data science training

    ReplyDelete
  11. This Was An Amazing ! I Haven't Seen This Type of Blog Ever ! Thankyou For Sharing, data science courses

    ReplyDelete
  12. This Was An Amazing ! I Haven't Seen This Type of Blog Ever ! Thankyou For Sharing, data science training in Hyderabad

    ReplyDelete
  13. This Was An Amazing ! I Haven't Seen This Type of Blog Ever ! Thankyou For Sharing, data science course in hyderabad with placements

    ReplyDelete
  14. Attend The Digital Marketing Course Bangalore From ExcelR. Practical Digital Marketing Course Bangalore Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Digital Marketing Course Bangalore.
    Digital Marketing Course Bangalore

    ReplyDelete
  15. I love the way you write and share your niche! Very interesting and different! Keep it coming! buy genuine instagram likes uk

    ReplyDelete
  16. By reading this article, many things have piled up in my mind which made me to think about it.
    SAP training in Kolkata
    SAP course in kolkata
    SAP training institute in Kolkata

    ReplyDelete
  17. You have put some high quality and valuable information here that any reader would love to read. I sincerely share many of your views in this article.
    SAP training in Mumbai
    SAP course in Mumbai
    SAP training institute Mumbai

    ReplyDelete
  18. wow, great, I was wondering how to cure acne naturally. and found your site by google, learned a lot, now I am a bit clear. I’ve bookmarked your site. keep us updated.
    <a href="https://www.excelr.com/business-analytics-training-in-pune/”> Courses in Business Analytics</a>
    I have express a few of the articles on your website now, and I really like your style of blogging.

    ReplyDelete
  19. I have express a few of the articles on your website now, and I really like your style of blogging. I added it to my favorite’s blog site list and will be checking back soon…
    Machine Learning Courses The web site is lovingly serviced and saved as much as date. So it should be, thanks for sharing this with us.

    ReplyDelete
  20. Nice blog Post ! This post contains very informative and knowledgeable. Thanks for sharing the most valuable information.
    Data Science Training in Hyderabad

    ReplyDelete
  21. Attend The Data Analyst Course From ExcelR. Practical Data Analyst Course Sessions With Assured Placement Support From Experienced Faculty. ExcelR Offers The Data Analyst Course.
    Data Analyst Course

    ReplyDelete

Popular Posts