Skip to content

Commit 7a34245

Browse files
author
yuezhang
committed
merge from master
2 parents 5a7799b + 1cc7542 commit 7a34245

File tree

212 files changed

+4866
-1622
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

212 files changed

+4866
-1622
lines changed

.github/workflows/bot.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,37 +21,45 @@ jobs:
2121
- scalaProfile: "scala-2.11"
2222
sparkProfile: "spark2.4"
2323
sparkVersion: "2.4.4"
24+
flinkProfile: "flink1.13"
2425

2526
# Spark 2.4.4, scala 2.12
2627
- scalaProfile: "scala-2.12"
2728
sparkProfile: "spark2.4"
2829
sparkVersion: "2.4.4"
30+
flinkProfile: "flink1.14"
2931

3032
# Spark 3.1.x
3133
- scalaProfile: "scala-2.12"
3234
sparkProfile: "spark3.1"
3335
sparkVersion: "3.1.0"
36+
flinkProfile: "flink1.13"
3437

3538
- scalaProfile: "scala-2.12"
3639
sparkProfile: "spark3.1"
3740
sparkVersion: "3.1.1"
41+
flinkProfile: "flink1.13"
3842

3943
- scalaProfile: "scala-2.12"
4044
sparkProfile: "spark3.1"
4145
sparkVersion: "3.1.2"
46+
flinkProfile: "flink1.14"
4247

4348
- scalaProfile: "scala-2.12"
4449
sparkProfile: "spark3.1"
4550
sparkVersion: "3.1.3"
51+
flinkProfile: "flink1.14"
4652

4753
# Spark 3.2.x
4854
- scalaProfile: "scala-2.12"
4955
sparkProfile: "spark3.2"
5056
sparkVersion: "3.2.0"
57+
flinkProfile: "flink1.13"
5158

5259
- scalaProfile: "scala-2.12"
5360
sparkProfile: "spark3.2"
5461
sparkVersion: "3.2.1"
62+
flinkProfile: "flink1.14"
5563

5664
steps:
5765
- uses: actions/checkout@v2
@@ -66,13 +74,15 @@ jobs:
6674
SCALA_PROFILE: ${{ matrix.scalaProfile }}
6775
SPARK_PROFILE: ${{ matrix.sparkProfile }}
6876
SPARK_VERSION: ${{ matrix.sparkVersion }}
77+
FLINK_PROFILE: ${{ matrix.flinkProfile }}
6978
run:
70-
mvn -T 2.5C clean install -P "$SCALA_PROFILE,$SPARK_PROFILE" -Dspark.version="$SPARK_VERSION" -DskipTests=true -Dmaven.javadoc.skip=true -B -V
79+
mvn -T 2.5C clean install -D"$SCALA_PROFILE" -D"$SPARK_PROFILE" -D"$FLINK_PROFILE" -Dspark.version="$SPARK_VERSION" -DskipTests=true -Dmaven.javadoc.skip=true -B -V
7180
- name: Quickstart Test
7281
env:
7382
SCALA_PROFILE: ${{ matrix.scalaProfile }}
7483
SPARK_PROFILE: ${{ matrix.sparkProfile }}
7584
SPARK_VERSION: ${{ matrix.sparkVersion }}
85+
FLINK_PROFILE: ${{ matrix.flinkProfile }}
7686
if: ${{ !startsWith(env.SPARK_VERSION, '3.2.') }} # skip test spark 3.2 before hadoop upgrade to 3.x
7787
run:
78-
mvn test -Punit-tests -D"$SCALA_PROFILE" -D"$SPARK_PROFILE" -Dspark.version="$SPARK_VERSION" -DfailIfNoTests=false -pl hudi-examples/hudi-examples-flink,hudi-examples/hudi-examples-java,hudi-examples/hudi-examples-spark
88+
mvn test -P "unit-tests" -D"$SCALA_PROFILE" -D"$SPARK_PROFILE" -D"$FLINK_PROFILE" -Dspark.version="$SPARK_VERSION" -DfailIfNoTests=false -pl hudi-examples/hudi-examples-flink,hudi-examples/hudi-examples-java,hudi-examples/hudi-examples-spark

docker/README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,19 @@ mvn clean pre-integration-test -DskipTests -Ddocker.compose.skip=true -Ddocker.b
5151
mvn clean pre-integration-test -DskipTests -Ddocker.compose.skip=true -Ddocker.build.skip=false -pl :hudi-hadoop-trinobase-docker -am
5252
```
5353

54-
Alternatively, you can use `docker` cli directly under `hoodie/hadoop`. Note that, you need to manually name your local
55-
image by using `-t` option to match the naming in the `pom.xml`, so that you can update the corresponding image
56-
repository in Docker Hub (detailed steps in the next section).
54+
Alternatively, you can use `docker` cli directly under `hoodie/hadoop` to build images in a faster way. If you use this
55+
approach, make sure you first build Hudi modules with `integration-tests` profile as below so that the latest Hudi jars
56+
built are copied to the corresponding Hudi docker folder, e.g., `$HUDI_DIR/docker/hoodie/hadoop/hive_base/target`, which
57+
is required to build each docker image. Otherwise, the `target/` folder can be missing and `docker` cli complains about
58+
that: `failed to compute cache key: "/target" not found: not found`.
59+
60+
```shell
61+
mvn -Pintegration-tests clean package -DskipTests
62+
```
63+
64+
Note that, to build the image with `docker` cli, you need to manually name your local image by using `-t` option to
65+
match the naming in the `pom.xml`, so that you can update the corresponding image repository in Docker Hub (detailed
66+
steps in the next section).
5767

5868
```shell
5969
# Run under hoodie/hadoop, the <tag> is optional, "latest" by default

docker/hoodie/hadoop/base/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<artifactId>hudi-hadoop-docker</artifactId>
2121
<groupId>org.apache.hudi</groupId>
22-
<version>0.11.0-SNAPSHOT</version>
22+
<version>0.12.0-SNAPSHOT</version>
2323
</parent>
2424
<modelVersion>4.0.0</modelVersion>
2525
<packaging>pom</packaging>

docker/hoodie/hadoop/base_java11/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>hudi-hadoop-docker</artifactId>
2222
<groupId>org.apache.hudi</groupId>
23-
<version>0.11.0-SNAPSHOT</version>
23+
<version>0.12.0-SNAPSHOT</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626
<packaging>pom</packaging>

docker/hoodie/hadoop/datanode/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<artifactId>hudi-hadoop-docker</artifactId>
2121
<groupId>org.apache.hudi</groupId>
22-
<version>0.11.0-SNAPSHOT</version>
22+
<version>0.12.0-SNAPSHOT</version>
2323
</parent>
2424
<modelVersion>4.0.0</modelVersion>
2525
<packaging>pom</packaging>

docker/hoodie/hadoop/historyserver/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<artifactId>hudi-hadoop-docker</artifactId>
2121
<groupId>org.apache.hudi</groupId>
22-
<version>0.11.0-SNAPSHOT</version>
22+
<version>0.12.0-SNAPSHOT</version>
2323
</parent>
2424
<modelVersion>4.0.0</modelVersion>
2525
<packaging>pom</packaging>

docker/hoodie/hadoop/hive_base/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<artifactId>hudi-hadoop-docker</artifactId>
2121
<groupId>org.apache.hudi</groupId>
22-
<version>0.11.0-SNAPSHOT</version>
22+
<version>0.12.0-SNAPSHOT</version>
2323
</parent>
2424
<modelVersion>4.0.0</modelVersion>
2525
<packaging>pom</packaging>

docker/hoodie/hadoop/namenode/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<artifactId>hudi-hadoop-docker</artifactId>
2121
<groupId>org.apache.hudi</groupId>
22-
<version>0.11.0-SNAPSHOT</version>
22+
<version>0.12.0-SNAPSHOT</version>
2323
</parent>
2424
<modelVersion>4.0.0</modelVersion>
2525
<packaging>pom</packaging>

docker/hoodie/hadoop/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<artifactId>hudi</artifactId>
2121
<groupId>org.apache.hudi</groupId>
22-
<version>0.11.0-SNAPSHOT</version>
22+
<version>0.12.0-SNAPSHOT</version>
2323
<relativePath>../../../pom.xml</relativePath>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>

docker/hoodie/hadoop/prestobase/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<parent>
2121
<artifactId>hudi-hadoop-docker</artifactId>
2222
<groupId>org.apache.hudi</groupId>
23-
<version>0.11.0-SNAPSHOT</version>
23+
<version>0.12.0-SNAPSHOT</version>
2424
</parent>
2525
<modelVersion>4.0.0</modelVersion>
2626
<packaging>pom</packaging>

0 commit comments

Comments
 (0)