EthanHunt
EthanHunt

Reputation: 45

NoServerForRegionException while running Hadoop MapReduce job on HBase

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.

Upvotes: 1

Views: 3665

Answers (4)

Kalyan Ghosh
Kalyan Ghosh

Reputation: 493

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

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

Upvotes: 0

Pavan
Pavan

Reputation: 591

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.

Upvotes: 4

Milind Jindal
Milind Jindal

Reputation: 176

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.

Upvotes: 0

subZero
subZero

Reputation: 307

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

Upvotes: 0

Related Questions