Skip to content

Conversation

@MrLiuzy
Copy link

@MrLiuzy MrLiuzy commented Jan 4, 2026

Purpose of this pull request

Add a usage example of embedding the zeta engine as a plugin in project

Does this PR introduce any user-facing change?

No

How was this patch tested?

Check list

import java.util.stream.Stream;
import java.util.stream.StreamSupport;

/** 将SeaTunnel引擎当作工具的方式嵌入到项目中使用 */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a Apache Project, please describe it in English, thx

@davidzollo
Copy link
Contributor

CI failed
image

@MrLiuzy
Copy link
Author

MrLiuzy commented Jan 4, 2026

@davidzollo I have translated the Chinese description into English. Do I need to close this PR and then submit a new one instead?

System.err.println("jobError: " + jobResult.getError());

Map<String, Object> jobMetricsSummary = server.getJobMetricsSummary(jobId);
System.err.println("------------jobMetricsSummary-------------");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use log

@zhangshenghang
Copy link
Member

Are there many such usage scenarios? Why isn't connecting with REST supported?

return JobMetricsParser.getJobMetrics(jobMetrics);
}

public static class JobMetricsParser {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this class needed?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SeaTunnel is a comprehensive software. However, in actual projects, the requirements I encountered were that some functions needed to achieve data transmission between different databases and collect data transmission indicators at the same time. I focused on researching DataX and SeaTunnel and found that SeaTunnel is relatively easy to be introduced into the project as a maven dependency and used as a tool rather than as a complete application, which is highly consistent with my requirements. I carefully reviewed the official documentation, drew on the implementation method of the rest api, wrote this sample code and confirmed that it was indeed feasible. Since I hadn't found similar usage experiences on the Internet before, I also asked large models like deepseek and Doubao, but still didn't get satisfactory answers. I think perhaps others might also encounter similar usage scenarios. Since I have found a feasible solution, I hope it can offer some reference to others

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants