Event Plugin Deployment (Kafka)
This page gives the instructions for deploying the Kafka Event Subscription plugin. Content contains: plugin compilation, Kafka deployment and event subscription examples.
Recommended Configuration
CPU/ RAM: 16Core / 32G
DISK: 500G+
System: Ubuntu / CentOS 64
1. Compile Kafka event plugin
git clone https://github.com/polluxprotocol/event-plugin.git
cd event-plugin
./gradlew build
You can find plugin-kafka-1.0.0.zip in the event-plugin/build/plugins/ directory after compilation
2. Deploy Kafka
Install Kafka
Linux:
cd /usr/local
wget https://downloads.apache.org/kafka/2.8.0/kafka_2.13-2.8.0.tgz
$ tar -xzf kafka_2.13-2.8.0.tgz
Start Kafka
Linux:
cd /usr/local/kafka_2.13-2.8.0
// start the ZooKeeper service
$ bin/zookeeper-server-start.sh config/zookeeper.properties &
// start the Kafka broker service
$ bin/kafka-server-start.sh config/server.properties &
3. Event Subscription
Last updated