Hadoop- 集群时间同步

 

集群的时间要同步
* 找一台机器
时间服务器
* 所有的机器与这台机器时间进行定时的同步
比如,每日十分钟,同步一次时间

# rpm -qa|grep ntp

# vi /etc/ntp.conf

# vi /etc/sysconfig/ntpd
# Drop root to id ‘ntp:ntp’ by default.
SYNC_HWCLOCK=yes
OPTIONS=”-u ntp:ntp -p /var/run/ntpd.pid -g”

[root@hadoop-senior hadoop-2.5.0]# service ntpd status
ntpd is stopped
[root@hadoop-senior hadoop-2.5.0]# service ntpd start
Starting ntpd: [ OK ]
[root@hadoop-senior hadoop-2.5.0]# chkconfig ntpd on

 

 

 

给TA打赏
共{{data.count}}人
人已打赏
博客大数据

Hadoop- MapReduce在实际应用中常见的调优

2019-8-18 12:10:31

博客大数据

Hadoop- DistCp(分布式拷贝)

2019-8-18 12:14:31

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索