Skip to content

Commit eaf48e9

Browse files
committed
conf: old school bash scripts to launch kafka and cassandra
1 parent f4167bb commit eaf48e9

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

startCassandra.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#Cassandra 3.10
2+
screen -dmS "Cassandra" /home/paul/bigdata/apache-cassandra-3.10/bin/cassandra
3+
/home/paul/bigdata/apache-cassandra-3.10/bin/cqlsh
4+

startKafkaStack.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#kafka_2.11-0.10.2.0
2+
screen -dmS "kafkaZK" /home/paul/bigdata/kafka_2.11-0.10.2.0/bin/zookeeper-server-start.sh /home/paul/bigdata/kafka_2.11-0.10.2.0/config/zookeeper.properties
3+
screen -dmS "kafkaCluster" /home/paul/bigdata/kafka_2.11-0.10.2.0/bin/kafka-server-start.sh /home/paul/bigdata/kafka_2.11-0.10.2.0/config/server.properties
4+
/home/paul/bigdata/kafka_2.11-0.10.2.0/bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test
5+
/home/paul/bigdata/kafka_2.11-0.10.2.0/bin/kafka-console-consumer.sh --topic test --bootstrap-server localhost:9092 --from-beginning

0 commit comments

Comments
 (0)