From e68d44623ad2322df2937311a378700a8b97e634 Mon Sep 17 00:00:00 2001 From: sunil unnava Date: Wed, 21 Nov 2018 21:58:13 -0500 Subject: Changes to ZK config generation Issue-ID: DMAAP-888 Change-Id: I30196b1e64e42f35307b6fb1275edd206069b349 Signed-off-by: sunil unnava --- src/main/docker/scripts/start-zookeeper.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/docker/scripts') diff --git a/src/main/docker/scripts/start-zookeeper.sh b/src/main/docker/scripts/start-zookeeper.sh index b2ea5a2..d77ec03 100644 --- a/src/main/docker/scripts/start-zookeeper.sh +++ b/src/main/docker/scripts/start-zookeeper.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -ZK_USER=${ZK_USER:-"zookeeper"} +ZK_USER=${ZK_USER:-"root"} ZK_LOG_LEVEL=${ZK_LOG_LEVEL:-"INFO"} ZK_DATA_DIR=${ZK_DATA_DIR:-"/var/lib/zookeeper/data"} ZK_DATA_LOG_DIR=${ZK_DATA_LOG_DIR:-"/var/lib/zookeeper/log"} @@ -23,8 +23,8 @@ ID_FILE="$ZK_DATA_DIR/myid" ZK_CONFIG_FILE="$ZK_CONF_DIR/zoo.cfg" LOGGER_PROPS_FILE="$ZK_CONF_DIR/log4j.properties" JAVA_ENV_FILE="$ZK_CONF_DIR/java.env" -HOST=`hostname -s` -DOMAIN=`hostname -d` +HOST=$(hostname -s) +DOMAIN=$(hostname -d) function print_servers() { for (( i=1; i<=$ZK_REPLICAS; i++ )) -- cgit 1.2.3-korg