Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 0 additions & 63 deletions .github/workflows/core-hadoop2-ci.yml

This file was deleted.

20 changes: 5 additions & 15 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ jobs:
name: Push Amoro Docker Image to Docker Hub
runs-on: ubuntu-latest
if: ${{ startsWith(github.repository, 'apache/') }}
strategy:
matrix:
hadoop: [ "v2", "v3" ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
Expand All @@ -65,12 +62,10 @@ jobs:
images: |
name=apache/amoro
tags: |
type=ref,event=branch,enable=${{ matrix.hadoop == 'v3' }},suffix=-snapshot
type=ref,event=branch,enable=${{ matrix.hadoop == 'v2' }},suffix=-snapshot-hadoop2
type=raw,enable=${{ matrix.hadoop == 'v3' && startsWith(github.ref, 'refs/tags/v') }},value=latest
type=semver,event=tag,enable=${{ matrix.hadoop == 'v3' }},pattern={{version}}
type=semver,event=tag,enable=${{ matrix.hadoop == 'v3' }},pattern={{version}}, suffix=-hadoop3
type=semver,event=tag,enable=${{ matrix.hadoop == 'v2' }},pattern={{version}}, suffix=-hadoop2
type=ref,event=branch,suffix=-snapshot
type=raw,enable=${{ startsWith(github.ref, 'refs/tags/v') }},value=latest
type=semver,event=tag,pattern={{version}}
type=semver,event=tag,pattern={{version}}, suffix=-hadoop3

- name: Print tags
run: echo '${{ steps.meta.outputs.tags }}'
Expand All @@ -81,13 +76,8 @@ jobs:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set Maven Build Properties
if: ${{ matrix.hadoop == 'v2' }}
run: |
echo "MVN_HADOOP=-Phadoop2" >> $GITHUB_ENV

- name: Build dist module with Maven
run: ./mvnw clean package -pl 'dist' -am -e ${MVN_HADOOP} -DskipTests -B -ntp -Psupport-all-formats -Pno-extended-disk-storage -Pno-plugin-bin
run: ./mvnw clean package -pl 'dist' -am -e -DskipTests -B -ntp -Psupport-all-formats -Pno-extended-disk-storage -Pno-plugin-bin

- name: Build and Push Amoro Docker Image
uses: docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a # v7.3.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/trino-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
run: ./mvnw validate -P format-mixed-format-trino

- name: Build trino module with Maven
run: ./mvnw clean install -pl 'amoro-format-mixed/amoro-mixed-trino' -am -B -P hadoop2,format-mixed-format-trino,build-mixed-format-trino
run: ./mvnw clean install -pl 'amoro-format-mixed/amoro-mixed-trino' -am -B -P format-mixed-format-trino,build-mixed-format-trino

- name: Code coverage
uses: codecov/codecov-action@v3
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ UPDATE=1 ./mvnw test -pl amoro-ams -am -Dtest=ConfigurationsTest
pnpm install && pnpm dev:mock
```

Key Maven profiles: `-Phadoop2` (Hadoop 2.x), `-Pspark-3.3`/`-Pspark-3.5`, `-Psupport-all-formats`, `-Pbuild-mixed-format-trino` (requires JDK 17).
Key Maven profiles: `-Pspark-3.3`/`-Pspark-3.5`, `-Psupport-all-formats`, `-Pbuild-mixed-format-trino` (requires JDK 17).

## Conventions & Patterns

Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
<a href="https://github.com/apache/amoro/actions/workflows/core-hadoop3-ci.yml">
<img src="https://github.com/apache/amoro/actions/workflows/core-hadoop3-ci.yml/badge.svg" />
</a>
<a href="https://github.com/apache/amoro/actions/workflows/core-hadoop2-ci.yml">
<img src="https://github.com/apache/amoro/actions/workflows/core-hadoop2-ci.yml/badge.svg" />
</a>
<a href="https://github.com/apache/amoro/actions/workflows/trino-ci.yml">
<img src="https://github.com/apache/amoro/actions/workflows/trino-ci.yml/badge.svg" />
</a>
Expand Down Expand Up @@ -123,7 +120,6 @@ Amoro is built using Maven with JDK 11 and 17(required for `amoro-format-mixed/a
* Build and skip dashboard: `./mvnw clean package -Pskip-dashboard-build`
* Build and disable disk storage, RocksDB will NOT be introduced to avoid memory overflow: `./mvnw clean package -DskipTests -Pno-extented-disk-storage`
* Build and enable aliyun-oss-sdk: `./mvnw clean package -DskipTests -Paliyun-oss-sdk`
* Build with hadoop 2.x(the default is 3.x) dependencies: `./mvnw clean package -DskipTests -Phadoop2`
* Specify Flink version for Flink optimizer(the default is 1.20.0): `./mvnw clean package -DskipTests -Dflink-optimizer.flink-version=1.20.0`
* If the version of Flink is below 1.15.0, you also need to add the `-Pflink-optimizer-pre-1.15` parameter: `./mvnw clean package -DskipTests -Pflink-optimizer-pre-1.15 -Dflink-optimizer.flink-version=1.14.6`
* Specify Spark version for Spark optimizer(the default is 3.5.7): `./mvnw clean package -DskipTests -Dspark.version=3.5.7`
Expand Down
4 changes: 2 additions & 2 deletions amoro-ams/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -359,12 +359,12 @@

<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>${hadoop-client-api.artifact}</artifactId>
<artifactId>hadoop-client-api</artifactId>
</dependency>

<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>${hadoop-client-runtime.artifact}</artifactId>
<artifactId>hadoop-client-runtime</artifactId>
</dependency>

<dependency>
Expand Down
4 changes: 2 additions & 2 deletions amoro-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,12 @@

<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>${hadoop-client-api.artifact}</artifactId>
<artifactId>hadoop-client-api</artifactId>
</dependency>

<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>${hadoop-client-runtime.artifact}</artifactId>
<artifactId>hadoop-client-runtime</artifactId>
</dependency>

<dependency>
Expand Down
4 changes: 2 additions & 2 deletions amoro-format-iceberg/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@

<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>${hadoop-client-api.artifact}</artifactId>
<artifactId>hadoop-client-api</artifactId>
</dependency>

<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>${hadoop-client-runtime.artifact}</artifactId>
<artifactId>hadoop-client-runtime</artifactId>
</dependency>

<dependency>
Expand Down
21 changes: 21 additions & 0 deletions amoro-optimizer/amoro-optimizer-flink/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,27 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-image-hadoop-dependencies</id>
<goals>
<goal>copy-dependencies</goal>
</goals>
<phase>package</phase>
<configuration>
<includeGroupIds>org.apache.hadoop</includeGroupIds>
<includeArtifactIds>hadoop-client-api,hadoop-client-runtime</includeArtifactIds>
<includeScope>runtime</includeScope>
<outputDirectory>${project.build.directory}/docker-hadoop</outputDirectory>
<stripVersion>true</stripVersion>
<overWriteReleases>true</overWriteReleases>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion dev/dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function check_diff() {
fi
}

HADOOP_SPARK_PROFILES=('hadoop2' 'spark-3.5')
HADOOP_SPARK_PROFILES=('spark-3.5')
for HADOOP_SPARK_PROFILE in "${HADOOP_SPARK_PROFILES[@]}";
do
HADOOP_MAJOR_VERSION=$("$MVN" help:evaluate -Dexpression=hadoop.version -P"$HADOOP_SPARK_PROFILE" 2>/dev/null \
Expand Down
Loading
Loading