-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[Feature][Connector-v2][PulsarSink]Add Pulsar Sink Connector. #4382
Conversation
Hello everyone, ci check cannot automatically, ci check require approval? |
Hello everyone, it has been running stably in the test environment for two weeks, who has time to help review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please update release-note.md
please add e2e testcase
docs/en/connector-v2/sink/pulsar.md
Outdated
- [x] [batch](../../concept/connector-v2-features.md) | ||
- [x] [stream](../../concept/connector-v2-features.md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- [x] [batch](../../concept/connector-v2-features.md) | |
- [x] [stream](../../concept/connector-v2-features.md) |
docs/en/connector-v2/sink/pulsar.md
Outdated
- [ ] [column projection](../../concept/connector-v2-features.md) | ||
- [x] [parallelism](../../concept/connector-v2-features.md) | ||
- [ ] [support user-defined split](../../concept/connector-v2-features.md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- [ ] [column projection](../../concept/connector-v2-features.md) | |
- [x] [parallelism](../../concept/connector-v2-features.md) | |
- [ ] [support user-defined split](../../concept/connector-v2-features.md) |
waiting #3990 ,In this pr I added the pulsar-e2e module. doc has been updated. |
Hello everyone, why can't the automatic ci check be performed after updating the code now, and it needs to be approved? |
Yes, infra changed the rule of this. It needs to be approved. |
please review #3990,and then add pulsar sink e2e test. thanks. |
# Conflicts: # seatunnel-connectors-v2/connector-pulsar/pom.xml
…eatunnel into create-pulsar-sink
please approve ci. |
@Hisoka-X @hailin0 @TyrantLucifer please approve ci. |
@Hisoka-X @hailin0 @EricJoy2048 please approve ci. |
@ALL Can anyone help to review this pr? |
It's been a long time, @TyrantLucifer @hailin0 @EricJoy2048 @Hisoka-X PTAL. |
docs/en/connector-v2/sink/pulsar.md
Outdated
@@ -0,0 +1,174 @@ | |||
# Apache Pulsar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs/en/connector-v2/sink/puslar.md -> Please refer to the "kafka.md" file for some upgrade instructions,
https://github.com/apache/seatunnel/blob/dev/docs/en/connector-v2/sink/Kafka.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
import static org.apache.seatunnel.connectors.seatunnel.pulsar.config.SourceProperties.CLIENT_SERVICE_URL; | ||
|
||
@AutoService(Factory.class) | ||
public class PulsarSinkFactory implements TableSinkFactory { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Support TableSourceFactory/TableSinkFactory on connector,please refer to the following link for the upgrade instructions: #5651.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
* {@link PulsarSinkWriter} and {@link PulsarSinkCommitter}. | ||
*/ | ||
@AutoService(SeaTunnelSink.class) | ||
public class PulsarSink |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Support multi-table sink feature: please refer to the following link for the upgrade instructions: #5652
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do kafka and pulsar need the support of multiple table sinks? Multiple topics are supported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Hisoka-X cc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Supporting multiple tables is mainly to accept multiple upstream tables, which can be implemented separately in the future.
public class PulsarSinkState implements Serializable { | ||
|
||
/** The transaction id. */ | ||
private final TxnID txnID; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to store the 'topic' as part of the state?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only TxnID is required when commit, and the topic parameter is not required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
/** | ||
* get message SerializationSchema | ||
* | ||
* @param rowType |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment of these parameters is useless, can we delete it?
/** | ||
* get key SerializationSchema | ||
* | ||
* @param keyFieldNames |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
/** | ||
* get partition key field list | ||
* | ||
* @param pluginConfig |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
@hailin0 @Carl-Zhou-CN @Hisoka-X PTAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
...l-e2e/seatunnel-connector-v2-e2e/connector-pulsar-e2e/src/test/resources/fake_to_pulsar.conf
Outdated
Show resolved
Hide resolved
…src/test/resources/fake_to_pulsar.conf Co-authored-by: hailin0 <hailin088@gmail.com>
@hailin0 @Hisoka-X @Carl-Zhou-CN PTAL. |
Purpose of this pull request
Add Pulsar Sink Connector. #3018
Check list
New License Guide
release-note
.