This is an automated email from the ASF dual-hosted git repository. sijie pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.wiki.git
The following commit(s) were added to refs/heads/master by this push: new cf2661b startup cassandra cluster cf2661b is described below commit cf2661b50d2017282cb0ea0c03a4405d35507e3d Author: Sijie Guo <guosi...@gmail.com> AuthorDate: Thu Jul 19 12:47:14 2018 -0700 startup cassandra cluster --- Release-Candidate-Validation.md | 59 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/Release-Candidate-Validation.md b/Release-Candidate-Validation.md index 6a1aa94..db9bb91 100644 --- a/Release-Candidate-Validation.md +++ b/Release-Candidate-Validation.md @@ -215,4 +215,61 @@ test-messages-Thu Jul 19 11:59:15 PDT 2018! test-messages-Thu Jul 19 11:59:15 PDT 2018! ----- got message ----- test-messages-Thu Jul 19 11:59:15 PDT 2018! -``` \ No newline at end of file +``` + +#### Validate Connectors + +> Make sure you have docker available at your laptop. If you don't have docker installed, you can skip this section. + +1. Setup a cassandra cluster. + +```shell +$ docker run -d --rm --name=cassandra -p 9042:9042 cassandra +``` + +Make sure the cassandra cluster is up running. + +```shell +// run docker ps to find the docker process for cassandra +$ docker ps +``` + +```shell +// check if the cassandra is running as expected +$ docker logs cassandra +``` + +```shell +// check the cluster status +$ docker exec cassandra nodetool status +Datacenter: datacenter1 +======================= +Status=Up/Down +|/ State=Normal/Leaving/Joining/Moving +-- Address Load Tokens Owns (effective) Host ID Rack +UN 172.17.0.2 103.67 KiB 256 100.0% af0e4b2f-84e0-4f0b-bb14-bd5f9070ff26 rack1 +``` + +```shell + +``` + +2. Create keyspace and table + +Run cqlsh: +```shell +$ docker exec -ti cassandra cqlsh localhost +Connected to Test Cluster at localhost:9042. +[cqlsh 5.0.1 | Cassandra 3.11.2 | CQL spec 3.4.4 | Native protocol v4] +Use HELP for help. +cqlsh> +``` + +In the cqlsh, create keyspace `pulsar_test_keyspace` and table `pulsar_test_table`. + +```shell +cqlsh> CREATE KEYSPACE pulsar_test_keyspace WITH replication = {'class':'SimpleStrategy', 'replication_factor':1}; +cqlsh> USE pulsar_test_keyspace; +cqlsh:pulsar_test_keyspace> CREATE TABLE pulsar_test_table (key text PRIMARY KEY, col text); + +```