This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rlogger.info("repair {} completed successfully", id); | |
rlogger.info("repair {} failed: {}", id, eptr); | |
rlogger.info("repair {} failed", id); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE KEYSPACE consistency WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 3}; | |
USE consistency; | |
CREATE TABLE consistency.users (user_name varchar PRIMARY KEY, birth_year bigint); | |
INSERT INTO test.users (user_name, birth_year) values ('tzach', 1970); | |
INSERT INTO test.users (user_name, birth_year) values ('nadav', 1972); | |
INSERT INTO test.users (user_name, birth_year) values ('shlomi', 1974); | |
INSERT INTO test.users (user_name, birth_year) values ('nir', 1980); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE KEYSPACE test WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 3}; | |
DESCRIBE test; | |
CREATE TABLE test.users (user_name varchar PRIMARY KEY, birth_year bigint); | |
DESCRIBE test.users; | |
INSERT INTO test.users (user_name, birth_year) values ('tzach', 1970); | |
INSERT INTO test.users (user_name, birth_year) values ('nadav', 1972); | |
INSERT INTO test.users (user_name, birth_year) values ('shlomi', 1974); | |
INSERT INTO test.users (user_name, birth_year) values ('nir', 1980); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE KEYSPACE petclinic WITH replication = {'class': 'SimpleStrategy', 'replication_factor' : '3'}; | |
DESCRIBE KEYSPACE | |
USE petclinic; | |
CREATE TABLE petclinic.pets ( | |
pet_chip_id uuid, | |
pet_first_name text, | |
pet_last_name text, |