This library contains the logic to drive Sonar, including:
- Creating Kafka Connect sources and sinks
- Installing and uninstalling Kafka Connect sources and sinks
- Creating Cassandra tables from Avro schema files
- Communicating with the Kafka REST API
- python3
- make
Python library dependencies will be automatically collected from requirements.txt
Assuming you cloned this repo into location SONAR_DRIVER_HOME
1-step install: source install.sourceme
Or, build components separately using:
-
Run
make
to create the necessary python virtualenv for this project and pip install it into the virtualenv. -
Invoke the virtual environment with
source ${SONAR_DRIVER_HOME}/venv/bin/activate
-
Add
${SONAR_DRIVER_HOME}/bin
toPATH
to run commands anywhere
The following environment variables may be used by the commands in bin
if set:
KAFKA_REST_URL # e.g. http://sonar8
KAFKA_REST_PORT # e.g. 8083
CQLSH_HOST # e.g. sonar8
CQLSH_PORT # e.g. 9042
ZOOKEEPER_HOST # e.g. sonar8
ZOOKEEPER_PORT # e.g. 2181
sonar-driver is distributed under the terms of both the MIT license and the Apache License (Version 2.0). Users may choose either license, at their option.
All new contributions must be made under both the MIT and Apache-2.0 licenses.
See LICENSE-MIT, LICENSE-APACHE, COPYRIGHT, and NOTICE for details.
LLNL-CODE-763876