Skip to content

Commit

Permalink
updated path setup
Browse files Browse the repository at this point in the history
  • Loading branch information
vighnesh-wednesday authored Feb 12, 2024
1 parent 70002f2 commit 34fb6a2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions automation/glue_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ tar -xvf spark-3.1.1-amzn-0-bin-3.2.1-amzn-3.tgz
ln -s spark-3.1.1-amzn-0-bin-3.2.1-amzn-3 spark
export SPARK_HOME=$(pwd)/spark


# Export Paths
export PATH=$PATH:$SPARK_HOME/bin:$MAVEN_HOME/bin:$AWS_GLUE_HOME/bin
export PYTHONPATH=$PROJECT_ROOT

# Download Glue ETL .jar files
cd $AWS_GLUE_HOME
chmod +x bin/glue-setup.sh
Expand All @@ -30,8 +35,6 @@ mvn install dependency:copy-dependencies
cp $AWS_GLUE_HOME/jarsv1/AWSGlue*.jar $SPARK_HOME/jars/
cp $AWS_GLUE_HOME/jarsv1/aws*.jar $SPARK_HOME/jars/

# Export Paths
# Setup Done
cd $PROJECT_ROOT
export PATH=$PATH:$SPARK_HOME/bin:$MAVEN_HOME/bin:$AWS_GLUE_HOME/bin
export PYTHONPATH=$PROJECT_ROOT
echo -e "\nGLUE LOCAL SETUP COMPLETE"

0 comments on commit 34fb6a2

Please sign in to comment.