X-Git-Url: https://code.communitydata.science/cdsc_reddit.git/blobdiff_plain/40d45637702fb51feb9f99ff7f6d71787af765ed..a60747292e91a47d122158659182f82bfd2e922a:/comments_2_parquet.sh?ds=inline diff --git a/comments_2_parquet.sh b/comments_2_parquet.sh index 802cc70..56ecc4d 100755 --- a/comments_2_parquet.sh +++ b/comments_2_parquet.sh @@ -1,9 +1,10 @@ -#!/usr/bin/env bash +## needs to be run by hand since i don't have a nice way of waiting on a parallel-sql job to complete -echo "!#/usr/bin/bash" > job_script.sh -echo "source $(pwd)/../bin/activate" >> job_script.sh +#!/usr/bin/env bash +echo "#!/usr/bin/bash" > job_script.sh +#echo "source $(pwd)/../bin/activate" >> job_script.sh echo "python3 $(pwd)/comments_2_parquet_part1.py" >> job_script.sh -srun -p comdata -A comdata --nodes=1 --mem=120G --time=48:00:00 job_script.sh +srun -p comdata -A comdata --nodes=1 --mem=120G --time=48:00:00 --pty job_script.sh start_spark_and_run.sh 1 $(pwd)/comments_2_parquet_part2.py