Get the Library
Download the Library
The name pattern of binary jar is
clickhouse-spark-runtime-${spark_binary_version}_${scala_binary_version}-${version}.jar
you can find all available released jars under Maven Central Repository and all daily build SNAPSHOT jars under Sonatype OSS Snapshots Repository.
Import as Dependency
Gradle
dependencies {
implementation("com.github.housepower:clickhouse-spark-runtime-3.4_2.12:0.7.3")
implementation("com.clickhouse:clickhouse-jdbc:0.4.6:all") { transitive = false }
}
Add the following repository if you want to use SNAPSHOT version.
repositries {
maven { url = "https://oss.sonatype.org/content/repositories/snapshots" }
}
Maven
<dependency>
<groupId>com.github.housepower</groupId>
<artifactId>clickhouse-spark-runtime-3.4_2.12</artifactId>
<version>0.7.3</version>
</dependency>
<dependency>
<groupId>com.clickhouse</groupId>
<artifactId>clickhouse-jdbc</artifactId>
<classifier>all</classifier>
<version>0.4.6</version>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
Add the following repository if you want to use SNAPSHOT version.
<repositories>
<repository>
<id>sonatype-oss-snapshots</id>
<name>Sonatype OSS Snapshots Repository</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
</repositories>