最近发现RegionServer自动消失,查看日志发现好像说时钟差了xxx秒,我估计是时钟同步差距太大了,我就尝试重新同步了一下时钟,果然没有再出现RegionServer自动消失的情况。
Ubuntu时钟同步(与时间服务器上的时间同步)如下:
1. 安装ntpdate工具
# sudo apt-get install ntpdate
2. 设置系统时间与网络时间同步
# sudo ntpdate cn.pool.ntp.org
3. 将系统时间写入硬件时间
# sudo hwclock --systohc