Skip to content
Snippets Groups Projects
Commit c463b53e authored by TYLER CARAZA-HARTER's avatar TYLER CARAZA-HARTER
Browse files

note about compose prefix

parent 118245fb
No related branches found
No related tags found
No related merge requests found
...@@ -105,9 +105,14 @@ Note: In both container, you need to set the enviroment variable PROJECT to p6. ...@@ -105,9 +105,14 @@ Note: In both container, you need to set the enviroment variable PROJECT to p6.
### Cassandra Schema ### Cassandra Schema
Inside the `__init__` method, you firstly need to connect to the Cassandra cluster, with `Cluster(['p6-db-1', 'p6-db-2', 'p6-db-3'])`. You can review how to connect here: Inside the `__init__` method, you firstly need to connect to the Cassandra cluster, like in lecture:
https://git.doit.wisc.edu/cdis/cs/courses/cs544/s25/main/-/tree/main/lec/26-cassandra?ref_type=heads https://git.doit.wisc.edu/cdis/cs/courses/cs544/s25/main/-/tree/main/lec/26-cassandra?ref_type=heads
Note: when running locally, the workers will be named `p6-db-<N>`, but
the autograder will use a different prefix, `????-db-<N>`. You can
use `os.environ['PROJECT']` to get the prefix programmatically and
connect to the correct Cassandra workers.
Write additional code using the session to run CQL queries to do the following: Write additional code using the session to run CQL queries to do the following:
* drop a `weather` keyspace if it already exists * drop a `weather` keyspace if it already exists
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment