Requirements
- Java JDK 17 (https://openjdk.java.net/projects/jdk/11/)
- Maven (mvn) (https://maven.apache.org/download.cgi)
- Docker and Docker-compose
Install JDK(For Mac)
brew install openjdk@17
export JAVA_HOME=/opt/homebrew/Cellar/openjdk@17/17.0.11/libexec/openjdk.jdk/Contents/Home/
mvn -v
# verify it's actual openjdk 17 used and continue with steps
- Clone the ClickHouse Sink connector repository:
git clone [email protected]:Altinity/clickhouse-sink-connector.git
- Build the ClickHouse Sink connector Library:
This builds the requirement for sink connector lightweight
<sink-connector-library-version>0.0.8</sink-connector-library-version>
cd sink-connector
mvn install -DskipTests=true
- Build the ClickHouse Lightweight connector:
cd ../sink-connector-lightweight
mvn install -DskipTests=true
The JAR file will be created in the target
directory.