-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] [Connector] Use Console sink will submit two job in flink cluster #1702
Comments
Yes, I also find this, and this will happen in batch job. |
@benjfan I find this may be caused by we have added two After change to below code, this bug has been fixed. @Override
public DataSink<Row> outputBatch(FlinkEnvironment env, DataSet<Row> rowDataSet) {
return rowDataSet.output(this);
}
@SuppressWarnings("RegexpSingleline")
@Override
public void writeRecord(Row record) {
if (limit <= 0) {
return;
}
System.out.println(record.toString());
limit--;
} |
This method will make record print on TaskManager, not client side. |
Yes, you are right, we cannot easily do this change. The main reason is that Flink will do |
Search before asking
What happened
When use console sink, and submit job to flink cluster, client will sumbit two job.
![image](https://user-images.githubusercontent.com/32387433/163558131-a6955c04-ead3-4ebe-a88e-1da5433d398e.png)
SeaTunnel Version
dev
SeaTunnel Config
Running Command
Error Exception
Flink or Spark Version
Flink 1.13.6
Java or Scala Version
Java8
Screenshots
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: