Code Monkey home page Code Monkey logo

charmed-kafka-snap's Introduction

charmed-kafka-snap

Charmed Kafka snap repository.

This snap is based on the kafka snap: https://git.launchpad.net/kafka-snap/

Building

To build locally, use snapcraft --debug

Using the snap

Install the snap (e.g., sudo snap install ./kafka_3.1.0_amd64.snap --dangerous --devmode).

You can run kafka with snap start charmed-kafka once the snap is installed. In a seperate shell, you can also run zookeeper with snap start charmed-kafka.zookeeper.

Hello, Kafka

As per https://kafka.apache.org/quickstart run:

charmed-kafka.topics --create --topic quickstart-events --bootstrap-server localhost:9092
charmed-kafka.topics --describe --topic quickstart-events --bootstrap-server localhost:9092
charmed-kafka.console-producer --topic quickstart-events --bootstrap-server localhost:9092

Write any data to the topic, then halt with ctrl-C.

charmed-kafka.console-consumer --topic quickstart-events --from-beginning --bootstrap-server localhost:9092

Logs should be available at /var/snap/charmed-kafka/common/log.

Configuration

Place your custom kafka configuration in the snap common directory at /var/snap/charmed-kafka/common/server.properties. If such configuration is not available, the default upstream configuration will be used.

Place your custom zookeeper configuration in the snap common directory at /var/snap/charmed-kafka/common/zookeeper.properties. If such configuration is not available, the default upstream configuration will be used.

If you want to use custom log4j properties, place your custom log4j properties file at the snap common directory at /var/snap/charmed-kafka/common/log4j.properties.

To load additional environment variables for kafka, define your environment variables in a new file at /var/snap/charmed-kafka/common/broker.env.

charmed-kafka-snap's People

Contributors

deusebio avatar marcoppenheimer avatar taurus-forever avatar zmraul 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.