Giter Site home page Giter Site logo

kafka_streams's Introduction

KSQL & Kafka Streams Exercises

Cloning the Repository

  1. Clone this repository into a folder ~/confluent-labs on your computer:

    $ git clone https://github.com/confluentinc/training-ksql-and-streams-src.git ~/confluent-streams
  2. Navigate to this folder:

    $ cd ~/confluent-streams
  3. Optional: Open this folder in your favorite code editor; e.g. if you have VS Code installed then:

    $ code .
Note
We have two main folders solution and labs in this repo. The former contains the complete sample solution for each exercise while the latter contains the scaffolding for each exercise and is meant to be used during the hands-on-labs.
For each module of the course that has exercises we have a corresponding sub-folder m-xx where the respective exercises can be found.

Java base Exercises using Gradle

To build a project Java project using Gradle do the following:

  1. cd into the corresponding project folder (the folder where the Gradle build file build.gradle is located).

  2. Run this command to build the jar:

    $ docker container run --rm \
        -v ${PWD}:/home/gradle/project \
        -v ${HOME}/.gradle:/root/.gradle \
        -w /home/gradle/project \
        frekele/gradle:latest gradle build
  3. Run the application:

    $ docker container run --rm \
        -v $(PWD)/target/app.jar:/app.jar \
        openjdk:8-jre-alpine java -jar /app.jar
    Note
    Sometimes the Alpine based image is not working depending on the dependencies used. In this case use this command instead:
    $ docker container run --rm \
        -v $(PWD)/target/app.jar:/app.jar \
        openjdk:8-jre java -jar /app.jar

kafka_streams's People

Contributors

gnschenker avatar chuck-confluent avatar russau avatar margomb avatar daveshook avatar dim-drag avatar

Watchers

Mathis Kretz avatar Lena Fuhrimann avatar  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.