Sunday, September 30, 2018

Cloudera CDH "Host Clock Offset" explained

https://www.cloudera.com/documentation/enterprise/5-8-x/topics/cm_ht_host.html#concept_pnm_cmn_yk


This is a host health test that checks if the host's system clock appears to be out-of-sync with its NTP server(s). 
The test uses the 'ntpdc -np' (if ntpd is running) or 'chronyc sources' (if chronyd is running) command to check that the host is synchronized to an NTP peer and that the absolute value of the host's clock offset from that peer is not too large. 
If the command fails, NTP is not synchronized to a server, or the host's NTP daemon is not running or cannot be contacted, the test will return "Bad" health. The 'ntpdc -np' or 'chronyc sources' output contains a row for each of the host's NTP servers. The row starting with a '*' (if ntpdc) or '^*' (if chronyc) contains the peer to which the host is currently synchronized. No row starting with a '*' or '^*' indicates that the host is not currently synchronized. 
Communication errors and too large an offset between the peer and the host time are examples of conditions that can lead to a host being unsynchronized. Make sure that UDP port 123 is open in any firewall that is in use. Check the system log for ntpd or chronyd messages related to configuration errors. 
If running ntpd, use 'ntpdc -c iostat' to verify that packets are sent and recieved between the different peers. More information about the conditions of each peer can be found by running the command 'ntpq -c as'. The output of this command includes the association ID that can be used in combination with 'ntpq -c "rv "' to get more information about the status of each such peer. The command 'ntpq -c pe' can also be used to return a summary of all peers and the reason why they are not in use. 
If running chronyd, use 'chronyc activity' to check how many NTP sources are online/offline. More information about the conditions of each peer can be found by running the command 'chronyc sourcestats'. To check chrony tracking, issue the command 'chronyc tracking'. 
If NTP is not in use on the host, this check should be disabled for the host using the configuration options shown below. Cloudera recommends using NTP for time synchronization of Hadoop clusters. A failure of this health test can indicate a problem with the host's NTP service or configuration. This test can be configured using the Host Clock Offset Thresholds host configuration setting.

10 comments:

  1. Your blog is one of a kind, i love the way you organize the topics.:’-”‘ design

    ReplyDelete
  2. I like this web site very much, Its a really nice billet to read and obtain info . design

    ReplyDelete
  3. It’s a good shame you don’t contain a give money button! I’d definitely give money for this fantastic webpage! That i suppose for the time being i’ll be satisfied bookmarking together with including an individual’s Feed that will my best Msn balance. That i appearance forward that will recent messages and definitely will share the web site utilizing my best Facebook or twitter team: ) apple tablet mockup

    ReplyDelete
  4. Hello – I must say, I am impressed with your site. I had no trouble navigating through all the tabs and information was very easy to access. I found what I wanted in no time at all. Pretty awesome. Would appreciate it if you add forums or something, it would be a perfect way for your clients to interact. Great job macbook png

    ReplyDelete
  5. Good website! I truly love how it is simple on my eyes and the data are well written. I am wondering how I could be notified whenever a new post has been made. I’ve subscribed to your feed which must do the trick! Have a nice day! mockup phone

    ReplyDelete
  6. When I initially commented I clicked the “Notify me when new comments are added” checkbox and now each time a comment is added I get several e-mails with the same comment. Is there any way you can remove me from that service? Cheers! webflow development agency

    ReplyDelete
  7. Dreamin. I love blogging. You all express your feelings the right way, because they are your feeling, focus on your blog it is great. best web development company

    ReplyDelete
  8. I want you to thank for your time of this wonderful read!!! I definately enjoy every little bit of it and I have you bookmarked to check out new stuff of your blog a must read blog!
    web design agency

    ReplyDelete
  9. Writing with style and getting good compliments on the article is quite hard, to be honest. But you have done it so calmly and with so cool feeling and you've nailed the job. This article is possessed with style and I am giving good compliment. Best! mobile app development services

    ReplyDelete
  10. buy youtube views From all of the new released Xbox 360 games, how could you know which games will be the ones that you're going to love? The last thing you want is to expend some money and then later on you find out that you don't really like the game, and realize that you only waste your money. Well, fortunately, there's some better ways to do that.

    ReplyDelete