Sign inSign up

weevenetwork/kafka-consumer

By weevenetwork

Updated over 3 years ago

Image
0

444

weevenetwork/kafka-consumer repository overview

Kafka Consumer

NameKafka Consumer
Versionv1.0.0
GitHubweeve-modules/kafka-consumer
AuthorsJakub Grzelak

Description

Consumer to connect with Apache Kafka and input data from the cluster. The module uses utf-8 decoding for value deserializer.

Environment Variables

Module Specific

The following module configurations can be provided in a data service designer section on weeve platform:

NameEnvironment VariablesTypeDescription
TopicTOPICstringKafka topic to subscribe to.
Bootstrap ServersBOOTSTRAP_SERVERSstringList of comma (,) separated Kafka bootstrap servers that the consumer should contact to bootstrap initial cluster metadata.
Client IDCLIENT_IDstringA name for this client. This string is passed in each request to servers and can be used to identify specific server-side log entries that correspond to this client.
Group IDGROUP_IDstringThe name of the consumer group to join for dynamic partition assignment, and to use for fetching and committing offsets.
Auto Offset ResetAUTO_OFFSET_RESETstringA policy for resetting offsets 'earliest' will move to the oldest available message, 'latest' will move to the most recent.
Enable Auto CommitENABLE_AUTO_COMMITbooleanIf True, the consumer offset will be periodically committed in the background.
Set by the weeve Agent on the edge-node

Other features required for establishing the inter-container communication between modules in a data service are set by weeve agent.

Environment VariablestypeDescription
MODULE_NAMEstringName of the module
MODULE_TYPEstringType of the module (INGRESS, PROCESS, EGRESS)
EGRESS_URLSstringHTTP ReST endpoint for the next module

Dependencies

requests
kafka-python

Input

Input to this module is data stored on Kafka cluster.

Output

Output to this module is data stored on Kafka cluster in JSON format.

Tag summary

Content type

Image

Digest

sha256:b318250ca

Size

48.8 MB

Last updated

over 3 years ago

docker pull weevenetwork/kafka-consumer:v1.0.1