BIGdata
BIGdata

BIGdata

Hadoop和Hbase 安装配置以及同步主时间:

首先配置局域网主机host文件:

vim /etc/hosts

增加内容如下

主机ip master #

局域网主机ip slave1

……..

安装ntp:

yum -y install ntp

输入rpm -qa | grep “ntp” 出现以下为安装成功

ntpdate-4.2.6p5-1.el6.centos.x86_64
ntp-4.2.6p5-1.el6.centos.x86_64

ntp服务器配置:

vim /etc/ntp.conf

将配置中以下字段注释
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

server ntp1.aliyun.com #同步公网的时间
server cn.ntp.org.cn
server cn.pool.ntp.org
server 127.127.1.0 #如果无法连接公网,则使用自己本身的时间作为标准时间。
fudge 127.127.1.0 stratum 10 #设置stratum级别

关闭ntp服务:service ntpd stop

主ntp服务器同步外部时间:ntpdata ntp1.aliyun.com

打开ntp服务:service ntpd start

重启ntp服务:service ntpd restart

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注