# 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
------------------------------

```java
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

### &#x20;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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pox-chain.gitbook.io/doc/build-node/event-subscription/event-plugin-deployment-kafka.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
