org.apache.hadoop.hbase.regionserver.HRegionServer: ABORTING region server : Unhandled exception: org.apache.hadoop.hbase.ClockOutOfSyncException:
This error occurs due to time synchronization between the nodes of the cluster, if the time difference between the node is more that 30000ms between the master and slave time then this error comes:
What is the solution ????
Do the following :
Install ntpd at the master using following method :
For Ubuntu flavor:
- sudo apt-get install ntpd
- vi /etc/ntp.conf
- sudo service ntp restart
- ps -ef | grep ntp
- netstat -na | grep 123
For Red Hat flavor:
- iptables -I INPUT -p udp --dport 123 -j ACCEPT -->"allows NTP traffic from ANY source"
- yum install ntp
- server 0.us.pool.ntp.org
- server wwv.nist.gov
- restrict 0.us.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
- restrict wwv.nist.gov mask 255.255.255.255 nomodify notrap noquery
- restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap
- restrict 127.0.0.1
- ntpq -p 0.us.pool.ntp.org
- /etc/init.d/ntpd start
- chkconfig ntpd on
So the NTPD is up and running then:
sudo ntpdate -b<IP Address of Slave Node> -> this will synchronise the master time with slave.
No comments:
Post a Comment
Thank you for Commenting Will reply soon ......