All Projects â†’ ksindi â†’ kafka-compose

ksindi / kafka-compose

Licence: MIT License
🎼 Docker compose files for various kafka stacks

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects
shell
77523 projects

Projects that are alternatives of or similar to kafka-compose

W2v
Word2Vec models with Twitter data using Spark. Blog:
Stars: ✭ 64 (+100%)
Mutual labels:  twitter, spark, pyspark
Devops Python Tools
80+ DevOps & Data CLI Tools - AWS, GCP, GCF Python Cloud Function, Log Anonymizer, Spark, Hadoop, HBase, Hive, Impala, Linux, Docker, Spark Data Converters & Validators (Avro/Parquet/JSON/CSV/INI/XML/YAML), Travis CI, AWS CloudFormation, Elasticsearch, Solr etc.
Stars: ✭ 406 (+1168.75%)
Mutual labels:  spark, avro, pyspark
Spark Nlp
State of the Art Natural Language Processing
Stars: ✭ 2,518 (+7768.75%)
Mutual labels:  spark, pyspark
Spark Practice
Apache Spark (PySpark) Practice on Real Data
Stars: ✭ 200 (+525%)
Mutual labels:  spark, pyspark
Kafka Connect Ui
Web tool for Kafka Connect |
Stars: ✭ 388 (+1112.5%)
Mutual labels:  twitter, kafka-connect
Linkis
Linkis helps easily connect to various back-end computation/storage engines(Spark, Python, TiDB...), exposes various interfaces(REST, JDBC, Java ...), with multi-tenancy, high performance, and resource control.
Stars: ✭ 2,323 (+7159.38%)
Mutual labels:  spark, pyspark
Azure Cosmosdb Spark
Apache Spark Connector for Azure Cosmos DB
Stars: ✭ 165 (+415.63%)
Mutual labels:  spark, pyspark
Gimel
Big Data Processing Framework - Unified Data API or SQL on Any Storage
Stars: ✭ 216 (+575%)
Mutual labels:  spark, pyspark
Cc Pyspark
Process Common Crawl data with Python and Spark
Stars: ✭ 147 (+359.38%)
Mutual labels:  spark, pyspark
Kafka Connect Twitter
Kafka Connect connector to stream data in real time from Twitter.
Stars: ✭ 94 (+193.75%)
Mutual labels:  twitter, kafka-connect
Spark Twitter Stream Example
"Sentiment analysis" on a live Twitter feed with Apache Spark and Apache Bahir
Stars: ✭ 73 (+128.13%)
Mutual labels:  twitter, spark
kafka-scala-examples
Examples of Avro, Kafka, Schema Registry, Kafka Streams, Interactive Queries, KSQL, Kafka Connect in Scala
Stars: ✭ 53 (+65.63%)
Mutual labels:  avro, kafka-connect
Handyspark
HandySpark - bringing pandas-like capabilities to Spark dataframes
Stars: ✭ 158 (+393.75%)
Mutual labels:  spark, pyspark
Learningapachespark
LearningApacheSpark
Stars: ✭ 155 (+384.38%)
Mutual labels:  spark, pyspark
Spark Iforest
Isolation Forest on Spark
Stars: ✭ 166 (+418.75%)
Mutual labels:  spark, pyspark
Spark With Python
Fundamentals of Spark with Python (using PySpark), code examples
Stars: ✭ 150 (+368.75%)
Mutual labels:  spark, pyspark
Mmlspark
Simple and Distributed Machine Learning
Stars: ✭ 2,899 (+8959.38%)
Mutual labels:  spark, pyspark
Abris
Avro SerDe for Apache Spark structured APIs.
Stars: ✭ 130 (+306.25%)
Mutual labels:  spark, avro
Pyspark Learning
Updated repository
Stars: ✭ 147 (+359.38%)
Mutual labels:  spark, pyspark
ODSC India 2018
My presentation at ODSC India 2018 about Deep Learning with Apache Spark
Stars: ✭ 26 (-18.75%)
Mutual labels:  spark, pyspark

Kafka Docker Compose

Replicates typical Kafka stack using docker compose.

Running

export CP_STACK_VERSION=4.0.0
docker-compose up

Viewing topics and schema

Confluent Kafka REST Proxy

docker-compose -f docker-compose.yml -f docker-compose.rest-proxy.yml up

Producing messages

pip install -r requirements.txt

curl -X POST -H "Content-Type: application/vnd.kafka.avro.v1+json" \
  --data "{
    \"key_schema_id\": 1,
    \"value_schema_id\": 2,
    \"records\":
        [
            {
              \"key\": $(python serialize.py ./avro/event.avsc examples/event.json | jq .event_id),
              \"value\": $(python serialize.py ./avro/event.avsc examples/event.json)
            }
        ]
  }" \
  "http://localhost:8082/topics/event"

Consuming messages

# Create an instance in a new consumer group
curl -X POST -H "Content-Type: application/vnd.kafka.v1+json" \
  --data '{"id": "my_avro_consumer_instance_1", "format": "avro", "auto.offset.reset": "smallest"}' \
  http://localhost:8082/consumers/my_avro_consumer

# consume messages with created consumer instance
curl -X GET -H "Accept: application/vnd.kafka.avro.v1+json" \
  http://localhost:8082/consumers/my_avro_consumer/instances/my_avro_consumer_instance_1/topics/event 2>/dev/null | jq .

Python Consumer

docker-compose -f docker-compose.yml -f docker-compose.python.yml up

Start the consumer:

cd consumer/ && make run

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].