diff --git a/install/signoz-install.sh b/install/signoz-install.sh index bb63e2ff0..f24b65f38 100644 --- a/install/signoz-install.sh +++ b/install/signoz-install.sh @@ -30,12 +30,13 @@ $STD apt-get install -y clickhouse-server clickhouse-client msg_ok "Setup ClickHouse" msg_info "Setting up Zookeeper" -curl -fsSL "https://dlcdn.apache.org/zookeeper/zookeeper-3.8.4/apache-zookeeper-3.8.4-bin.tar.gz" -o "$HOME/zookeeper.tar.gz" +ZOOURL=$(curl -fsSL https://dlcdn.apache.org/zookeeper/current/ | grep -o 'apache-zookeeper-[0-9.]\+-bin\.tar\.gz' | head -n1) +curl -fsSL "https://dlcdn.apache.org/zookeeper/current/$ZOOURL" -o ~/zookeeper.tar.gz tar -xzf "$HOME/zookeeper.tar.gz" -C "$HOME" mkdir -p /opt/zookeeper mkdir -p /var/lib/zookeeper mkdir -p /var/log/zookeeper -cp -r ~/apache-zookeeper-3.8.4-bin/* /opt/zookeeper +cp -r ~/apache-zookeeper-*-bin/* /opt/zookeeper cat </opt/zookeeper/conf/zoo.cfg tickTime=2000 @@ -104,8 +105,8 @@ fetch_and_deploy_gh_release "signoz-schema-migrator" "SigNoz/signoz-otel-collect msg_info "Running ClickHouse migrations" cd /opt/signoz-schema-migrator/bin -$STD ./signoz-schema-migrator sync --dsn="tcp://localhost:9000?password=" --replication=true --up= -$STD ./signoz-schema-migrator async --dsn="tcp://localhost:9000?password=" --replication=true --up= +$STD ./signoz-schema-migrator sync --dsn="tcp://localhost:9000?password=" --replication=true --up= +$STD ./signoz-schema-migrator async --dsn="tcp://localhost:9000?password=" --replication=true --up= msg_ok "ClickHouse Migrations Completed" fetch_and_deploy_gh_release "signoz" "SigNoz/signoz" "prebuild" "latest" "/opt/signoz" "signoz-community_linux_amd64.tar.gz" @@ -256,7 +257,7 @@ customize msg_info "Cleaning up" rm -rf ~/zookeeper.tar.gz -rm -rf ~/apache-zookeeper-3.8.4-bin +rm -rf ~/apache-zookeeper-*-bin $STD apt-get -y autoremove $STD apt-get -y autoclean msg_ok "Cleaned"