ClickHouse/spark-clickhouse-connector
소개
Spark ClickHouse Connector build on DataSourceV2 API
개발 도구측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalSpark ClickHouse Connector
Build on Apache Spark DataSourceV2 API.

Usage
See the documentation for how to use this connector.
Requirements
- Java 8 or 17
- Scala 2.12 or 2.13
- Apache Spark 3.3, 3.4, 3.5, 4.0, 4.1, or 4.2
Notes:
- As of 0.5.0, this connector switches from ClickHouse raw gRPC Client to ClickHouse Official Java Client, which brings HTTP protocol support, extends the range of supported versions of ClickHouse Server.
- Since 0.6.0, HTTP becomes the default protocol.
- Since 0.7.0, gRPC is deprecated and not recommended, it may be removed in the future.
- Since 0.8.0, gRPC is removed.
- Since 0.8.0, the project groupId is rename from
com.github.housepowertocom.clickhouse.spark, and the classxenon.clickhouse.ClickHouseCatalogis renamed tocom.clickhouse.spark.ClickHouseCatalog
Compatible Matrix
| Version | Compatible Spark Versions | ClickHouse JDBC version |
|---|---|---|
| main | Spark 3.3, 3.4, 3.5, 4.0, 4.1, 4.2 | 0.11.1 |
| 0.10.2 | Spark 3.3, 3.4, 3.5, 4.0 | 0.9.5 |
| 0.9.0 | Spark 3.3, 3.4, 3.5, 4.0 | 0.9.4 |
| 0.8.1 | Spark 3.3, 3.4, 3.5 | 0.6.3 |
| 0.7.3 | Spark 3.3, 3.4 | 0.4.6 |
| 0.6.0 | Spark 3.3 | 0.3.2-patch11 |
| 0.5.0 | Spark 3.2, 3.3 | 0.3.2-patch11 |
| 0.4.0 | Spark 3.2, 3.3 | Not depend on |
| 0.3.0 | Spark 3.2, 3.3 | Not depend on |
| 0.2.1 | Spark 3.2 | Not depend on |
| 0.1.2 | Spark 3.2 | Not depend on |
Build
Build w/o test
./gradlew clean build -x test
Test
The project leverage Testcontainers and Docker Compose to do integration tests, you should install Docker and Docker Compose before running test, and check more details on Testcontainers document if you'd like to run test with remote Docker daemon.
Run all test
./gradlew clean test
Run all test w/ Spark 3.3 and Scala 2.13
./gradlew clean test -Dspark_binary_version=3.3 -Dscala_binary_version=2.13
Run single test
./gradlew test --tests=ConvertDistToLocalWriteSuite
Test against custom ClickHouse image
CLICKHOUSE_IMAGE=custom-org/clickhouse-server:custom-tag ./gradlew test
Anonymous Usage Statistics
The connector sends anonymous usage events to ClickHouse; opt out with
spark.clickhouse.sendAnonymousUsageStats=false or the DO_NOT_TRACK environment variable.
관련 프로젝트 살펴보기
불러오는 중…