-
Notifications
You must be signed in to change notification settings - Fork 59
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
How to use openPDC adapter to pass data into a specified partition under kafka topic? #160
Comments
You can specify |
The ID column in your screenshot is what is referred to as the measurement key in the code. So The (SQLite) definition for the openPDC/Source/Data/SQLite/openPDC.sql Lines 303 to 326 in ad18a86
In this definition, the The field is an autoincrementing integer, sometimes used as a primary key, and it's referenced by foreign keys in other tables so you may have some difficulty changing it. You might be better off making a change to the Kafka Producer adapter that would enable you to explicitly specify which partition each measurement goes to. |
Thank you. |
Hi,community
I am having the following problem with the kafka adapter that comes with openPDC:
I have created a kafka topic with 2 partitions and using openPDC's KafkaAdapter to pass data into the kafka partitions. Since there are 2 partitions under the topic and the data deposit process is polled, I want to know what I need to do if I want to pass a set of data into specified partition. Do I need to change some configuration parameters in the adapter?
I would like to get your reply, thanks!
The text was updated successfully, but these errors were encountered: