Skip to content

Instantly share code, notes, and snippets.

@IDK9911
Created March 6, 2023 17:41
Show Gist options
  • Save IDK9911/bfee8ed2b35c4496af17b3e4c40c44df to your computer and use it in GitHub Desktop.
Save IDK9911/bfee8ed2b35c4496af17b3e4c40c44df to your computer and use it in GitHub Desktop.
Setting up my pyspark enviorment.
if [ -e log4j2.properties.template ];
then
echo "Renaming file"
chmod u+rwx log4j2.properties.template
mv log4j2.properties.template log4j2.properties
fi
sed '/Logger/{
s/info/ERROR/
}' log4* >> log4j2.properties
@IDK9911
Copy link
Author

IDK9911 commented Mar 6, 2023

Note: Pyspark only work with Java8 or Java11.
Also,
path[10]=/Users/kazimsyed/Organized/all_folders/spark-3.3.2-bin-hadoop3/bin;
Here to have ur changes persist add this to ur .zlogin or .zprofile.

@IDK9911
Copy link
Author

IDK9911 commented Mar 6, 2023

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment