NoServerForRegionException while running Hadoop MapReduce job on HBase

吃可爱长大的小学妹 提交于 2019-12-08 06:00:57

问题


I am executing a simple Hadoop MapReduce program with HBase as an input and output. I am getting the error:

java.lang.RuntimeException: org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region for OutPut,,99999999999999 after 10 tries.

回答1:


This exception appeared to us when there was difference in hbase version.

Our code was built with and running with 0.94.X version of hbase jars. Whereas the hbase server was running on 0.90.3.

When we changed our pom file with right version (0.90.3) of hbase jars it started working fine.




回答2:


Query bin/hbase hbck and find in which machine Region server is running. Make sure that all your Region server is up and running. Use start regionserver for starting Region server




回答3:


Even if Regionserver at the machine is started it may fail because of time sync.

Make sure you have NTP installed on all Regionserver nodes and HbaseMaster node.

As Hbase works on a key-value pair where it uses the Timestamp as the Index, So it allows a time skew less than 3 seconds.




回答4:


Deleting (or move to /tmp) the WAL logs helped in our case:

hdfs dfs -mv /apps/hbase/data/MasterProcWALs/state-*.log /tmp


来源:https://stackoverflow.com/questions/14646446/noserverforregionexception-while-running-hadoop-mapreduce-job-on-hbase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!