Build
This documentation is for an unreleased version of Apache Flink Table Store. We recommend you use the latest stable version.

Build from Source #

In order to build the Flink Table Store you need the source code. Either download the source of a release or clone the git repository.

In addition, you need Maven 3 and a JDK (Java Development Kit). Flink Table Store requires Java 8 to build.

To clone from git, enter:

git clone https://github.com/apache/flink-table-store.git

The simplest way of building Table Store is by running:

mvn clean install -DskipTests

You can find Flink 1.16 bundled jar in ./flink-table-store-dist/target/flink-table-store-dist-0.3-SNAPSHOT.jar.

Hive #

Version Command
2.3 mvn clean install -Dmaven.test.skip=true
3.1 mvn clean install -Dmaven.test.skip=true -Phive-3.1
2.2 mvn clean install -Dmaven.test.skip=true -Phive-2.2
2.1 mvn clean install -Dmaven.test.skip=true -Phive-2.1
2.1 CDH 6.3 mvn clean install -Dmaven.test.skip=true -Phive-2.1-cdh-6.3

You can find Hive catalog jar in ./flink-table-store-hive/flink-table-store-hive-catalog/target/flink-table-store-hive-catalog-0.3-SNAPSHOT.jar.

You can find Hive connector jar in ./flink-table-store-hive/flink-table-store-hive-connector/target/flink-table-store-hive-connector-0.3-SNAPSHOT.jar.

Spark #

You can find Spark bundled jar in ./flink-table-store-spark/target/flink-table-store-spark-0.3-SNAPSHOT.jar.

Spark2 #

You can find Spark2 bundled jar in ./flink-table-store-spark2/target/flink-table-store-spark2-0.3-SNAPSHOT.jar.

Running:

mvn clean install -Dmaven.test.skip=true -Pflink-1.15

You can find Flink 1.15 bundled jar in ./flink-table-store-dist/target/flink-table-store-dist-0.3-SNAPSHOT.jar.

Running:

mvn clean install -Dmaven.test.skip=true -Pflink-1.14

You can find Flink 1.14 bundled jar in ./flink-table-store-dist/target/flink-table-store-dist-0.3-SNAPSHOT.jar.

Note: Please do not use other connector jars (Hive, Spark), they are not available under -Pflink-1.14.