Skip to content

Instantly share code, notes, and snippets.

@fabiotatsuo
Last active January 13, 2022 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabiotatsuo/1876fe1b4b32615be6ad39e090014286 to your computer and use it in GitHub Desktop.
Save fabiotatsuo/1876fe1b4b32615be6ad39e090014286 to your computer and use it in GitHub Desktop.
Yugabyte

Quickstart

https://docs.yugabyte.com/latest/quick-start/

Download

curl -O https://downloads.yugabyte.com/releases/2.11.1.0/yugabyte-2.11.1.0-b305-darwin-x86_64.tar.gz

tar xvfz yugabyte-2.11.1.0-b305-darwin-x86_64.tar.gz && cd yugabyte-2.11.1.0/

yb-ctl

https://docs.yugabyte.com/latest/admin/yb-ctl/

Create a 3-node cluster with rf of 3

$ ./bin/yb-ctl --rf 3 create

Start

$ ./bin/yugabyted start

Stop

$ ./bin/yugabyted stop

Status

$ ./bin/yugabyted status

Help

$ ./bin/yugabyted --help

Web UI

http://127.0.0.1:7000/

Enable YCQL authentication

https://docs.yugabyte.com/latest/secure/authentication/ycql-authentication/#1-enable-ycql-authentication

./bin/yb-tserver \
  --tserver_master_addrs <master addresses> \
  --fs_data_dirs <data directories> \
  --use_cassandra_authentication=true \
  >& /home/centos/disk1/yb-tserver.out &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment