您的位置:首页 > 其它

hbase 结点之间时间不一致造成regionserver启动失败

2015-07-23 09:56 337 查看
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添加配置

<property>

<name>hbase.master.maxclockskew</name>

<value>180000</value>

<description>Time difference of regionserver from master</description>

</property>

2.方案2

修改各结点时间,使其误差在30s内

我写了一个同步时间的shell脚本timeSync.sh

#!/bin/bash

echo "start"

arr=(15 25 26 27 28 30 40)

for ip in ${arr[@]}

do

newip="192.168.120.$ip"

echo -e "ip:$newip"

ssh $newip 'date -s "2015-07-23 09:54:00"; clock -w'

done

echo "complete"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: