diff --git a/app/alarm/examples/talk.sh b/app/alarm/examples/talk.sh new file mode 100755 index 0000000000..0709046773 --- /dev/null +++ b/app/alarm/examples/talk.sh @@ -0,0 +1,18 @@ +#!/bin/sh +# +# Send talk message + +if [ $# -ne 2 ] +then + echo "Usage: talk.sh Accelerator Message" + exit 1 +fi + +topic="$1" +text="$2" + +kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --property 'parse.key=true' --property key.separator=" : " --topic ${topic}Talk <