首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

(转) hbase中装务器时间不同步造成的regionserver启动失败

2012-07-23 
(转) hbase中服务器时间不同步造成的regionserver启动失败Caused by: org.apache.hadoop.ipc.RemoteExcept

(转) hbase中服务器时间不同步造成的regionserver启动失败

Caused by: org.apache.hadoop.ipc.RemoteException: org.apache.hadoop.hbase.ClockOutOfSyncException: Server s3,60020,1304927875246 has been rejected; Reported time is too far out of sync with master. Time difference of 41450ms > max allowed of 30000ms?

1.方案1
在hbase-site.xml添加配置,下面配置允许3分钟时钟差异。
<property>
??????? <name>hbase.master.maxclockskew</name>
??????? <value>180000</value>
??????? <description>Time difference of regionserver from master</description>
?</property>

2.方案2

错误里指出节点机的时间和master的时间差距大于30000ms,就是30秒时无法启动服务。
修改各结点时间,使其误差在30s内

要配置服务器时间同步需要用到ntp,最好能连接外网的时间服务器。内网里面配起来比较麻烦点,所以就手动改了时间,再启动就可以了.

这个比较实用:yum install ntp安装后执行ntpdate cn.pool.ntp.org即可同步国际时间..开机后自动同步时间:vi /etc/rc.d/rc.local中,最下面添加ntpdate cn.pool.ntp.org

?

转自:http://www.cnblogs.com/flyoung2008/archive/2011/12/02/2272761.html

--end

?

?

热点排行