Coder Social home page Coder Social logo

nopponaim603 / docker-kafka-to-spark-streaming Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ricardogaspar2/spark-streaming-kafka

0.0 1.0 0.0 12 KB

Docker file for starting a containers with Spark Streaming, enabled with Kafka integration

Dockerfile 41.93% Shell 0.83% Scala 57.24%

docker-kafka-to-spark-streaming's Introduction

Docker container for Spark Streaming with Kafka integration

Git Repo: https://github.com/ricardogaspar2/docker-spark-streaming

Docker file for starting a containers with Spark, enabled with Kafka streaming based on:

Spark version: 2.2.0 Spark streaming kafka integration: spark-streaming-kafka-0-10

see: https://spark.apache.org/docs/2.2.0/streaming-kafka-integration.html

Note This image does not contain Kafka.

Use the docker-compose file to run together with a Kafka server (container)

Use docker-compose.yml located in git repo to launch a container with Kafka server together with the ricardogadpar2/spark-streaming-kafka container. In the service sparkof this file, in section volumes a volume is specified to share the host home directory with the spark container. This sharing depends on the host OS:

  • Windows: the file .env with the property COMPOSE_CONVERT_WINDOWS_PATHS=1 must exist alongside the docker-compose.yml file.
  • Linux: the .env file or comment the line with COMPOSE_CONVERT_WINDOWS_PATHS=1 must not exist.

To launch the containers with kafka and spark:

  1. launch a terminal and go to the same directory where the docker-compose.yml file is located. If your not in the same directory the following commands will not work.
  2. run: docker-compose up
  3. to open a terminal on kafka container: docker exec -it $(docker-compose ps -q kafka) bash
  4. to open a terminal on spark container: docker exec -it $(docker-compose ps -q spark) bash

docker-kafka-to-spark-streaming's People

Contributors

nopponaim603 avatar ricardogaspar2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.