X-Git-Url: https://code.communitydata.science/cdsc_reddit.git/blobdiff_plain/fc6575a28716f6d1611f988c48d15e64a22687ac..40d45637702fb51feb9f99ff7f6d71787af765ed:/submissions_2_parquet.sh diff --git a/submissions_2_parquet.sh b/submissions_2_parquet.sh index d1c6bce..4ec4354 100644 --- a/submissions_2_parquet.sh +++ b/submissions_2_parquet.sh @@ -1,8 +1,10 @@ #!/usr/bin/env bash -# part2 should be run on one ore more spark nodes +echo "!#/usr/bin/bash" > job_script.sh +echo "source $(pwd)/../bin/activate" >> job_script.sh +echo "python3 $(pwd)/submissions_2_parquet_part1.py" >> job_script.sh -./submissions_2_parquet_part1.py +srun -p comdata -A comdata --nodes=1 --mem=120G --time=48:00:00 job_script.sh start_spark_and_run.sh 1 $(pwd)/submissions_2_parquet_part2.py