You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by ki...@apache.org on 2022/08/17 12:18:27 UTC
[incubator-seatunnel] branch dev updated: [Improve][tset]Set the first program argument as configure file path, Instand every test situation to make new class like SeaTunnelApiToClickHouseExample (#2444)
This is an automated email from the ASF dual-hosted git repository.
kirs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-seatunnel.git
The following commit(s) were added to refs/heads/dev by this push:
new d29af33cc [Improve][tset]Set the first program argument as configure file path, Instand every test situation to make new class like SeaTunnelApiToClickHouseExample (#2444)
d29af33cc is described below
commit d29af33cccfbfc7ca3bac964386a7b66d108308a
Author: 巧克力黑 <ja...@aliyun.com>
AuthorDate: Wed Aug 17 20:18:20 2022 +0800
[Improve][tset]Set the first program argument as configure file path, Instand every test situation to make new class like SeaTunnelApiToClickHouseExample (#2444)
---
.../seatunnel-spark-connector-v2-example/src/README.md | 2 ++
.../seatunnel-spark-connector-v2-example/src/img.png | Bin 0 -> 44132 bytes
.../seatunnel/example/spark/v2/SeaTunnelApiExample.java | 3 ++-
3 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/seatunnel-examples/seatunnel-spark-connector-v2-example/src/README.md b/seatunnel-examples/seatunnel-spark-connector-v2-example/src/README.md
new file mode 100644
index 000000000..0484664d8
--- /dev/null
+++ b/seatunnel-examples/seatunnel-spark-connector-v2-example/src/README.md
@@ -0,0 +1,2 @@
+### **Example**
+![img.png](img.png)
\ No newline at end of file
diff --git a/seatunnel-examples/seatunnel-spark-connector-v2-example/src/img.png b/seatunnel-examples/seatunnel-spark-connector-v2-example/src/img.png
new file mode 100644
index 000000000..7c69fb224
Binary files /dev/null and b/seatunnel-examples/seatunnel-spark-connector-v2-example/src/img.png differ
diff --git a/seatunnel-examples/seatunnel-spark-connector-v2-example/src/main/java/org/apache/seatunnel/example/spark/v2/SeaTunnelApiExample.java b/seatunnel-examples/seatunnel-spark-connector-v2-example/src/main/java/org/apache/seatunnel/example/spark/v2/SeaTunnelApiExample.java
index be4a3c923..a62ae55c5 100644
--- a/seatunnel-examples/seatunnel-spark-connector-v2-example/src/main/java/org/apache/seatunnel/example/spark/v2/SeaTunnelApiExample.java
+++ b/seatunnel-examples/seatunnel-spark-connector-v2-example/src/main/java/org/apache/seatunnel/example/spark/v2/SeaTunnelApiExample.java
@@ -25,6 +25,7 @@ import java.net.URISyntaxException;
public class SeaTunnelApiExample {
public static void main(String[] args) throws FileNotFoundException, URISyntaxException, CommandException {
- ExampleUtils.builder("/examples/spark.batch.conf");
+ String configurePath = args.length > 0 ? args[0] : "/examples/spark.batch.conf";
+ ExampleUtils.builder(configurePath);
}
}