Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How do I resolve clock offset issue?

avatar
Explorer

I get following health issue.

 

The host's NTP service did not respond to a request for the clock offset.

 

How do I resolve it?

 

Thanks,

Kewal

1 ACCEPTED SOLUTION

avatar
Contributor

Yes, the problem was at the Firewall , one of the rules was changes ;

after the problem was fix the NTP was updated.

 

Thanks so much for your help

View solution in original post

19 REPLIES 19

avatar
Contributor

Yes, the problem was at the Firewall , one of the rules was changes ;

after the problem was fix the NTP was updated.

 

Thanks so much for your help

avatar
New Contributor

Thanks for the help 

 

just 2 steps my issue is resolved might usefull to other 

i tried

/etc/init.d/ntpd start

/etc/init.d/ntpd stop

 

it works for me

avatar
Contributor
Thanks, it works for me too

avatar
Contributor

I have installed ntpd on all 8 nodes, checked the ntp.conf file across the nodes, its same..

So i stopped the ntpd and tried running the ntpupdate command and its saying command not found.. So could you please  explain this step?

-> connected to the ntp server named in the ntp.conf file: ntpupdate <ntp_server>

avatar
Expert Contributor
There is no ntpupdate command.

You can update ntp by typing

# ntpdate -u {Main node sync'ed to NTP server IP address or Domain name
here}

Example

# ntpdate -u domains.ntp.com

OR

# ntpdate -u 192.168.0.2

You should only have 1 node announcing NTP and other nodes getting time
from main node.

avatar
Contributor
Thanks a lot.. 🙂

avatar
Expert Contributor

avatar
Explorer

I had to restart Cloudera SCM Agent to fix this alert after NTP reconfiguration:

service cloudera-scm-agent restart

 

avatar
Expert Contributor
I use puppet and foreman to configure each system the same for all ntp
clients to a central ntp server.

Great information here
http://www.linuxsecrets.com/blog/4tutorial-and-install-howto/2014/06/26/906-how-to-install-and-confi...

avatar
New Contributor

If you are facing issue Clock offset issue then there will be problem with your ntp is not in sync.

 

To resolve follow some commands

 

Check in which host it is giving problem go under that host through CLI and

 

1. systemctl status ntpd.service (For checking the status, if its not working the it showing Inactive message)

 

2. route -n copy the ntp server ip address (You will find under Destination column) 

 

3. ntpdate <ntp server ip address>

 

4. systemctl start ntpd.service (for starting & syncing your host, after firing wait for sometime)

 

5. ntpstat (for checking whether it is synchronized or not it should be in synchronized)

 

after performing above steps your Clock offset issue will get resolved.

 

Regard,