Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 776 Bytes

README.md

File metadata and controls

54 lines (35 loc) · 776 Bytes

Feature Store - Astra DB Testing with PySpark & Locust

Setup

Virtual Environment

python -m venv venv

Activate Virtual Environment

source venv/bin/activate

Install Requirements

pip install -r requirements.txt

Loading the features with Python

python load/load_features.py

Running Pyspark

Loading the features with Pyspark

./pyspark/run_pyspark.sh

Detailed command

$SPARK_HOME/bin/spark-submit \
--packages com.datastax.spark:spark-cassandra-connector_2.12:3.3.0 \
--files <secure_connect_bundle file path>.zip  \
--conf spark.sql.extensions=com.datastax.spark.connector.CassandraSparkExtensions \
load.py 

Running Locust

locust -f locustfile.py