Skip to content

Commit

Permalink
update risingwave install script
Browse files Browse the repository at this point in the history
  • Loading branch information
kwannoel committed Feb 21, 2024
1 parent aeff596 commit d94b8fa
Showing 1 changed file with 13 additions and 27 deletions.
40 changes: 13 additions & 27 deletions scripts/install/install-risingwave.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand All @@ -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.

0 comments on commit d94b8fa

Please sign in to comment.