NoServerForRegionException while running Hadoop Ma

2019-06-05 18:52发布

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.

4条回答
Evening l夕情丶
2楼-- · 2019-06-05 19:17

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

查看更多
Root(大扎)
3楼-- · 2019-06-05 19:35

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.

查看更多
欢心
4楼-- · 2019-06-05 19:37

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

hdfs dfs -mv /apps/hbase/data/MasterProcWALs/state-*.log /tmp
查看更多
爷、活的狠高调
5楼-- · 2019-06-05 19:44

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.

查看更多
登录 后发表回答