This is an automated email from the ASF dual-hosted git repository. github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/dev/pr-13303-f1ab36f0423c8aa17766959dfd6c6b3f5bc1426a in repository https://gitbox.apache.org/repos/asf/seatunnel.git
commit aaa9e8871b6a1d33f2e2ee1a7c03977f26a91978 Author: zhiweiniu <[email protected]> AuthorDate: Thu Nov 19 06:44:47 2026 +0000 [Fix][Build] Remove incomplete standalone Edge Agent source archive (#13303) --- .rat-excludes | 31 ++++++++++++ docs/en/edge-agent/download.md | 9 ++-- docs/zh/edge-agent/download.md | 9 +++- seatunnel-dist/pom.xml | 28 ---------- .../src/main/assembly/assembly-edge-agent-src.xml | 59 ---------------------- seatunnel-edge-agent/README.md | 37 ++++---------- 6 files changed, 55 insertions(+), 118 deletions(-) diff --git a/.rat-excludes b/.rat-excludes new file mode 100644 index 0000000000..b96ff08de3 --- /dev/null +++ b/.rat-excludes @@ -0,0 +1,31 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# These are verbatim CDDL license documents for javax.annotation-api and +# javax.servlet-api, retained for the binary distribution. +# RAT reports the license text itself as "Unapproved license"; these documents +# contain no third-party implementation code. Exclude only these license texts, +# not the corresponding dependency code. +# Keep their original contents. Dependency licensing is recorded in +# seatunnel-dist/release-docs/LICENSE. +seatunnel-dist/release-docs/licenses/LICENSE-javax-annootation-api.txt +seatunnel-dist/release-docs/licenses/LICENSE-javax.servlet-api.txt + +# Project metadata and Markdown documentation are excluded by the existing +# .licenserc.yaml policy. List only the paths reported in the ATR review. +# Exclude Git submodule metadata and Markdown documentation. +.gitmodules +*.md +**/*.md \ No newline at end of file diff --git a/docs/en/edge-agent/download.md b/docs/en/edge-agent/download.md index 0ba59c2460..701e02367f 100644 --- a/docs/en/edge-agent/download.md +++ b/docs/en/edge-agent/download.md @@ -40,14 +40,17 @@ Throughout the deployment guides, EDGE_AGENT_HOME means this install root. The l ## Step 3: Build from source -From the SeaTunnel source repository: +With a JDK installed, download `apache-seatunnel-<version>-src.tar.gz` from the [SeaTunnel download page](https://seatunnel.apache.org/download), then extract and build: ```shell -git clone https://github.com/apache/seatunnel.git -cd seatunnel +export version="<seatunnel-version>" +tar -xzf "apache-seatunnel-${version}-src.tar.gz" +cd "apache-seatunnel-${version}-src" ./mvnw clean package -pl seatunnel-dist -am -DskipTests -Dskip.spotless=true ``` +For a Git checkout, run the Maven command above from the repository root. + Binary artifact (after a successful build): ```text diff --git a/docs/zh/edge-agent/download.md b/docs/zh/edge-agent/download.md index cc3c7f1074..b2c2de58c0 100644 --- a/docs/zh/edge-agent/download.md +++ b/docs/zh/edge-agent/download.md @@ -40,12 +40,17 @@ cd "apache-seatunnel-edge-agent-${version}" ## 步骤 3:源码构建 +安装 JDK,从 [SeaTunnel 下载页](https://seatunnel.apache.org/download) 下载 `apache-seatunnel-<version>-src.tar.gz`,然后解压并构建: + ```shell -git clone https://github.com/apache/seatunnel.git -cd seatunnel +export version="<seatunnel-version>" +tar -xzf "apache-seatunnel-${version}-src.tar.gz" +cd "apache-seatunnel-${version}-src" ./mvnw clean package -pl seatunnel-dist -am -DskipTests -Dskip.spotless=true ``` +如果使用 Git 仓库,在仓库根目录执行上面的 Maven 命令。 + 构建产物: ```text diff --git a/seatunnel-dist/pom.xml b/seatunnel-dist/pom.xml index c9f2dbdcb5..b4a0bd0ffd 100644 --- a/seatunnel-dist/pom.xml +++ b/seatunnel-dist/pom.xml @@ -89,20 +89,6 @@ <appendAssemblyId>true</appendAssemblyId> </configuration> </execution> - <execution> - <id>edge-agent-src</id> - <goals> - <goal>single</goal> - </goals> - <phase>package</phase> - <configuration> - <descriptors> - <descriptor>src/main/assembly/assembly-edge-agent-src.xml</descriptor> - </descriptors> - <finalName>apache-seatunnel-edge-agent-${project.version}</finalName> - <appendAssemblyId>true</appendAssemblyId> - </configuration> - </execution> </executions> </plugin> </plugins> @@ -1564,20 +1550,6 @@ <appendAssemblyId>true</appendAssemblyId> </configuration> </execution> - <execution> - <id>edge-agent-src</id> - <goals> - <goal>single</goal> - </goals> - <phase>package</phase> - <configuration> - <descriptors> - <descriptor>src/main/assembly/assembly-edge-agent-src.xml</descriptor> - </descriptors> - <finalName>apache-seatunnel-edge-agent-${project.version}</finalName> - <appendAssemblyId>true</appendAssemblyId> - </configuration> - </execution> </executions> </plugin> </plugins> diff --git a/seatunnel-dist/src/main/assembly/assembly-edge-agent-src.xml b/seatunnel-dist/src/main/assembly/assembly-edge-agent-src.xml deleted file mode 100644 index 9100ba338e..0000000000 --- a/seatunnel-dist/src/main/assembly/assembly-edge-agent-src.xml +++ /dev/null @@ -1,59 +0,0 @@ -<!-- - ~ Licensed to the Apache Software Foundation (ASF) under one or more - ~ contributor license agreements. See the NOTICE file distributed with - ~ this work for additional information regarding copyright ownership. - ~ The ASF licenses this file to You under the Apache License, Version 2.0 - ~ (the "License"); you may not use this file except in compliance with - ~ the License. You may obtain a copy of the License at - ~ - ~ http://www.apache.org/licenses/LICENSE-2.0 - ~ - ~ Unless required by applicable law or agreed to in writing, software - ~ distributed under the License is distributed on an "AS IS" BASIS, - ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - ~ See the License for the specific language governing permissions and - ~ limitations under the License. - --> - -<assembly - xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd"> - <id>src</id> - <formats> - <format>tar.gz</format> - </formats> - <includeBaseDirectory>true</includeBaseDirectory> - <baseDirectory>${project.build.finalName}-src</baseDirectory> - - <fileSets> - <fileSet> - <directory>../</directory> - <useDefaultExcludes>true</useDefaultExcludes> - <includes> - <include>README.md</include> - <include>LICENSE</include> - <include>NOTICE</include> - <include>DISCLAIMER</include> - <include>seatunnel-edge-agent/**</include> - </includes> - <excludes> - <!-- Maven build and release files --> - <exclude>**/.flattened-pom.xml</exclude> - <exclude>**/dependency-reduced-pom.xml</exclude> - <exclude>**/pom.xml.releaseBackup</exclude> - <exclude>**/pom.xml.tag</exclude> - <exclude>**/pom.xml.next</exclude> - <exclude>**/release.properties</exclude> - <exclude>**/*.gpg</exclude> - <exclude>**/target/**</exclude> - <exclude>**/.settings/**</exclude> - <exclude>**/.project</exclude> - <exclude>**/.classpath</exclude> - <exclude>**/.idea/**</exclude> - <exclude>**/*.iml</exclude> - <exclude>**/.DS_Store</exclude> - </excludes> - </fileSet> - </fileSets> -</assembly> diff --git a/seatunnel-edge-agent/README.md b/seatunnel-edge-agent/README.md index 8ee88665eb..c2327086d2 100644 --- a/seatunnel-edge-agent/README.md +++ b/seatunnel-edge-agent/README.md @@ -1,34 +1,19 @@ # SeaTunnel Edge Agent -Lightweight edge-side collector: reads local sources, buffers outbound data in WAL, and forwards batches to SeaTunnel Engine via the EdgeSocket line protocol. **User guides and `agent.yaml` reference live in the docs site** — avoid duplicating them here. +SeaTunnel Edge Agent is a lightweight collector for local data such as log files on edge hosts. +It buffers records in a local write-ahead log (WAL) and sends them to SeaTunnel Engine through +EdgeSocket, with retries when delivery fails. -## Modules +## Build from source -| Path | Role | -|------|------| -| `seatunnel-edge-agent-connector/` | `EdgeInputReader` SPI (`file` collector) | -| `seatunnel-edge-agent-transport/` | `EdgeCollectorTransport` SPI (EdgeSocket / console), payload encoding | -| `seatunnel-edge-agent-starter/` | Config, runtime, scheduler, WAL and source positions | -| `bin/` | `seatunnel-edge-agent.sh` / `.cmd` — `start` \| `stop` \| `status` \| `db` | -| `config/` | Sample [`agent.yaml`](config/agent.yaml), `log4j2.properties` | +Build the Edge Agent package from the SeaTunnel source root: -E2E: `seatunnel-e2e/seatunnel-edge-agent-e2e/`. Distribution: `seatunnel-dist` (`assembly-edge-agent-*.xml`). - -## Documentation (canonical) - -| Topic | English | 中文 | -|-------|---------|------| -| Overview & reading path | [About Edge Agent](../docs/en/edge-agent/about.md) | [简介](../docs/zh/edge-agent/about.md) | -| Quick start | [Quick Start](../docs/en/edge-agent/quick-start.md) | [快速开始](../docs/zh/edge-agent/quick-start.md) | -| Full `agent.yaml` parameters | [Configuration](../docs/en/edge-agent/configuration.md) | [配置说明](../docs/zh/edge-agent/configuration.md) | -| Input / output scenarios | [Input](../docs/en/edge-agent/input-configuration.md) · [Output](../docs/en/edge-agent/output-configuration.md) | [输入](../docs/zh/edge-agent/input-configuration.md) · [输出](../docs/zh/edge-agent/output-configuration.md) | -| Deploy & operate | [Deployment Guide](../docs/en/edge-agent/deployment-guide.md) · [Operations](../docs/en/edge-agent/operations.md) · [FAQ](../docs/en/edge-agent/faq.md) | [部署指南](../docs/zh/edge-agent/deployment-guide.md) · [运维](../docs/zh/edge-agent/operations.md) · [FAQ](../docs/zh/edge-agent/faq.md) | -| System design | [Edge Agent Architecture](../docs/en/edge-agent/architecture-overview.md) | [架构](../docs/zh/edge-agent/architecture-overview.md) | -| Wire protocol (engine) | [EdgeSocket Source](../docs/en/connectors/source/EdgeSocket.md) | [EdgeSocket](../docs/zh/connectors/source/EdgeSocket.md) | +```bash +./mvnw clean package -pl seatunnel-dist -am -DskipTests -Dskip.spotless=true +``` -## Build (developers) +The build generates the binary package: -```bash -./mvnw -pl seatunnel-edge-agent/seatunnel-edge-agent-starter -DskipTests package -./mvnw -pl seatunnel-dist -DskipTests package # edge-agent tarball +```text +seatunnel-dist/target/apache-seatunnel-edge-agent-<version>-bin.tar.gz ```
