Commits

izazi committed 314b0b6

more fixing the scripts

  • Participants
  • Parent commits 8426e21

Comments (0)

Files changed (1)

 #!/bin/sh 
 
+cwd=$(pwd)
+KAFKA_HOME=/home/vagrant/kafka-0.7.2-incubating-src
+
 #get a local build going
 mvn clean package
+
 #ensure we don't have any zookeeper and kafka instances running
 pkill -9 -f kafka
 pkill -9 -f zookeeper
 rm -rfv /tmp/kafka
 
 #launch zookeeper and kafka
-export KAFKA_HOME=/home/vagrant/kafka-0.7.2-incubating-src
-$KAFKA_HOME/bin/zookeeper-server-start.sh $KAFKA_HOME/config/zookeeper.properties &
+cd $KAFKA_HOME
+bin/zookeeper-server-start.sh config/zookeeper.properties &
 sleep 10
-$KAFKA_HOME/bin/kafka-server-start.sh $KAFKA_HOME/config/server.properties &
+bin/kafka-server-start.sh config/server.properties &
 sleep 5
 
+cd $cwd
 mvn exec:java -Dexec.classpathScope=compile -Dexec.mainClass=storm.cookbook.OrderManagementTopology &