Kafka Storage Adapter for JanusGraph
Installing the adapter from a binary release
Binary releases can be found on GitHub.
This installation procedure will copy the necessary libraries, properties, and Gremlin Server configuration files into your JanusGraph installation.
- Download the JanusGraph release.
- Download the Kafka storage adapter release.
- Unzip the storage adapter zip file and run
Assuming you have a Kafka cluster up and running, you can connect from the Gremlin console by running:
gremlin> graph = JanusGraphFactory.open('conf/janusgraph-kafka.properties')
To start Gremlin Server run
gremlin-server.sh directly or
bin/janusgraph.sh start which will also start a local Elasticsearch instance.
Installing from source
Follow these steps if you'd like to use the latest version built from source.
- Clone the repository.
git clone http://github.com/rayokota/janusgraph-kafka
- Build the distribution package.
mvn package -DskipTests
- Follow the binary installation steps starting at step 3.
||Path to the configuration file for KCache.|
||List of Kafka brokers to connect to. Overrides the value in the KCache configuration file.|
||The prefix to be used for topic names. Defaults to the graph name.|
||The backing cache for KCache, one of
||Root directory for backing cache storage.||/tmp|