-
Notifications
You must be signed in to change notification settings - Fork 641
[ISSUE #4011] add kafkaConnector module #4180
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
Conversation
…kafka_source_sink # Conflicts: # eventmesh-connectors/eventmesh-connector-kafka/src/main/java/org/apache/eventmesh/connector/kafka/server/KafkaConnectServer.java # eventmesh-connectors/eventmesh-connector-kafka/src/main/java/org/apache/eventmesh/connector/kafka/sink/connector/KafkaSinkConnector.java # eventmesh-connectors/eventmesh-connector-kafka/src/main/java/org/apache/eventmesh/connector/kafka/source/connector/KafkaSourceConnector.java # eventmesh-connectors/eventmesh-connector-kafka/src/main/resources/server-config.yml # eventmesh-connectors/eventmesh-connector-kafka/src/main/resources/sink-config.yml # eventmesh-connectors/eventmesh-connector-kafka/src/main/resources/source-config.yml
|
@qqeasonchen @xwm1992 PTAL |
mxsm
left a comment
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.
@epiao55 Please fix code style
Codecov Report
@@ Coverage Diff @@
## master #4180 +/- ##
============================================
+ Coverage 16.77% 16.92% +0.15%
+ Complexity 1415 1412 -3
============================================
Files 592 589 -3
Lines 26040 25789 -251
Branches 2400 2397 -3
============================================
- Hits 4367 4366 -1
+ Misses 21235 20986 -249
+ Partials 438 437 -1 see 51 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
I have fixed style @mxsm |
|
PTAL~ @xwm1992 |
| public void init(Config config) throws Exception { | ||
| this.sourceConfig = (KafkaSourceConfig) config; | ||
| Properties props = new Properties(); | ||
| props.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, sourceConfig.getConnectorConfig().getBootstrapServers()); | ||
| props.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class); | ||
| props.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class); | ||
| props.put(ConsumerConfig.GROUP_ID_CONFIG, sourceConfig.getConnectorConfig().getGroupID()); | ||
| props.put(ConsumerConfig.ENABLE_AUTO_COMMIT_CONFIG, "false"); | ||
|
|
||
| this.kafkaConsumer = new KafkaConsumer<String, String>(props); |
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.
How about add max.poll.records to KafkaConsumer?The exact numbers are placed in the configuration file.
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,i have added some defalut config for kafka connector
add default config for kafka sink and source
|
@xwm1992 please help trigger the build, tks |
* [ISSUE apache#4011] add kafkaConnector module * [ISSUE apache#4011] add kafkaConnector module * [ISSUE apache#4011] fix codestyle * Fixes apache#4011. add default config for kafka sink and source
Fixes #4011.
add kafkaConnector module, include sink and source