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
Flink 1.15 #
You can find Flink 1.15 bundled jar in ./flink-table-store-dist/target/flink-table-store-dist-0.2.1.jar
.
Hive #
To build with Hive 2.3, no special argument is needed.
To build with Hive 2.2, run the following command.
mvn clean install -Dmaven.test.skip=true -Phive-2.2
To build with Hive 2.1, run the following command.
mvn clean install -Dmaven.test.skip=true -Phive-2.1
To build with Hive 2.1 CDH 6.3, run the following command.
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.2.1.jar
.
You can find Hive connector jar in ./flink-table-store-hive/flink-table-store-hive-connector/target/flink-table-store-hive-connector-0.2.1.jar
.
Spark #
You can find Spark bundled jar in ./flink-table-store-spark/target/flink-table-store-spark-0.2.1.jar
.
Spark2 #
You can find Spark2 bundled jar in ./flink-table-store-spark2/target/flink-table-store-spark2-0.2.1.jar
.
Flink 1.14 #
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.2.1.jar
.
Note: Please do not use other connector jars (Hive, Spark), they are not available under -Pflink-1.14
.