Kudu-master启动:Failed to start Kudu Master Server. Return value: 1

今天屁颠屁颠装了kudu,到启动Kudu-mater的时候报错了:

[hadoop@hadoop000 init.d]$ sudo ./kudu-master start
Failed to start Kudu Master Server. Return value: 1        [FAILED]

这个时候就应该去扒错误日志,Kudu的默认日志地址在/var/log/kudu里,打开来瞅一眼kudu-master.FATAL

[hadoop@hadoop000 kudu]$ sudo cat kudu-tserver.FATAL 
Log file created at: 2020/02/24 14:04:26
Running on machine: hadoop000
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
F0224 14:04:26.967012  1301 tablet_server_main.cc:80] Check failed: _s.ok() Bad status: Service unavailable: Cannot initialize clock: Error reading clock. Clock considered unsynchronized

很明显错误描述是这个“Cannot initialize clock: Error reading clock. Clock considered unsynchronized”,谷歌一下表示是时间同步问题,装一下ntp:

sudo yum install ntp

启动一下:

service ntpd start

看下状态:

[hadoop@hadoop000 kudu]$ service ntpd status
Redirecting to /bin/systemctl status ntpd.service
● ntpd.service - Network Time Service
   Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2020-02-24 14:13:45 CST; 3min 38s ago
  Process: 2318 ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 2319 (ntpd)
   CGroup: /system.slice/ntpd.service
           └─2319 /usr/sbin/ntpd -u ntp:ntp -g

应该是好的,但是回去再启动Kudu的时候还是失败了。

之后发现输入“ntpstat”的时候就会报错:Unable to talk to NTP daemon. Is it running?

然后我查了下,更改了下ntp的配置,配置文件默认在/etc/ntp.conf,在这里加上了自己服务器的地址:server hadoop000 perfer

# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server hadoop000 perfer
server 0.centos.pool.ntp.org iburst
server 1.centos.pool.ntp.org iburst
server 2.centos.pool.ntp.org iburst
server 3.centos.pool.ntp.org iburst

然后重启ntp:

service ntpd restart

这时候再去启动Kudu-master就可以了。不知道是我更改配置的原因还是重启了ntp的原因,可以都试试。

扫描二维码关注公众号,回复: 9509471 查看本文章

——————————————————————————————————————————————

2.26日更新,又出现了同样的问题,重启ntp即可,应该是重启就可以解决了。

请熟读并背诵service ntpd restart这个玄学命令!

发布了66 篇原创文章 · 获赞 28 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_36329973/article/details/104477318