Created on 08-02-2019 12:47 AM - last edited on 08-02-2019 09:36 AM by VidyaSargur
I have deployed kudu service in My CDH Cluster.
Though chronyd is active in all cluster host am getting time sync issue in kudu
This is what am getting in log
Check failed: _s.ok() Bad status: Service unavailable: Cannot initialize clock: Error reading clock. Clock considered unsynchronized
can some one suggest me solution to activate kudu
Created on 08-02-2019 02:20 AM - edited 08-02-2019 02:20 AM
hi @Amritha ,
when you're running the command ntpq -np ,
(ntp should be already installed I guess )
what does it give as result?
Created 08-03-2019 11:01 PM
@Bildervic The "ntpq -np" commands gives me error
-bash: ntpq: command not found
But chronyd is active I have checked the status of it
● chronyd.service - NTP client/server
Loaded: loaded (/usr/lib/systemd/system/chronyd.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2019-08-02 03:03:41 EDT; 1 day 22h ago
Main PID: 1474 (chronyd)
I have installed chronyd while creating bin.
Created 08-05-2019 03:17 AM
as I have checked some Kudu manuals,
Chrony is not fully tested with KUDU for network time synchronization.
"Kudu releases are only tested with NTP. Other time synchronization providers like Chrony may or may not work."
so you can either try to install NTP.
or just try this tip I've found :
"In order to use chrony for synchronization (for KUDU), chrony.conf must be configured with the rtcsync option"
Created 08-22-2019 01:50 PM
Kudu requires the machine clock of master and tablet servers nodes is synchronized using NTP : https://kudu.apache.org/docs/troubleshooting.html#ntp
Kudu is tested with ntpd, but I guess chronyd might work as well. Whether using ntpd or chronyd, it's necessary to make sure the machine's clock is synchronized so ntp_adjtime() Linux system call doesn't return an error (see http://man7.org/linux/man-pages/man2/adjtimex.2.html for more technical details).
It's not enough just to have ntpd (or chronyd) running. It's necessary to make sure the clock is synchronized. I would verify that the NTP daemon is properly configured and tracks the clocks of the reference servers. For the instructions to check the sync status of machine's clock, see https://kudu.apache.org/docs/troubleshooting.html#ntp if using ntpd or https://docs.fedoraproject.org/en-US/Fedora/18/html/System_Administrators_Guide/sect-Checking_if_chr... for chronyd.
Hope this helps,