-
Notifications
You must be signed in to change notification settings - Fork 168
Issue#1307 json string read write #1310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
c7ddeab
b48450d
284f8f7
2637e88
e40bb9c
fc1b936
ffdc6ea
102a6ee
c8f91f1
ae32872
8fdde32
fcee2bb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,7 +43,6 @@ | |
| * [Using Pre-existing Training Data](setup/training/addOwnTrainingData.md) | ||
| * [Updating Labeled Pairs](updatingLabels.md) | ||
| * [Documenting The Training Data](stepbystep/createtrainingdata/generatingdocumentation.md) | ||
| * [Exporting Labeled Data](setup/training/exportLabeledData.md) | ||
| * [Model Difference](stepbystep/createtrainingdata/modeldiff.md) | ||
| * [Ensuring Scalability](verifyBlocking.md) | ||
| * [Building And Saving The Model](setup/train.md) | ||
|
Comment on lines
43
to
48
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| # ClickHouse | ||
|
|
||
| ClickHouse Pipe Definitions | ||
| JSON settings for reading and writing data using the ClickHouse JDBC driver. | ||
|
|
||
| ## ClickHouse Input (Reading) | ||
|
|
||
| ```json | ||
| "data": [ | ||
| { | ||
| "name": "clickhouse_input", | ||
| "format": "jdbc", | ||
| "props": { | ||
| "url": "jdbc:clickhouse:https://<HOST>:<PORT>/<DATABASE>?ssl=true", | ||
| "driver": "com.clickhouse.jdbc.ClickHouseDriver", | ||
| "user": "<USERNAME>", | ||
| "password": "<PASSWORD>", | ||
| "dbtable": "<INPUT_TABLE_NAME>" | ||
| } | ||
| } | ||
| ] | ||
| ``` | ||
|
|
||
| ## ClickHouse Output (Writing) | ||
|
|
||
| ```json | ||
| "output": [ | ||
| { | ||
| "name": "clickhouse_output", | ||
| "format": "jdbc", | ||
| "props": { | ||
| "url": "jdbc:clickhouse:https://<HOST>:<PORT>/<DATABASE>?ssl=true", | ||
| "driver": "com.clickhouse.jdbc.ClickHouseDriver", | ||
| "user": "<USERNAME>", | ||
| "password": "<PASSWORD>", | ||
| "dbtable": "<OUTPUT_TABLE_NAME>", | ||
| "saveMode": "append" | ||
| } | ||
| } | ||
| ] | ||
| ``` | ||
|
|
||
| ## Implementation Steps | ||
|
|
||
| ### Add the Driver Jar | ||
| Download the `clickhouse-jdbc-0.9.8-all.jar` and add its path to `config/zingg.conf` to ensure Spark can load the driver: | ||
|
|
||
| ```properties | ||
| spark.jars=/path/to/clickhouse-jdbc-0.9.8-all.jar | ||
| ``` | ||
|
|
||
| ### Port | ||
| Use port `8443` for ClickHouse Cloud (HTTPS) or `8123` for local HTTP instances. |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Docker base image is still
apache/spark:3.5.0-python3, but the downloaded Zingg distribution is the...-spark-3.6.0.tar.gzbuild. Mixing a Spark 3.6 build with a Spark 3.5 runtime can lead to binary incompatibilities at runtime. Please align these by either updating the base image to Spark 3.6 (if intended) or downloading the Spark 3.5 build of the Zingg tarball.