This repository has been archived by the owner on Apr 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from ramindu90/master
Adding readme for kafka sample
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
1. Copy {WSO2DASHome}/samples/0001/kafka-sample.siddhi file to {WSO2DASHome}/deployment/siddhi-files | ||
|
||
Kafka libs to be added and converted to OSGI from {KafkaHome}/libs are as follows | ||
* kafka_2.10-0.9.0.1.jar | ||
* kafka-clients-0.9.0.1.jar | ||
* metrics-core-2.2.0.jar | ||
* scala-library-2.10.5.jar | ||
* zkclient-0.7.jar | ||
* zookeeper-3.4.6.jar | ||
|
||
2. Add the OSGI converted kafka libs to {WSO2DASHome}/lib | ||
3. Add the kafka libs to {WSO2DASHome}/samples/sample-clients/lib | ||
|
||
4. Navigate to {KafkaHome} and start zookeeper node using bin/zookeeper-server-start.sh config/zookeeper.properties | ||
5. Navigate to {KafkaHome} and start kafka server node using bin/kafka-server-start.sh config/server.properties | ||
|
||
6. Navigate to {WSO2DASHome}/bin and start using ./carbon.sh | ||
7. Navigate to {WSO2DASHome}/samples/sample-clients/kafka-consumer and run ant command without arguments | ||
8. Navigate to {WSO2DASHome}/samples/sample-clients/kafka-producer and run ant command without arguments | ||
|
||
Published values should be printed on the kafka-consumer console. |