Add the connector’s dependencies
Azure Synapse supports three levels of packages maintenance:- Default packages
- Spark pool level
- Session level
Follow the Manage libraries for Apache Spark pools guide and add the following required dependencies to your Spark application
clickhouse-spark-runtime-{spark_version}_{scala_version}-{connector_version}.jar- official mavenclickhouse-jdbc-{java_client_version}-all.jar- official maven
Add ClickHouse as a catalog
There are a variety of ways to add Spark configs to your session:- Custom configuration file to load with your session
- Add configurations via Azure Synapse UI
- Add configurations in your Synapse notebook
When working with ClickHouse Cloud Please make sure to set the required Spark settings.
Setup verification
To verify that the dependencies and configurations were set successfully, please visit your session’s Spark UI, and go to yourEnvironment tab.
There, look for your ClickHouse related settings: