Skip to content
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

Copy messages with key #2

Open
aliSadegh opened this issue Aug 28, 2024 · 0 comments
Open

Copy messages with key #2

aliSadegh opened this issue Aug 28, 2024 · 0 comments

Comments

@aliSadegh
Copy link

Hi everyone
How can I copy a message from a topic to another topic with key?
my message in topic A in source has key like "somekey" and when I copy it to sink topic B, the key is empty
this is my connector configuration:
`{
"name": "copy-topic-001",
"config":
{
"schema.ignore": "true",
"value.converter.schemas.enable": "false",
"key.converter.schemas.enable": "false",
"key.converter": "org.apache.kafka.connect.storage.StringConverter",
"value.converter": "org.apache.kafka.connect.storage.StringConverter",

    "connector.class": "com.kakao.connector.kafka.KafkaSinkConnector",
    "kafka.key.enabled": true,
    "kafka.sink.bootstrap": "kafka:9092",
    "kafka.sink.topic": "test-inter-copy",
    "tasks.max": "1",
    "topics": "test-inter"
}

}`

and this is my message in source topic:
key: "001"
value:
{ "title": "some title" }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant