<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/org-apache-hadoop-hbase-client-NoServerForRegionException/m-p/12020#M1608</link>
    <description>&lt;P&gt;Thanks for reporting the solution back to this thread, Murthy. &amp;nbsp;Glad it's resolved!&lt;/P&gt;</description>
    <pubDate>Mon, 05 May 2014 18:37:29 GMT</pubDate>
    <dc:creator>Clint</dc:creator>
    <dc:date>2014-05-05T18:37:29Z</dc:date>
    <item>
      <title>org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/org-apache-hadoop-hbase-client-NoServerForRegionException/m-p/9044#M1603</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are trying to execute a MapReduce job to write to HBASE using OOZIE Workflow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have implemented Kerberos in our Cluster and that is when these issues started....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Job is failing after 10 minutes with an error - java.lang.RuntimeException: org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region for supertemp,,99999999999999 after 10 tries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We had a similar issue with beeline not able to run HBASE Commands and the solution was -&lt;/P&gt;&lt;P&gt;I think the issue is that HBase does not allow hive to impersonate users.&amp;nbsp; So you'll need to setup hive as a proxy user in HBase.&amp;nbsp; Can you try the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Go to the HDFS service configuration in CM.&lt;/P&gt;&lt;P&gt;- Go to Service-Wide-&amp;gt;Advanced and add the following to "Cluster-wide Configuration Safety Valve for core-site.xml":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;lt;property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;hadoop.proxyuser.hive.hosts&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;*&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;hadoop.proxyuser.hive.groups&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;*&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added similar entry for OOZIE - HDFS Service-Wide Advanced properties and add the following to Cluster-wide ConfigurationSafety Valve for core-site.xml&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;name&amp;gt;hadoop.proxyuser.oozie.hosts&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;value&amp;gt;*&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;name&amp;gt;hadoop.proxyuser.oozie.groups&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;value&amp;gt;*&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is what i have in the logs -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.MapReduceMain], main() threw exception, org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region for supertemp,,99999999999999 after 10 tries.&lt;/P&gt;&lt;P&gt;java.lang.RuntimeException: org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region for supertemp,,99999999999999 after 10 tries.&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hbase.mapreduce.TableOutputFormat.setConf(TableOutputFormat.java:206)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:73)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:133)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:1010)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:974)&lt;/P&gt;&lt;P&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;/P&gt;&lt;P&gt;at javax.security.auth.Subject.doAs(Subject.java:415)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1438)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:974)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:948)&lt;/P&gt;&lt;P&gt;at org.apache.oozie.action.hadoop.MapReduceMain.submitJob(MapReduceMain.java:97)&lt;/P&gt;&lt;P&gt;at org.apache.oozie.action.hadoop.MapReduceMain.run(MapReduceMain.java:57)&lt;/P&gt;&lt;P&gt;at org.apache.oozie.action.hadoop.LauncherMain.run(LauncherMain.java:37)&lt;/P&gt;&lt;P&gt;at org.apache.oozie.action.hadoop.MapReduceMain.main(MapReduceMain.java:40)&lt;/P&gt;&lt;P&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;/P&gt;&lt;P&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)&lt;/P&gt;&lt;P&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;/P&gt;&lt;P&gt;at java.lang.reflect.Method.invoke(Method.java:601)&lt;/P&gt;&lt;P&gt;at org.apache.oozie.action.hadoop.LauncherMapper.map(LauncherMapper.java:495)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:417)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.mapred.MapTask.run(MapTask.java:332)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.mapred.Child$4.run(Child.java:268)&lt;/P&gt;&lt;P&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;/P&gt;&lt;P&gt;at javax.security.auth.Subject.doAs(Subject.java:415)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1438)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.mapred.Child.main(Child.java:262)&lt;/P&gt;&lt;P&gt;Caused by: org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region for supertemp,,99999999999999 after 10 tries.&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:980)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:885)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:987)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:889)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.locateRegion(HConnectionManager.java:846)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hbase.client.HTable.finishSetup(HTable.java:270)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hbase.client.HTable.&amp;lt;init&amp;gt;(HTable.java:210)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hbase.client.HTable.&amp;lt;init&amp;gt;(HTable.java:169)&lt;/P&gt;&lt;P&gt;at org.apache.hadoop.hbase.mapreduce.TableOutputFormat.setConf(TableOutputFormat.java:201)&lt;/P&gt;&lt;P&gt;... 26 more&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Oozie Launcher failed, finishing Hadoop job gracefully&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:57:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/org-apache-hadoop-hbase-client-NoServerForRegionException/m-p/9044#M1603</guid>
      <dc:creator>Murthy</dc:creator>
      <dc:date>2022-09-16T08:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/org-apache-hadoop-hbase-client-NoServerForRegionException/m-p/9050#M1604</link>
      <description>&lt;P&gt;Here is the information from the syslog -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the syslog shows hundreds of the following errors until the job dies:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2014-04-21 08:44:26,676 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)&lt;/P&gt;&lt;P&gt;2014-04-21 08:44:26,676 WARN org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect&lt;/P&gt;&lt;P&gt;java.net.ConnectException: Connection refused&lt;/P&gt;&lt;P&gt;at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)&lt;/P&gt;&lt;P&gt;at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:692)&lt;/P&gt;&lt;P&gt;at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:350)&lt;/P&gt;&lt;P&gt;at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1075)&lt;/P&gt;&lt;P&gt;2014-04-21 08:44:26,686 WARN org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper: Possibly transient ZooKeeper exception: org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /hbase/hbaseid&lt;/P&gt;&lt;P&gt;2014-04-21 08:44:26,686 INFO org.apache.hadoop.hbase.util.RetryCounter: Sleeping 2000ms before retry #1...&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2014 15:04:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/org-apache-hadoop-hbase-client-NoServerForRegionException/m-p/9050#M1604</guid>
      <dc:creator>Murthy</dc:creator>
      <dc:date>2014-04-21T15:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/org-apache-hadoop-hbase-client-NoServerForRegionException/m-p/9344#M1605</link>
      <description>&lt;P&gt;Murthy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If this is a CM-managed cluster, you need to deploy your HBase Client Configuration to any node that will be submitting jobs that will communicate with HBase. &amp;nbsp;It looks like the machine where the job is running is trying to connect to a zookeeeper instance on it's local machine (the default) and it can't find zookeeper and therefore cannot communicate with HBase. &amp;nbsp;The hbase-site.xml file loaded in this client's environment path will solve that.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2014 17:24:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/org-apache-hadoop-hbase-client-NoServerForRegionException/m-p/9344#M1605</guid>
      <dc:creator>Clint</dc:creator>
      <dc:date>2014-04-23T17:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/org-apache-hadoop-hbase-client-NoServerForRegionException/m-p/9442#M1606</link>
      <description>&lt;P&gt;Hello Clint, Yes we are using CDH 4.6...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have copied the hbase-site.xml to /user/oozie/share/lib/hbase folder in HDFS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the error - i have restarted the cluster also... Here are some lines from the syslog -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2014-04-25 13:19:41,310 INFO org.apache.zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection&lt;BR /&gt;2014-04-25 13:19:41,331 INFO org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper: The identifier of this process is 42965@ldxhdfsw4.dx.deere.com&lt;BR /&gt;2014-04-25 13:19:41,337 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181. Will not attempt to authenticate using SASL (unknown error)&lt;BR /&gt;2014-04-25 13:19:41,339 WARN org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect&lt;BR /&gt;java.net.ConnectException: Connection refused&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Murthy&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2014 18:30:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/org-apache-hadoop-hbase-client-NoServerForRegionException/m-p/9442#M1606</guid>
      <dc:creator>Murthy</dc:creator>
      <dc:date>2014-04-25T18:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/org-apache-hadoop-hbase-client-NoServerForRegionException/m-p/12016#M1607</link>
      <description>&lt;P&gt;Hello Clint, I followed the directions in an article told by Ryan Geno (Cloudera Employee) and it seems to have fixed the issue -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://prodlife.wordpress.com/2013/11/22/using-oozie-in-kerberized-cluster/"&gt;http://prodlife.wordpress.com/2013/11/22/using-oozie-in-kerberized-cluster/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- go to “Oozie service-&amp;gt;Configuration-&amp;gt;Oozie Server(default)-&amp;gt;Advanced-&amp;gt; Oozie Server Configuration Safety Valve for oozie-site.xml” and add:&lt;/P&gt;&lt;TABLE cellpadding="0" cellspacing="0" border="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;lt;property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;name&amp;gt;oozie.credentials.credentialclasses&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;value&amp;gt;hcat=org.apache.oozie.action.hadoop.HCatCredentials&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After I restarted the Oozie Service and ran the ResourceClipper Job – it completed….&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Murthy&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2014 17:57:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/org-apache-hadoop-hbase-client-NoServerForRegionException/m-p/12016#M1607</guid>
      <dc:creator>Murthy</dc:creator>
      <dc:date>2014-05-05T17:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find region</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/org-apache-hadoop-hbase-client-NoServerForRegionException/m-p/12020#M1608</link>
      <description>&lt;P&gt;Thanks for reporting the solution back to this thread, Murthy. &amp;nbsp;Glad it's resolved!&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2014 18:37:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/org-apache-hadoop-hbase-client-NoServerForRegionException/m-p/12020#M1608</guid>
      <dc:creator>Clint</dc:creator>
      <dc:date>2014-05-05T18:37:29Z</dc:date>
    </item>
  </channel>
</rss>

