Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/daggerok/embedded-kafka

4del: This is going to be removed... or refactored... Run kafka quickly / for development only. Please don't use that shit. Instead use Spring Cloud CLI: `spring cloud kafka`
https://github.com/daggerok/embedded-kafka

kafka kafka-embedded kotlin

Last synced: 6 days ago
JSON representation

4del: This is going to be removed... or refactored... Run kafka quickly / for development only. Please don't use that shit. Instead use Spring Cloud CLI: `spring cloud kafka`

Awesome Lists containing this project

README

        

= embedded-kafka image:https://travis-ci.org/daggerok/embedded-kafka.svg?branch=master["Build Status", link="https://travis-ci.org/daggerok/embedded-kafka"]

=== gradle flow

.1 build and deploy (publish) to github (user: daggerok, repo: embedded-kafka, branch: mvn-repo)
[source,bash]
----
bash ./gradlew
bash ./gradlew publish
bash ./gradlew deploy
----

.2 consuming
[source,gradle]
----
repositories {
// ...
maven { url "https://raw.githubusercontent.com/daggerok/embedded-kafka/mvn-repo/" }
}
dependencies {
compile "daggerok:embedded-kafka:0.0.3"
}
----

.3 simply download and run
[source,bash]
----
wget -O /tmp/kafka.jar https://github.com/daggerok/embedded-kafka/raw/mvn-repo/embedded-kafka-0.0.3-all.jar
java -jar /tmp/kafka.jar \
--zookeeperPort=2181 \
--zookeeperDir=/tmp \
--kafkaPort=9092 \
--kafkaTopics=topic1,topic2 \
--httpPort=8080 \
--httpContext=/ &
----

links:

. link:http://www.javenue.info/post/java-http-server[Embedded Java HTTP Server]