查看系统时间
date
安装ntpdate工具
yum -y install ntp ntpdate
设置系统时间与网络时间同步
ntpdate cn.pool.ntp.org
设置从节点与主节点时间同步
ntpdate master
再使用date查看时间是否同步,然后重启hadoop和hive,作业即可正常运行
查看系统时间
date
安装ntpdate工具
yum -y install ntp ntpdate
设置系统时间与网络时间同步
ntpdate cn.pool.ntp.org
设置从节点与主节点时间同步
ntpdate master
再使用date查看时间是否同步,然后重启hadoop和hive,作业即可正常运行