Giter Club home page Giter Club logo

oak-kafka's Introduction

Oak Kafka

Apache Kafka integration for Apache Jackrabbit Oak.

This is a prove of concept implementation of an Oak Observer sending all changes to a Oak repository to a Kafka message log.

Getting started

To get started with Oak Kafka, build the latest sources with Maven 3 and Java 6 (or higher):

mvn clean install

Then start a local Kafka server. Change into the Kafka installation directory and start a Zookeeper instance and then the Kafka server:

bin/zookeeper-server-start.sh config/zookeeper.properties
bin/kafka-server-start.sh config/server.properties

To see the output of the test you need to attach a message consumer to Kafka:

./bin/kafka-console-consumer.sh --zookeeper localhost:2181 --blacklist \
none --property print.key=true

Now running KafkaObserverTest.main should dump the changes to the console:

commit	CommitInfo{sessionId=session-6, userId=admin, date=1404470600166, info={}}
NODE_CHANGED	/
PROPERTY_ADDED	/new node 1404470600164/jcr:primaryType
NODE_ADDED	/new node 1404470600164
NODE_CHANGED	/oak:index
NODE_CHANGED	/oak:index/nodetype

OSGi integration

Through KafkaObserverService Oak Kafka can be run inside an OSGi environment (e.g. Apache Sling). Note that due to OAK-1950 Oak Kafka currently has a dependency on oak-core:1.1-SNAPSHOT.

oak-kafka's People

Contributors

mduerig avatar stillalex avatar

Stargazers

Chris Pilsworth avatar

Watchers

 avatar James Cloos 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.