<?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: Can phoenix local indexes create a deadlock during an HBase restart? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101397#M14103</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1934/pedrogandola.html" nodeid="1934"&gt;@Pedro Gandola&lt;/A&gt; do you have HBase Master High Availabily on? We recommend to run at least two masters at the same time. Also, we recommend you use Ambari rolling restart rather than stop-the-world restart of the whole cluster. With HA enabled, you can have one HBase master down and still maintain availability. You can also restart regions one at a time or trigger restart every so often, you can set time trigger for RS restarts. Time of stopping everything to change a configuration in hbase-site is long gone, you don't need to stop the whole cluster.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jan 2016 00:36:45 GMT</pubDate>
    <dc:creator>aervits</dc:creator>
    <dc:date>2016-01-06T00:36:45Z</dc:date>
    <item>
      <title>Can phoenix local indexes create a deadlock during an HBase restart?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101396#M14102</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I have been testing out the &lt;EM&gt;Phoenix Local Indexes&lt;/EM&gt; and I'm facing an issue after restart the entire HBase cluster.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario: &lt;/STRONG&gt;I'm using &lt;STRONG&gt;Ambari 2.1.2&lt;/STRONG&gt; and &lt;STRONG&gt;HDP 2.3&lt;/STRONG&gt; using &lt;STRONG&gt;Phoenix 4.4&lt;/STRONG&gt; and &lt;STRONG&gt;HBase &lt;/STRONG&gt;&lt;STRONG&gt;1.1.1&lt;/STRONG&gt;.&lt;STRONG&gt; &lt;/STRONG&gt;My test cluster contains 10 machines and the main table contains 300 pre-split regions which implies 300 regions on local index table as well. To configure Phoenix I'm following this &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_installing_manually_book/content/configuring-hbase-for-phoenix.html"&gt;tutorial&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;When I start a fresh cluster everything is just fine, the local index is created and I can insert data and query it using the index. The problem comes when I need to restart the cluster to update some configurations in that moment I'm not able to restart the cluster anymore.
 
Most of the servers have exceptions like this one which looks that they are getting into a state where some region servers are waiting from regions that are not available yet in other region servers. (Kinda of a deadlock)&lt;/P&gt;&lt;PRE&gt;INFO  [htable-pool7-t1] client.AsyncProcess: #5, table=_LOCAL_IDX_BIDDING_EVENTS, attempt=27/350 failed=1ops, last exception: org.apache.hadoop.hbase.NotServingRegionException: org.apache.hadoop.hbase.NotServingRegionException: Region _LOCAL_IDX_BIDDING_EVENTS,57e4b17e4b17e4ac,1451943466164.253bdee3695b566545329fa3ac86d05e. is not online on ip-10-5-4-24.ec2.internal,16020,1451996088952
	at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegionByEncodedName(HRegionServer.java:2898)
	at org.apache.hadoop.hbase.regionserver.RSRpcServices.getRegion(RSRpcServices.java:947)
	at org.apache.hadoop.hbase.regionserver.RSRpcServices.multi(RSRpcServices.java:1991)
	at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:32213)
	at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2114)
	at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:101)
	at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:130)
	at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:107)
	at java.lang.Thread.run(Thread.java:745)
 on ip-10-5-4-24.ec2.internal,16020,1451942002174, tracking started null, retrying after=20001ms, replay=1ops
INFO  [ip-10-5-4-26.ec2.internal,16020,1451996087089-recovery-writer--pool5-t1] client.AsyncProcess: #3, waiting for 2  actions to finish
INFO  [ip-10-5-4-26.ec2.internal,16020,1451996087089-recovery-writer--pool5-t2] client.AsyncProcess: #4, waiting for 2  actions to finish&lt;/PRE&gt;&lt;P&gt;When the server is having these exceptions I can see this message (I checked the size of this file and it is very small):&lt;/P&gt;&lt;PRE&gt;Description: Replaying edits from hdfs://.../recovered.edits/0000000000000464197
Status: Running pre-WAL-restore hook in coprocessors (since 48mins, 45sec ago)&lt;/PRE&gt;&lt;P&gt;Another interesting thing that I noticed is the empty coprocessor list for the servers that are stuck.&lt;/P&gt;&lt;P&gt;For other hand, HBase master goes down after logging some of these messages:&lt;/P&gt;&lt;PRE&gt;GeneralBulkAssigner: Failed bulking assigning N regions&lt;/PRE&gt;&lt;P&gt;Any help would be awesome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Pedro&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2016 21:17:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101396#M14102</guid>
      <dc:creator>pedro_gandola</dc:creator>
      <dc:date>2016-01-05T21:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can phoenix local indexes create a deadlock during an HBase restart?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101397#M14103</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1934/pedrogandola.html" nodeid="1934"&gt;@Pedro Gandola&lt;/A&gt; do you have HBase Master High Availabily on? We recommend to run at least two masters at the same time. Also, we recommend you use Ambari rolling restart rather than stop-the-world restart of the whole cluster. With HA enabled, you can have one HBase master down and still maintain availability. You can also restart regions one at a time or trigger restart every so often, you can set time trigger for RS restarts. Time of stopping everything to change a configuration in hbase-site is long gone, you don't need to stop the whole cluster.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 00:36:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101397#M14103</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-01-06T00:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can phoenix local indexes create a deadlock during an HBase restart?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101398#M14104</link>
      <description>&lt;P&gt;additionally, did you see the warning about using local indexes in Phoenix as it being a technical preview?&lt;/P&gt;&lt;P&gt;The local indexing feature is a technical preview and considered under development. Do not use this feature in your production systems. If you have questions regarding this feature, contact Support by logging a case on our &lt;A href="http://support.hortonworks.com/"&gt;Hortonworks Support Portal&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 00:41:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101398#M14104</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-01-06T00:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can phoenix local indexes create a deadlock during an HBase restart?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101399#M14105</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt;,

Thanks for the info.&lt;/P&gt;&lt;P&gt;I was using the HA master for testing. Regarding with the full restart you are right. I followed Ambari which after we change any configuration it asks for a restart of all "affected" components and I clicked the button :). Is Ambari doing a proper rolling restart on this case?  I know that it does it when we click "Restart All Region Servers". 

I have done full restarts with Ambari before but this problem has only started after I introduced local indexes. I need to dig a bit more about this problem.&lt;/P&gt;&lt;P&gt;Thanks
&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 01:11:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101399#M14105</guid>
      <dc:creator>pedro_gandola</dc:creator>
      <dc:date>2016-01-06T01:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can phoenix local indexes create a deadlock during an HBase restart?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101400#M14106</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1934/pedrogandola.html" nodeid="1934"&gt;@Pedro Gandola&lt;/A&gt; the local indexes are in tech preview and as all TP releases there is no support from HWX until it's production ready. If you do find a solution, please post here for the best of the community.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 01:17:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101400#M14106</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-01-06T01:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Can phoenix local indexes create a deadlock during an HBase restart?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101401#M14107</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt;, Sure!

Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 01:21:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101401#M14107</guid>
      <dc:creator>pedro_gandola</dc:creator>
      <dc:date>2016-01-06T01:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can phoenix local indexes create a deadlock during an HBase restart?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101402#M14108</link>
      <description>&lt;P&gt;Ambari will restart everything that has stale configs, for you to take advantage of both worlds, (restarting stale configs and keeping cluster up), go through each host and restart components with stale configs per node, rather than per cluster as you were doing.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 01:27:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101402#M14108</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-01-06T01:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can phoenix local indexes create a deadlock during an HBase restart?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101403#M14109</link>
      <description>&lt;P&gt;
	Hi &lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;&lt;/A&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1934/pedrogandola.html" nodeid="1934"&gt;@Pedro Gandola&lt;/A&gt; &lt;/P&gt;&lt;P&gt;
	This problem occurs when meta regions are not assigned yet and preScannerOpen coprocessor waits for reading meta table for local indexes, which results in openregionthreads to wait forever because of deadlock.&lt;/P&gt;&lt;P&gt;you can solve this by increasing number of threads required to open the regions so that meta regions can be assigned even threads for local index table is still waiting to remove the deadlock.&lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;
  &amp;lt;name&amp;gt;hbase.regionserver.executor.openregion.threads&amp;lt;/name&amp;gt;
  &amp;lt;value&amp;gt;100&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 15:48:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101403#M14109</guid>
      <dc:creator>asinghal</dc:creator>
      <dc:date>2016-01-06T15:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can phoenix local indexes create a deadlock during an HBase restart?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101404#M14110</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/627/asinghal.html" nodeid="627"&gt;@asinghal&lt;/A&gt;,

It worked perfectly.

Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 20:12:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101404#M14110</guid>
      <dc:creator>pedro_gandola</dc:creator>
      <dc:date>2016-01-06T20:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can phoenix local indexes create a deadlock during an HBase restart?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101405#M14111</link>
      <description>&lt;P&gt;I think this calls for a jira with Ambari for advisor?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 21:36:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101405#M14111</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-01-06T21:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can phoenix local indexes create a deadlock during an HBase restart?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101406#M14112</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt;, Not now.. as we don't recommend to use local index in production yet. Local Index will probably be ready for production in next HDP release(but not sure) and this connection made (which access meta/namespace tables) during preScannerOpen will be moved to different place to avoid above problem., &lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 22:39:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-phoenix-local-indexes-create-a-deadlock-during-an-HBase/m-p/101406#M14112</guid>
      <dc:creator>asinghal</dc:creator>
      <dc:date>2016-01-06T22:39:10Z</dc:date>
    </item>
  </channel>
</rss>

