<?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 call from java on larger data set fails with java.net.SocketTimeoutException: callTimeout=60000 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-query-call-from-java-on-larger-data-set-fails-with/m-p/217940#M84255</link>
    <description>&lt;P&gt;"waitTime=60001, operationTimeout=60000 expired"&lt;/P&gt;&lt;P&gt;You need to include hbase-site.xml on the classpath for your application. It is obvious from the error that the hbase.rpc.timeout and phoenix.query.timeoutMs are not being respected from this error.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Oct 2018 21:47:20 GMT</pubDate>
    <dc:creator>elserj</dc:creator>
    <dc:date>2018-10-11T21:47:20Z</dc:date>
    <item>
      <title>Phoenix query call from java on larger data set fails with java.net.SocketTimeoutException: callTimeout=60000</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-query-call-from-java-on-larger-data-set-fails-with/m-p/217939#M84254</link>
      <description>&lt;P&gt;I have a table with billions of records. When I run the following query "select count(*) from table" via &lt;STRONG&gt;sqlline it is working fine&lt;/STRONG&gt;. But when I am trying count &lt;STRONG&gt;query&lt;/STRONG&gt;&lt;STRONG&gt; from java class,&lt;/STRONG&gt; I am getting timeout error.  I am using &lt;STRONG&gt;phoenix  JDBC thin driver &lt;/STRONG&gt;to connect and run the query from a java class. For a small recordset, it is working fine. I have set the following configuration in connection properties and the same configuration are available on HBase.&lt;/P&gt;&lt;PRE&gt;phoenix.query.threadPoolSize = 500
phoenix.query.queueSize = 10000
hbase.client.scanner.timeout.period= 1800000
hbase.rpc.timeout = 1800000
phoenix.query.timeoutMs = 1800000
phoenix.query.keepAliveMs = 1800000
hbase.regionserver.lease.period =1800000
hbase.client.scanner.caching =1800000&lt;/PRE&gt;&lt;P&gt;java.util.concurrent.ExecutionException: org.apache.phoenix.exception.PhoenixIOException: Failed after attempts=6, exceptions: Wed Oct 10 14:21:38 EDT 2018, null, java.net.SocketTimeoutException: callTimeout=60000, callDuration=60302: Call to host_name failed on local exception: org.apache.hadoop.hbase.ipc.CallTimeoutException: Call id=156243, waitTime=60001, operationTimeout=60000 expired. row '13908?RB??D??%?=' on table 'Table_name' at region=Table_name,\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00,1528398264217.4677856e7ec417f1e1f2f50d71b31d9c., hostname=host,16020,1538041266262, seqNum=5357&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 20:58:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-query-call-from-java-on-larger-data-set-fails-with/m-p/217939#M84254</guid>
      <dc:creator>paragpannase23</dc:creator>
      <dc:date>2018-10-11T20:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Phoenix query call from java on larger data set fails with java.net.SocketTimeoutException: callTimeout=60000</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-query-call-from-java-on-larger-data-set-fails-with/m-p/217940#M84255</link>
      <description>&lt;P&gt;"waitTime=60001, operationTimeout=60000 expired"&lt;/P&gt;&lt;P&gt;You need to include hbase-site.xml on the classpath for your application. It is obvious from the error that the hbase.rpc.timeout and phoenix.query.timeoutMs are not being respected from this error.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Oct 2018 21:47:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Phoenix-query-call-from-java-on-larger-data-set-fails-with/m-p/217940#M84255</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2018-10-11T21:47:20Z</dc:date>
    </item>
  </channel>
</rss>

