liugddx commented on code in PR #5112:
URL: https://github.com/apache/seatunnel/pull/5112#discussion_r1266654489
##########
seatunnel-examples/seatunnel-engine-examples/src/main/java/org/apache/seatunnel/example/engine/SeaTunnelEngineExample.java:
##########
@@ -23,23 +23,25 @@
import org.apache.seatunnel.core.starter.seatunnel.args.ClientCommandArgs;
import java.io.FileNotFoundException;
+import java.io.IOException;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.file.Paths;
public class SeaTunnelEngineExample {
public static void main(String[] args)
- throws FileNotFoundException, URISyntaxException, CommandException
{
- String configurePath = args.length > 0 ? args[0] :
"/examples/fake_to_console.conf";
+ throws IOException, URISyntaxException, CommandException {
+ String configurePath =
+ args.length > 0 ? args[0] :
"/examples/stream_fakesource_to_file.conf";
Review Comment:
revert.
##########
seatunnel-examples/seatunnel-engine-examples/src/main/java/org/apache/seatunnel/example/engine/SeaTunnelEngineExample.java:
##########
@@ -23,23 +23,25 @@
import org.apache.seatunnel.core.starter.seatunnel.args.ClientCommandArgs;
import java.io.FileNotFoundException;
+import java.io.IOException;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.file.Paths;
public class SeaTunnelEngineExample {
public static void main(String[] args)
- throws FileNotFoundException, URISyntaxException, CommandException
{
- String configurePath = args.length > 0 ? args[0] :
"/examples/fake_to_console.conf";
+ throws IOException, URISyntaxException, CommandException {
+ String configurePath =
+ args.length > 0 ? args[0] :
"/examples/stream_fakesource_to_file.conf";
String configFile = getTestConfigFile(configurePath);
ClientCommandArgs clientCommandArgs = new ClientCommandArgs();
clientCommandArgs.setConfigFile(configFile);
clientCommandArgs.setCheckConfig(false);
clientCommandArgs.setJobName(Paths.get(configFile).getFileName().toString());
// Change Execution Mode to CLUSTER to use client mode, before do
this, you should start
// SeaTunnelEngineServerExample
- clientCommandArgs.setMasterType(MasterType.LOCAL);
+ clientCommandArgs.setMasterType(MasterType.CLUSTER);
Review Comment:
Same as above.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]