Commit fea5e84d authored by Themis Zamani's avatar Themis Zamani

Merge pull request #5 from ioantsaf/kafka_rand_producer

LAM-25 Script that runs random tweet generator and sends output to Kafka
parents f8d6cb30 52fc0585
# lambda instance demo
## Kafka data producer
Runs random tweet generator script (currently placed in /root/, and sends the output to the Kafka topic "input-tweets".
### Prerequisites
- Run on Debian 8.0 node
- Python and Kafka must be installed
- must be placed in /root
### How to run
Create (touch) a file named "runrand" in root.
Run the
The script will run until the runrand file is deleted, producing random tweets every second.
while [ -f "/root/runrand" ]; do
python /root/ | /usr/local/kafka/bin/ --broker-list --topic input
sleep 1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment