<?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: Phoenix - Query Timeout in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/315548#M17388</link>
    <description>&lt;P&gt;Frustrating that that link is hidden behind a 'paywall'.&amp;nbsp; I have an account but I am not allowed to view without contacting sales&lt;/P&gt;</description>
    <pubDate>Thu, 29 Apr 2021 00:00:50 GMT</pubDate>
    <dc:creator>Simbosan</dc:creator>
    <dc:date>2021-04-29T00:00:50Z</dc:date>
    <item>
      <title>Phoenix - Query Timeout</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120517#M17372</link>
      <description>&lt;P&gt;I have a table in HBase created via Phoenix.  The table has approxmiately 20 million records.  I'm connecting to Phoenix via:&lt;/P&gt;&lt;PRE&gt;phoenix-sqlline.py hbasemaster:2181:/hbase-unsecure&lt;/PRE&gt;&lt;P&gt;I'm trying to run a count as follows:&lt;/P&gt;&lt;PRE&gt;select count(columnname) from tablename;&lt;/PRE&gt;&lt;P&gt;When I run that SQL, Phoenix reports a timeout&lt;/P&gt;&lt;PRE&gt;org.apache.phoenix.exception.PhoenixIOException: org.apache.phoenix.exception.PhoenixIOException: Failed after attempts=36, exceptions:

java.net.SocketTimeoutException: callTimeout=60000, callDuration=60317: row ....&lt;/PRE&gt;&lt;P&gt;I've tried changing the hbase.rpc.timeout via Ambari, but that doesn't seem to be the issue.  The default timeout in Ambari was set to 1m30s and I changed it to 2m.  The timeout reported by Phoenix is 60s before and after the change, so I don't think that's the culprit anyway.&lt;/P&gt;&lt;P&gt;What setting do I need to change to allow for longer running queries?  Is there something else that I should be looking at?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 01:25:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120517#M17372</guid>
      <dc:creator>Jaraxal</dc:creator>
      <dc:date>2016-02-02T01:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix - Query Timeout</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120518#M17373</link>
      <description>&lt;P&gt;Try increasing hbase.rpc.timeout in hbase-site.xml&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 01:29:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120518#M17373</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2016-02-02T01:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix - Query Timeout</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120519#M17374</link>
      <description>&lt;P&gt;There are phoenix parameters as well:&lt;/P&gt;&lt;P&gt;&lt;A href="https://phoenix.apache.org/tuning.html" target="_blank"&gt;https://phoenix.apache.org/tuning.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Its weird I don't see an applicable timeout. Query timeout would make sense but that is ten minutes and not 1 minute. &lt;/P&gt;&lt;P&gt;phoenix.query.timeoutMs&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 01:42:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120519#M17374</guid>
      <dc:creator>bleonhardi</dc:creator>
      <dc:date>2016-02-02T01:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix - Query Timeout</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120520#M17375</link>
      <description>&lt;P&gt;The difference is that Michael showed a SocketTimeoutException in the timeout. That's most likely the HBase RPC framework limiting the lifetime of the socket, not the Phoenix application-level timeout you listed (which is still good to remember!)&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 01:46:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120520#M17375</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2016-02-02T01:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix - Query Timeout</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120521#M17376</link>
      <description>&lt;P&gt;There is an odd environment variable used for the HBase configuration directory.  Try setting HBASE_CONF_PATH=/etc/hbase/conf in your shell session and see if the timeout value gets picked up. &lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 01:53:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120521#M17376</guid>
      <dc:creator>TerryP</dc:creator>
      <dc:date>2016-02-02T01:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix - Query Timeout</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120522#M17377</link>
      <description>&lt;P&gt;But he said that one was 90s before and changing it didn't help. Ah well lets see what he comes up with. &lt;/P&gt;&lt;P&gt;The issue might be that he changed it on the server side but should have changed on the client. Perhaps the default is 60s? &lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 01:57:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120522#M17377</guid>
      <dc:creator>bleonhardi</dc:creator>
      <dc:date>2016-02-02T01:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix - Query Timeout</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120523#M17378</link>
      <description>&lt;P&gt;Which it is: So most likely the phoenix client does not take the hbase-site.xml from ambari but uses default values. &lt;/P&gt;&lt;DL&gt;&lt;DT&gt;&lt;CODE&gt;hbase.rpc.timeout&lt;/CODE&gt;&lt;/DT&gt;&lt;DD&gt;Description&lt;P&gt;This is for the RPC layer to define how long HBase client applications take for a remote call to time out. It uses pings to check connections but will eventually throw a TimeoutException.&lt;/P&gt;Default&lt;P&gt;&lt;CODE&gt;60000&lt;/CODE&gt;&lt;/P&gt;&lt;/DD&gt;&lt;/DL&gt;</description>
      <pubDate>Tue, 02 Feb 2016 01:59:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120523#M17378</guid>
      <dc:creator>bleonhardi</dc:creator>
      <dc:date>2016-02-02T01:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix - Query Timeout</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120524#M17379</link>
      <description>&lt;P&gt;Oops. I missed that part &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 02:08:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120524#M17379</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2016-02-02T02:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix - Query Timeout</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120525#M17380</link>
      <description>&lt;P&gt;I tried that already, as I indicated in my original post.  It did not work.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 03:31:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120525#M17380</guid>
      <dc:creator>Jaraxal</dc:creator>
      <dc:date>2016-02-02T03:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix - Query Timeout</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120526#M17381</link>
      <description>&lt;P&gt;Right, sorry about that, but that's near certainly where the error is coming from. The question on my mind is why sqlline isn't picking up the configuration value. @Terry 's suggestion is a good one. Depending on the version of HDP you're running, HBASE_CONF_DIR would also work.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 03:38:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120526#M17381</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2016-02-02T03:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix - Query Timeout</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120527#M17382</link>
      <description>&lt;P&gt;This was the issue.  Well more specifically HBASE_CONF_DIR.  Running phoenix_utils.py showed HBASE_CONF_PATH and HBASE_CONF_DIR as equal to ".".  I set my HBASE_CONF_DIR environment variable to to use "/etc/hbase/conf" and now the query seems to work ok.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 03:42:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120527#M17382</guid>
      <dc:creator>Jaraxal</dc:creator>
      <dc:date>2016-02-02T03:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix - Query Timeout</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120528#M17383</link>
      <description>&lt;P&gt;I discovered several posts via Google that suggested the problem was hbase.rpc.timeout.  When I changed the value of this via Ambari, it had no effect.  As I responded below, the problem seemed to be that I was missing the HBASE_CONF_DIR environment variable so it was using the default settings instead of the Ambari configured settings.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2016 03:44:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120528#M17383</guid>
      <dc:creator>Jaraxal</dc:creator>
      <dc:date>2016-02-02T03:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix - Query Timeout</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120529#M17384</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/38/terry.html" nodeid="38"&gt;@Terry Padgett&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/223/jelser.html" nodeid="223"&gt;@Josh Elser&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I am using DBVisulizer to connect to Phoenix. Mine is a kerberos enabled cluster and getting below error messages. Can suggestions?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;An error occurred while establishing the connection: Long Message: callTimeout=600000, callDuration=620131: Details: Type: org.apache.phoenix.exception.PhoenixIOException Error Code: 101 SQL State: 08000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Not sure how I can pass conf directory for DBVisulizer (added all conf files to Resoucres directory of DbViz but didn't helped)&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 23:38:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120529#M17384</guid>
      <dc:creator>sparepally1</dc:creator>
      <dc:date>2016-05-20T23:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix - Query Timeout</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120530#M17385</link>
      <description>&lt;P&gt;FWIW, this should be fixed in recent versions of Apache Phoenix and HDP.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 04:22:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120530#M17385</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2016-06-17T04:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix - Query Timeout</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120531#M17386</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I set phoenix timeout is 3hr, rpc 3hr and query alive is also 3hr but for bigger query whenever phoenix calltimeout occurs my hbase region server also goes down, I don not know what is happening.&lt;/P&gt;&lt;P&gt;Please help me out on this. &lt;A rel="user" href="https://community.cloudera.com/users/38/terry.html" nodeid="38"&gt;@Terry Padgett&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 17:39:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120531#M17386</guid>
      <dc:creator>ankitbeohar90</dc:creator>
      <dc:date>2016-07-29T17:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix - Query Timeout</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120532#M17387</link>
      <description>&lt;P&gt;Below KB article helped me to resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/content/supportkb/49037/phoenix-sqlline-query-on-larger-data-set-fails-wit.html" target="_blank"&gt;https://community.hortonworks.com/content/supportkb/49037/phoenix-sqlline-query-on-larger-data-set-fails-wit.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 16:53:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/120532#M17387</guid>
      <dc:creator>dgiri_india1989</dc:creator>
      <dc:date>2017-07-04T16:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix - Query Timeout</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/315548#M17388</link>
      <description>&lt;P&gt;Frustrating that that link is hidden behind a 'paywall'.&amp;nbsp; I have an account but I am not allowed to view without contacting sales&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 00:00:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-Query-Timeout/m-p/315548#M17388</guid>
      <dc:creator>Simbosan</dc:creator>
      <dc:date>2021-04-29T00:00:50Z</dc:date>
    </item>
  </channel>
</rss>

