blob: 68ced54ba3d9818a29903a8776aa4e8657527f2f [file] [log] [blame]
ramangrover29116eb972013-02-20 20:47:35 +00001ZK_HOME=$1
2ZK_ID=$2
ramangrover29eb8bf052013-04-02 23:42:56 +00003JAVA_HOME=$3
ramangrover29116eb972013-02-20 20:47:35 +00004mkdir $ZK_HOME/data
5echo $2 > $ZK_HOME/data/myid
ramangrover29@gmail.com4ba21522013-02-27 23:35:42 +00006CLASSPATH=$ZK_HOME/lib/zookeeper-3.4.5.jar:$ZK_HOME/lib/log4j-1.2.15.jar:$ZK_HOME/lib/slf4j-api-1.6.1.jar:$ZK_HOME/conf:$ZK_HOME/conf/log4j.properties
ramangrover29116eb972013-02-20 20:47:35 +00007ZK_CONF=$ZK_HOME/zk.cfg
8export JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8400,server=y,suspend=n"
ramangrover29eb8bf052013-04-02 23:42:56 +00009$JAVA_HOME/bin/java $JAVA_OPTS -Dlog4j.configuration="file:$ZK_HOME/conf/log4j.properties" -cp $CLASSPATH org.apache.zookeeper.server.quorum.QuorumPeerMain $ZK_CONF