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

config, directions URL

parent 16a351c2
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ RUN apt-get update; apt-get install -y wget curl openjdk-17-jdk python3-pip ipro
RUN pip3 install numpy==2.1.3 pyspark==3.4.1 cassandra-driver==3.28.0 grpcio==1.58.0 grpcio-tools==1.58.0
# Install packages in requirements.txt, you can add more packages you need to the requirements.txt file
COPY requirements.txt /requirements.txt
COPY /src/requirements.txt /requirements.txt
RUN pip3 install -r /requirements.txt
# SPARK
......
......@@ -106,8 +106,7 @@ Note: In both container, you need to set the enviroment variable PROJECT to p6.
### 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:
* **TODO - add the link**
https://git.doit.wisc.edu/cdis/cs/courses/cs544/s25/main/-/tree/main/lec/26-cassandra?ref_type=heads
Write additional code using the session to run CQL queries to do the following:
......
echo "-Xms128M" >> /apache-cassandra-5.0.0/conf/jvm-server.options
echo "-Xmx128M" >> /apache-cassandra-5.0.0/conf/jvm-server.options
# get the environment variable
PROJECT=${PROJECT}
......
......@@ -2,7 +2,7 @@ name: ${PROJECT}
services:
db:
image: ${PROJECT}-base
image: ${PROJECT}
hostname: db
volumes:
- "./src:/src"
......
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