Commit 1fc3472a authored by Georgios Ouzounis's avatar Georgios Ouzounis

LAM-22 Added comments to the kafka stream input consumer scripts.

parent 4e085c0a
#!/bin/bash
# This script should be executed on the machine on which zookeeper is running. To execute it on another machine, change the
# "localhost" on the following command with the IP address of the machine that runs zookeeper.
/usr/local/kafka/bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic input;
#!/bin/bash
# Change zookeeper-host and application-master-host with the ips of the zookeeper host and the Apache Flink Application Master host. Tis command will create a live feed from topic input
# to the port 9999 of the Application Master host. The stream job should then read the port 9999. The Application Master is responsible for distributing the data to the appropriate machines.
# Change "zookeeper-host" with the IP address of the machine that runs Apache Zookeeper.
# Change "application-master-host" with the IP address of the machine tha runs the Apache Flink Application Master.
# This command will create a live feed of data, from the topic "input" to the port 9999 of the Application Master host.
# The stream job will then read the data from the port 9999.
# The Application Master is responsible for distributing the data to the machines that run the Apache Flink job.
/usr/local/kafka/bin/kafka-console-consumer.sh --consumer.config /usr/local/kafka/config/consumer.properties --zookeeper zookeeper-host:2181 --topic input | nc -lk application-master-host -p 9999;
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