Configuring ClickHouse Connection Properties
Set connection properties in the examples of creating connections in the ClickhouseJDBCHaDemo, Demo, NativeJDBCHaDemo, and Util files. The following code sets the socket timeout interval to 60 seconds:
ClickHouseProperties clickHouseProperties = new ClickHouseProperties(); clickHouseProperties.setSocketTimeout(60000);
If sslUsed in the clickhouse-example.properties configuration file in Importing and Configuring ClickHouse Sample Projects is set to true, set the following connection properties in the examples for creating connections in the ClickhouseJDBCHaDemo, Demo, NativeJDBCHaDemo, and Util files:
clickHouseProperties.setSsl(true); clickHouseProperties.setSslMode("none");
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot