GitHub user taizilongxu opened a pull request:
https://github.com/apache/flink/pull/5050
[FLINK-4822] Ensure that the Kafka 0.8 connector is compatible with kâ¦
## What is the purpose of the change
When we deploy the taskmanager in docker of our cluster, it's hard to
locate which taskmanager cosnume the right partition of kafka except looking up
the log in docker, so I just add the owner in zk path when
PeriodOffsetCommitter the offset.
## Brief change log
- add the registerPartitionOwnership when commit the offset to
zookeeper, and store the info like :
/consumers/[group_id]/owner/[topic]/[partition_id]
## Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
## Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): no
- The public API, i.e., is any changed class annotated with
`@Public(Evolving)`:no
- The serializers: no
- The runtime per-record code paths (performance sensitive): no
- Anything that affects deployment or recovery: JobManager (and its
components), Checkpointing, Yarn/Mesos, ZooKeeper: no
- The S3 file system connector: no
## Documentation
- Does this pull request introduce a new feature? no
- If yes, how is the feature documented? not documented
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/taizilongxu/flink flink-4822
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/5050.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #5050
----
commit 1c7a345e671010cf07b02cfdff9968ced38e2632
Author: xuxiao.xu <[email protected]>
Date: 2017-11-22T09:36:12Z
[FLINK-4822] Ensure that the Kafka 0.8 connector is compatible with
kafka-consumer-groups.sh
----
---