#!/bin/bash

NODEID=$1

echo "Node $NODEID reporting for duty!"
echo $NODEID > /zookeeper/data/myid

/opt/zookeeper-3.4.6/bin/zkServer.sh start-foreground

#!/bin/bash

NODEID=$1

echo "Node $NODEID reporting for duty!"
echo $NODEID > /zookeeper/data/myid

sleep 30

/opt/zookeeper-3.4.6/bin/zkServer.sh start-foreground

Add startup delay to allow the host time to build a bridge network
Add startup delay to allow the host time to build a bridge network
