Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 06-28-2016 05:37 AM
I am trying to run a phoenix query which has to fetch about 1.5 millions rows. the query times out.
Is there any config parameter, i need to set up. Any thoughts would be of great help
SELECT COUNT(1) FROM TABLE +------------------------------------------+ | COUNT(1) | +------------------------------------------+ java.lang.RuntimeException: java.sql.SQLTimeoutException: Operation timed out at sqlline.IncrementalRows.hasNext(IncrementalRows.java:73) at sqlline.TableOutputFormat.print(TableOutputFormat.java:33) at sqlline.SqlLine.print(SqlLine.java:1653) at sqlline.Commands.execute(Commands.java:833) at sqlline.Commands.sql(Commands.java:732) at sqlline.SqlLine.dispatch(SqlLine.java:808) at sqlline.SqlLine.begin(SqlLine.java:681) at sqlline.SqlLine.start(SqlLine.java:398) at sqlline.SqlLine.main(SqlLine.java:292)
Created 06-28-2016 06:20 AM
@ARUNKUMAR RAMASAMY By default the query time out is 600000 (10mins) . You can increase phoenix.query.timeoutMs and re-run the query.
Created 06-28-2016 06:20 AM
@ARUNKUMAR RAMASAMY By default the query time out is 600000 (10mins) . You can increase phoenix.query.timeoutMs and re-run the query.
Created 06-28-2016 06:30 AM
Thanks @Sandeep Nemuri It seems by default the query timeout is 1.5 mins and i increased it to 5 mins and it worked fine.
Created 06-28-2016 06:36 AM
@ARUNKUMAR RAMASAMY Glad it helped in resolving your issue. Please accept the answer to close this thread.
Created 01-27-2022 01:11 PM
Hi sandyy006,
I am creating connections in this way:
Connection connection = DriverManager.getConnection("jdbc:phoenix:thin:url=http://localhost:8765;serialization=PROTOBUF"
but how the value for phoenix.query.timeoutMs is read by the driver?
Thank you very much in advanced!