hanyouyou13 commented on code in PR #4996:
URL: https://github.com/apache/seatunnel/pull/4996#discussion_r1266044703
##########
seatunnel-core/seatunnel-starter/src/main/java/org/apache/seatunnel/core/starter/seatunnel/command/ClientExecuteCommand.java:
##########
@@ -93,6 +97,13 @@ public void execute() throws CommandExecuteException {
if (StringUtils.isNotEmpty(clusterName)) {
clientConfig.setClusterName(clusterName);
}
+ if (null != instance) {
+ Address serverAddress = ((Member)
instance.getLocalEndpoint()).getAddress();
+ String connectAddress = serverAddress.getHost() + ":" +
serverAddress.getPort();
+
+ ClientNetworkConfig networkConfig =
clientConfig.getNetworkConfig();
+ networkConfig.setAddresses(Lists.newArrayList(connectAddress));
Review Comment:
Thank you for your suggestion. This test case expresses each local task runs
on a different zeta server.
--
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]