From ccaaa84afc05240c026fe2cffafc2e2bfda06b87 Mon Sep 17 00:00:00 2001 From: Bowei Xu Date: Fri, 9 Feb 2018 15:14:13 -0800 Subject: [PATCH] Fix README for cassandra tool --- tools/cassandra/README.md | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/tools/cassandra/README.md b/tools/cassandra/README.md index e37119a3700..41c68dae462 100644 --- a/tools/cassandra/README.md +++ b/tools/cassandra/README.md @@ -7,11 +7,20 @@ How - Run make bins - You should see an executable `cadence-cassandra-tool` -Setting up initial cassandra schema on a new cluster +Setting up cassandra schema on a new cluster shortcut +---------------------------------------------------- +``` +make install-schema +``` + +Setting up schema on a new cluster manually ---------------------------------------------------- ``` ./cadence-cassandra-tool -ep 127.0.0.1 -k cadence setup-schema -v 0.0 -- this sets up just the schema version tables with initial version of 0.0 -./cadence-cassandra-tool -ep 127.0.0.1 -k cadence update-schema -d ./schema/cadence -- upgrades your schema to the latest version +./cadence-cassandra-tool -ep 127.0.0.1 -k cadence update-schema -d ./schema/cadence/versioned -- upgrades your schema to the latest version + +./cadence-cassandra-tool -ep 127.0.0.1 -k cadence_visibility setup-schema -v 0.0 -- this sets up just the schema version tables with initial version of 0.0 for visibility +./cadence-cassandra-tool -ep 127.0.0.1 -k cadence_visibility update-schema -d ./schema/visibility/versioned -- upgrades your schema to the latest version for visibility ``` Updating schema on an existing cluster @@ -19,6 +28,9 @@ Updating schema on an existing cluster You can only upgrade to a new version after the initial setup done above. ``` -./cadence-cassandra-tool -ep 127.0.0.1 -k cadence update-schema -d ./schema/cadence -v x.x -y -- executes a dryrun of upgrade to version x.x -./cadence-cassandra-tool -ep 127.0.0.1 -k cadence update-schema -d ./schema/cadence -v x.x -- actually executes the upgrade to version x.x +./cadence-cassandra-tool -ep 127.0.0.1 -k cadence update-schema -d ./schema/cadence/versioned -v x.x -y -- executes a dryrun of upgrade to version x.x +./cadence-cassandra-tool -ep 127.0.0.1 -k cadence update-schema -d ./schema/cadence/versioned -v x.x -- actually executes the upgrade to version x.x + +./cadence-cassandra-tool -ep 127.0.0.1 -k cadence_visibility update-schema -d ./schema/visibility/versioned -v x.x -y -- executes a dryrun of upgrade to version x.x +./cadence-cassandra-tool -ep 127.0.0.1 -k cadence_visibility update-schema -d ./schema/visibility/versioned -v x.x -- actually executes the upgrade to version x.x ``` \ No newline at end of file