Help Center/
MapReduce Service/
Developer Guide (Normal_3.x)/
ClickHouse Development Guide (Security Mode)/
Developing a ClickHouse Application/
Configuring ClickHouse Connection Properties
Updated on 2024-08-12 GMT+08:00
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");
Parent topic: Developing a ClickHouse Application
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.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot