Skip to content

Commit

Permalink
changed lab numbers in fils
Browse files Browse the repository at this point in the history
  • Loading branch information
drchung5 committed Apr 11, 2023
1 parent f4ff2d1 commit a1e5698
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ tasks:
before: |
printf 'export PATH="$HOME%s:$PATH"\n' "/.astra/cli" >> $HOME/.bashrc
printf 'unset JAVA_TOOL_OPTIONS\n' >> $HOME/.bashrc
curl https://katapod-file-store.s3.us-west-1.amazonaws.com/ds201/lab07-environment.tar.gz \
curl https://katapod-file-store.s3.us-west-1.amazonaws.com/ds201/lab06-environment.tar.gz \
--output environment.tar.gz
tar xf environment.tar.gz
/workspace/ds201-lab06/apache-cassandra-4.1.0/bin/cassandra
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@

## Start the hands-on lab:

[![Open in KataPod](https://github.com/DataStax-Academy/katapod-shared-assets/blob/main/images/open-in-katapod.png)](https://gitpod.io/##https://github.com/drchung5/ds201-lab07/)
[![Open in KataPod](https://github.com/DataStax-Academy/katapod-shared-assets/blob/main/images/open-in-katapod.png)](https://gitpod.io/##https://github.com/drchung5/ds201-lab06/)
4 changes: 2 additions & 2 deletions step1.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
In this exercise there is a two-node Cassandra cluster. The root directories for the nodes are: `./node1` and `./node2`. You are going to edit the configuration file (`cassandra.yaml`) for *node2*. You are going to assign an `initial_token` value of `-9223372036854775808`


✅ Open `/workspace/ds201-lab07/node2/conf/cassandra.yaml` in a *nano* or the text editor of your choice.
✅ Open `/workspace/ds201-lab06/node2/conf/cassandra.yaml` in a *nano* or the text editor of your choice.
```
nano /workspace/ds201-lab07/node2/conf/cassandra.yaml
nano /workspace/ds201-lab06/node2/conf/cassandra.yaml
```

In the file find:
Expand Down
10 changes: 5 additions & 5 deletions step2.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

✅ Start *node1*
```
/workspace/ds201-lab07/node1/bin/cassandra
/workspace/ds201-lab06/node1/bin/cassandra
```
---
**Note:** You may see a `java.net.ConnectionError`, this is because this server is looking for a seed node but it is the first node in the cluster so there are none available. This is expected behavior.
Expand All @@ -37,27 +37,27 @@ Use `nodetool` to verify that node1 is running. (You may need to run this comman

✅ Verify that Cassandra is running.
```
/workspace/ds201-lab07/node1/bin/nodetool status
/workspace/ds201-lab06/node1/bin/nodetool status
```

✅ Once the first node is running, start the second node:
```
/workspace/ds201-lab07/node2/bin/cassandra
/workspace/ds201-lab06/node2/bin/cassandra
```

Use `nodetool` to verify that both nodes are running. (You may need to run this command multiple times.)

✅ Verify that Cassandra is running.
```
/workspace/ds201-lab07/node1/bin/nodetool status
/workspace/ds201-lab06/node1/bin/nodetool status
```

* Both nodes should be *Up* and *Normal*.
* The *Owns* shows 100% for both nodes because no (non-system) keyspaces have been created yet.



<img src="https://katapod-file-store.s3.us-west-1.amazonaws.com/ds201/lab07-image01.png" />
<img src="https://katapod-file-store.s3.us-west-1.amazonaws.com/ds201/lab06-image01.png" />

<!-- NAVIGATION -->
<div id="navigation-bottom" class="navigation-bottom">
Expand Down
6 changes: 3 additions & 3 deletions step3.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ In this step you will recreate the tables from the prvious exercises. This time

✅ Run *cqlsh* to connect to the cluster:
```
/workspace/ds201-lab07/node1/bin/cqlsh
/workspace/ds201-lab06/node1/bin/cqlsh
```
---
**Note:** You could run *cqlsh* from either the `node1` or `node2` directory. You could also specify to which server (by IP) it should connect. Since all Casandra nodes are peers, it doesn't matter where inthe cluster you connect.
Expand All @@ -48,7 +48,7 @@ CREATE TABLE videos (
);
COPY videos(id, added_date, title)
FROM '/workspace/ds201-lab07/data-files/videos.csv'
FROM '/workspace/ds201-lab06/data-files/videos.csv'
WITH HEADER=TRUE;
CREATE TABLE videos_by_tag (
Expand All @@ -60,7 +60,7 @@ CREATE TABLE videos_by_tag (
WITH CLUSTERING ORDER BY(added_date DESC, video_id ASC);
COPY videos_by_tag(tag, video_id, added_date, title)
FROM '/workspace/ds201-lab07/data-files/videos-by-tag.csv'
FROM '/workspace/ds201-lab06/data-files/videos-by-tag.csv'
WITH HEADER=TRUE;
```

Expand Down
8 changes: 4 additions & 4 deletions step4.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ exit

✅ Run the following command to refresh your memory as to which nodes own which token ranges.
```
/workspace/ds201-lab07/node1/bin/nodetool ring
/workspace/ds201-lab06/node1/bin/nodetool ring
```
✅ Execute the following commands to map the specific tags (`datastax` and `cassandra`) to endpoints/nodes.

Expand All @@ -52,14 +52,14 @@ exit


```
/workspace/ds201-lab07/node1/bin/nodetool getendpoints killrvideo videos_by_tag 'datastax'
/workspace/ds201-lab06/node1/bin/nodetool getendpoints killrvideo videos_by_tag 'datastax'
/workspace/ds201-lab07/node1/bin/nodetool getendpoints killrvideo videos_by_tag 'cassandra'
/workspace/ds201-lab06/node1/bin/nodetool getendpoints killrvideo videos_by_tag 'cassandra'
```

✅ Run `nodetool status` again to see the token range ownership percentages.
```
/workspace/ds201-lab07/node1/bin/nodetool status
/workspace/ds201-lab06/node1/bin/nodetool status
```

**Question:** What do the *Owns* values mean?
Expand Down

0 comments on commit a1e5698

Please sign in to comment.