diff --git a/scripts/install/install-risingwave.sh b/scripts/install/install-risingwave.sh index 87b3682a46607..02d21fdf2e620 100755 --- a/scripts/install/install-risingwave.sh +++ b/scripts/install/install-risingwave.sh @@ -9,10 +9,7 @@ fi STATE_STORE_PATH="${HOME}/.risingwave/state_store" META_STORE_PATH="${HOME}/.risingwave/meta_store" -VERSION="v1.7.0-single-node-2" -HOMEBREW_VERSION="1.7-single-node" -# TODO(kwannoel): re-enable it once we have stable release in latest for single node mode. -#VERSION=$(curl -s https://api.github.com/repos/risingwavelabs/risingwave/releases/latest \ +VERSION=$(curl -s https://api.github.com/repos/risingwavelabs/risingwave/releases/latest \ # | grep '.tag_name' \ # | sed -E -n 's/.*(v[0-9]+.[0-9]+.[0-9])\",/\1/p') BASE_URL="https://github.com/risingwavelabs/risingwave/releases/download" @@ -59,26 +56,20 @@ echo ############# BREW INSTALL if [ "${USE_BREW}" -eq 1 ]; then - echo "Installing RisingWave@${HOMEBREW_VERSION} using Homebrew." + echo "Installing RisingWave@${VERSION} using Homebrew." brew tap risingwavelabs/risingwave - brew install risingwave@${HOMEBREW_VERSION} - echo "Successfully installed RisingWave@${HOMEBREW_VERSION} using Homebrew." + brew install risingwave@${VERSION} echo - echo "You can run it as:" + echo "Successfully installed RisingWave@${VERSION} using Homebrew." echo - echo " risingwave >risingwave.log 2>&1 &" - echo - echo - echo "You can attach a psql client to the standalone server using:" + echo "Run and attach a client:" echo + echo " risingwave >risingwave.log 2>&1 &" echo " psql -h localhost -p 4566 -d dev -U root" echo - echo echo "To start a fresh cluster, you can just delete the data directory contents:" echo - echo " rm -r ~/.risingwave/state_store/*" - echo " rm -r ~/.risingwave/meta_store/*" - echo + echo " rm -r ~/.risingwave" echo echo "To view available options, run:" echo @@ -95,24 +86,19 @@ echo curl -L "${URL}" | tar -zx || exit 1 chmod +x risingwave echo -echo "Successfully downloaded the RisingWave binary, you can run it as:" -echo -echo " ./risingwave >risingwave.log 2>&1 &" -echo +echo "Successfully installed RisingWave@${VERSION} binary." echo -echo "You can connect a psql client to the standalone server using:" +echo "Run and attach a client:" echo +echo " risingwave >risingwave.log 2>&1 &" echo " psql -h localhost -p 4566 -d dev -U root" echo -echo echo "To start a fresh cluster, you can just delete the data directory contents:" echo -echo " rm -r ~/.risingwave/state_store/*" -echo " rm -r ~/.risingwave/meta_store/*" -echo +echo " rm -r ~/.risingwave" echo -echo "To view other available options, run:" +echo "To view available options, run:" echo -echo " ./risingwave single-node --help" +echo " risingwave single-node --help" echo # TODO(kwannoel): Include link to our docs. \ No newline at end of file