Skip to content

Commit

Permalink
Merge pull request #156 from mailgun/maxim/develop
Browse files Browse the repository at this point in the history
Add formal support for Kafka v2.1.0
  • Loading branch information
horkhe authored Nov 23, 2018
2 parents 63886e9 + 54f0020 commit 833c404
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
matrix:
- KAFKA_VERSION=0.10.2.1
- KAFKA_VERSION=1.1.1
- KAFKA_VERSION=2.0.0
- KAFKA_VERSION=2.1.0

before_install:
- export REPOSITORY_ROOT=${TRAVIS_BUILD_DIR}
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@ complexity of the Kafka client protocol and provide a stupid simple
API that is trivial to implement in any language.

Kafka-Pixy is tested against Kafka versions form **0.10.2.1**, **1.1.1**, and
**2.0.0**, but is likely to work with any version starting from **0.8.2.2**. It uses
**2.1.0**, but is likely to work with any version starting from **0.8.2.2**. It uses
the Kafka [Offset Commit/Fetch API](https://cwiki.apache.org/confluence/display/KAFKA/A+Guide+To+The+Kafka+Protocol#AGuideToTheKafkaProtocol-OffsetCommit/FetchAPI)
to keep track of consumer offsets. However [Group Membership API](https://cwiki.apache.org/confluence/display/KAFKA/A+Guide+To+The+Kafka+Protocol#AGuideToTheKafkaProtocol-GroupMembershipAPI)
is not yet implemented, therefore it needs to talk to Zookeeper directly to
manage consumer group membership.

**Warning**: Kafka-Pixy does not support whiled card cannot share a consumer group with other clients

**Warning**: Kafka-Pixy does not support wildcard subscriptions and therefore
cannot coexist in a consumer group with clients using them. It should be
possible to use other clients in the same consumer group as kafka-pixy instance
if they subscribe to topics by their full names, but that **has never been
tested** so do that at your own risk.

If you are anxious to get started then [install](howto-install.md) Kafka-Pixy
and proceed with a quick start guide for your weapon of choice:
[Curl](quick-start-curl.md), [Python](quick-start-python.md), or [Golang](quick-start-golang.md).
Expand Down
2 changes: 2 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ func (kv *KafkaVersion) UnmarshalText(text []byte) error {
"1.1.0": sarama.V1_1_0_0,
"1.1.1": sarama.V1_1_0_0, // sarama does not define V1_1_1_0
"2.0.0": sarama.V2_0_0_0,
"2.0.1": sarama.V2_0_0_0, // sarama does not define V2_0_1_0
"2.1.0": sarama.V2_0_0_0, // sarama does not define V2_1_0_0
}[str]
if !ok {
return errors.Errorf("bad kafka version, %s", str)
Expand Down

0 comments on commit 833c404

Please sign in to comment.