Skip to content

Commit a7f6349

Browse files
authored
Merge pull request tronprotocol#1 from tronprotocol/addReadMe
add some introductionIntroduction in read me
2 parents acb5393 + 1d61192 commit a7f6349

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,26 @@ event.subscribe = {
5353
* **topic**: the value is the kafka topic to receive events. Make sure it has been created and Kafka process is running
5454

5555
##### Install Kafka
56-
On Mac:
56+
* **On Mac**:
5757
```
5858
brew install kafka
5959
```
6060

61-
On Linux:
61+
* **On Linux**:
6262
```
6363
cd /usr/local
64-
wget http://archive.apache.org/dist/kafka/0.8.2.1/kafka_2.11-0.8.2.1.tgz
65-
tar -xzvf kafka_2.11-0.8.2.1.tgz
66-
mv kafka_2.11-0.8.2.1 kafka
64+
wget http://archive.apache.org/dist/kafka/0.10.2.2/kafka_2.10-0.10.2.2.tgz
65+
tar -xzvf kafka_2.10-0.10.2.2.tgz
66+
mv kafka_2.10-0.10.2.2 kafka
6767
6868
add "export PATH=$PATH:/usr/local/kafka/bin" to end of /etc/profile
6969
source /etc/profile
7070
7171
7272
kafka-server-start.sh /usr/local/kafka/config/server.properties &
73-
```
7473
74+
```
75+
**Note**: make sure the version of Kafka is the same as the version set in build.gradle of eventplugin project.(kafka_2.10-0.10.2.2 kafka)
7576

7677
##### Run Kafka
7778
On Mac:
@@ -80,7 +81,11 @@ zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties & kafka-server-
8081
```
8182

8283
On Linux:
83-
/usr/local/kafka/bin/kafka-server-start.sh /usr/local/kafka/config/server.properties &
84+
zookeeper-server-start.sh /usr/local/kafka/config/zookeeper.properties &
85+
86+
Sleep about 3 seconds
87+
88+
kafka-server-start.sh /usr/local/kafka/config/server.properties &
8489

8590

8691
#### Create topics to receive events, the topic is defined in config.conf

0 commit comments

Comments
 (0)