Help Center/
MapReduce Service/
Developer Guide (Normal_3.x)/
ClickHouse Development Guide (Normal Mode)/
Sample Code/
Setting Properties
Updated on 2022-09-14 GMT+08:00
Setting Properties
Set the connection properties. In the following sample code, the socket timeout interval is set to 60s.
ClickHouseProperties clickHouseProperties = new ClickHouseProperties(); clickHouseProperties.setSocketTimeout(60000);
If sslUsed in the clickhouse-example.properties file in Configuring and Importing a Sample Project is set to true, set the following connection properties:
clickHouseProperties.setSsl(true); clickHouseProperties.setSslMode("none");
Parent topic: Sample Code
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.