From 9124f860c7ba81a5c0090cfcf93e02e80bd04a38 Mon Sep 17 00:00:00 2001 From: Vipamp Date: Sun, 22 Dec 2024 17:18:38 +0800 Subject: [PATCH 1/3] [dist] generate release-bin tar file --- fluss-dist/pom.xml | 12 ++ fluss-dist/src/main/assemblies/assembly.xml | 157 ++++++++++++++++++++ 2 files changed, 169 insertions(+) create mode 100644 fluss-dist/src/main/assemblies/assembly.xml diff --git a/fluss-dist/pom.xml b/fluss-dist/pom.xml index e912c801..f4b72b50 100644 --- a/fluss-dist/pom.xml +++ b/fluss-dist/pom.xml @@ -245,6 +245,18 @@ + + assembly + package + + single + + + + src/main/assemblies/assembly.xml + + + diff --git a/fluss-dist/src/main/assemblies/assembly.xml b/fluss-dist/src/main/assemblies/assembly.xml new file mode 100644 index 00000000..ad6f8c83 --- /dev/null +++ b/fluss-dist/src/main/assemblies/assembly.xml @@ -0,0 +1,157 @@ + + + dist + + dir + tar.gz + + + true + fluss-${project.version}-bin + + + + lib + false + false + false + true + true + + + org.apache.logging.log4j:log4j-api + org.apache.logging.log4j:log4j-core + org.apache.logging.log4j:log4j-slf4j-impl + org.apache.logging.log4j:log4j-1.2-api + + + + + + + + ../LICENSE + + 0644 + + + + + ../NOTICE + + 0644 + + + + + + ../fluss-server/target/fluss-server-${project.version}.jar + lib + fluss-server-${project.version}.jar + 0644 + + + + + ../fluss-lakehouse/fluss-lakehouse-cli/target/fluss-lakehouse-cli-${project.version}.jar + opt + fluss-lakehouse-cli-${project.version}.jar + 0644 + + + + ../fluss-lakehouse/fluss-lakehouse-paimon/target/fluss-lakehouse-paimon-${project.version}.jar + + opt + fluss-lakehouse-paimon-${project.version}.jar + 0644 + + + + + + + ../fluss-filesystems/fluss-fs-hadoop/target/fluss-fs-hadoop-${project.version}-with-dependencies.jar + + plugins/hdfs/ + fluss-fs-hadoop-${project.version}.jar + 0644 + + + + ../fluss-filesystems/fluss-fs-oss/target/fluss-fs-oss-${project.version}.jar + plugins/oss/ + fluss-fs-oss-${project.version}.jar + 0644 + + + + ../fluss-filesystems/fluss-fs-s3/target/fluss-fs-s3-${project.version}.jar + plugins/s3/ + fluss-fs-s3-${project.version}.jar + 0644 + + + + + ../fluss-metrics/fluss-metrics-prometheus/target/fluss-metrics-prometheus-${project.version}.jar + + plugins/prometheus/ + fluss-metrics-prometheus-${project.version}.jar + 0644 + + + + ../fluss-metrics/fluss-metrics-jmx/target/fluss-metrics-jmx-${project.version}.jar + plugins/jmx/ + fluss-metrics-jmx-${project.version}.jar + 0644 + + + + src/main/resources/server.yaml + conf + 0644 + + + + + + + src/main/resources/bin + bin + 0755 + + + + + src/main/resources/conf + conf + 0644 + + + + + src/main/resources/ + log + 0644 + + **/* + + + + From 204554a44d5004a52e37215d7e76407ea9405d6b Mon Sep 17 00:00:00 2001 From: Vipamp Date: Wed, 25 Dec 2024 23:59:14 +0800 Subject: [PATCH 2/3] [dist] generate release-bin tar file --- fluss-dist/pom.xml | 4 +- fluss-dist/src/main/assemblies/assembly.xml | 157 -------------------- fluss-dist/src/main/assemblies/tgz.xml | 34 +++++ website/docs/dev/building.md | 5 +- 4 files changed, 40 insertions(+), 160 deletions(-) delete mode 100644 fluss-dist/src/main/assemblies/assembly.xml create mode 100644 fluss-dist/src/main/assemblies/tgz.xml diff --git a/fluss-dist/pom.xml b/fluss-dist/pom.xml index f4b72b50..1e28dce4 100644 --- a/fluss-dist/pom.xml +++ b/fluss-dist/pom.xml @@ -246,14 +246,14 @@ - assembly + tgz package single - src/main/assemblies/assembly.xml + src/main/assemblies/tgz.xml diff --git a/fluss-dist/src/main/assemblies/assembly.xml b/fluss-dist/src/main/assemblies/assembly.xml deleted file mode 100644 index ad6f8c83..00000000 --- a/fluss-dist/src/main/assemblies/assembly.xml +++ /dev/null @@ -1,157 +0,0 @@ - - - dist - - dir - tar.gz - - - true - fluss-${project.version}-bin - - - - lib - false - false - false - true - true - - - org.apache.logging.log4j:log4j-api - org.apache.logging.log4j:log4j-core - org.apache.logging.log4j:log4j-slf4j-impl - org.apache.logging.log4j:log4j-1.2-api - - - - - - - - ../LICENSE - - 0644 - - - - - ../NOTICE - - 0644 - - - - - - ../fluss-server/target/fluss-server-${project.version}.jar - lib - fluss-server-${project.version}.jar - 0644 - - - - - ../fluss-lakehouse/fluss-lakehouse-cli/target/fluss-lakehouse-cli-${project.version}.jar - opt - fluss-lakehouse-cli-${project.version}.jar - 0644 - - - - ../fluss-lakehouse/fluss-lakehouse-paimon/target/fluss-lakehouse-paimon-${project.version}.jar - - opt - fluss-lakehouse-paimon-${project.version}.jar - 0644 - - - - - - - ../fluss-filesystems/fluss-fs-hadoop/target/fluss-fs-hadoop-${project.version}-with-dependencies.jar - - plugins/hdfs/ - fluss-fs-hadoop-${project.version}.jar - 0644 - - - - ../fluss-filesystems/fluss-fs-oss/target/fluss-fs-oss-${project.version}.jar - plugins/oss/ - fluss-fs-oss-${project.version}.jar - 0644 - - - - ../fluss-filesystems/fluss-fs-s3/target/fluss-fs-s3-${project.version}.jar - plugins/s3/ - fluss-fs-s3-${project.version}.jar - 0644 - - - - - ../fluss-metrics/fluss-metrics-prometheus/target/fluss-metrics-prometheus-${project.version}.jar - - plugins/prometheus/ - fluss-metrics-prometheus-${project.version}.jar - 0644 - - - - ../fluss-metrics/fluss-metrics-jmx/target/fluss-metrics-jmx-${project.version}.jar - plugins/jmx/ - fluss-metrics-jmx-${project.version}.jar - 0644 - - - - src/main/resources/server.yaml - conf - 0644 - - - - - - - src/main/resources/bin - bin - 0755 - - - - - src/main/resources/conf - conf - 0644 - - - - - src/main/resources/ - log - 0644 - - **/* - - - - diff --git a/fluss-dist/src/main/assemblies/tgz.xml b/fluss-dist/src/main/assemblies/tgz.xml new file mode 100644 index 00000000..77eb70a0 --- /dev/null +++ b/fluss-dist/src/main/assemblies/tgz.xml @@ -0,0 +1,34 @@ + + + tgt + + tgz + + fluss-${project.version} + + + ${project.basedir}/target/fluss-${project.version}-bin/fluss-${project.version} + / + + **/* + + + + \ No newline at end of file diff --git a/website/docs/dev/building.md b/website/docs/dev/building.md index 96c788e8..5ff24d03 100644 --- a/website/docs/dev/building.md +++ b/website/docs/dev/building.md @@ -33,4 +33,7 @@ To speed up the build you can: The build script will be: ```bash mvn clean install -DskipTests -T 1C -``` \ No newline at end of file +``` +After building success, there are two ways for you to use. +- For local testing, it's recommend to use directory `${project}/build-target` in project. +- For deploying distributed cluster, it's recommend to use binary file named `fluss-xxx-bin.tgz`, the file is in directory `${project}/fluss-dist/target`. \ No newline at end of file From ac2f3c1dbf6fb3499ab33dc5467dcbd2d6c81eec Mon Sep 17 00:00:00 2001 From: Vipamp Date: Thu, 26 Dec 2024 00:02:25 +0800 Subject: [PATCH 3/3] [dist] generate release-bin tar file --- website/docs/dev/building.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/website/docs/dev/building.md b/website/docs/dev/building.md index 5ff24d03..368bc68c 100644 --- a/website/docs/dev/building.md +++ b/website/docs/dev/building.md @@ -34,6 +34,7 @@ The build script will be: ```bash mvn clean install -DskipTests -T 1C ``` -After building success, there are two ways for you to use. + +**NOTE**: - For local testing, it's recommend to use directory `${project}/build-target` in project. - For deploying distributed cluster, it's recommend to use binary file named `fluss-xxx-bin.tgz`, the file is in directory `${project}/fluss-dist/target`. \ No newline at end of file