File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -53,25 +53,26 @@ event.subscribe = {
53
53
* ** topic** : the value is the kafka topic to receive events. Make sure it has been created and Kafka process is running
54
54
55
55
##### Install Kafka
56
- On Mac:
56
+ * ** On Mac** :
57
57
```
58
58
brew install kafka
59
59
```
60
60
61
- On Linux:
61
+ * ** On Linux** :
62
62
```
63
63
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
67
67
68
68
add "export PATH=$PATH:/usr/local/kafka/bin" to end of /etc/profile
69
69
source /etc/profile
70
70
71
71
72
72
kafka-server-start.sh /usr/local/kafka/config/server.properties &
73
- ```
74
73
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)
75
76
76
77
##### Run Kafka
77
78
On Mac:
@@ -80,7 +81,11 @@ zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties & kafka-server-
80
81
```
81
82
82
83
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 &
84
89
85
90
86
91
#### Create topics to receive events, the topic is defined in config.conf
You can’t perform that action at this time.
0 commit comments