Created
March 6, 2023 17:41
-
-
Save kazimmsyed/bfee8ed2b35c4496af17b3e4c40c44df to your computer and use it in GitHub Desktop.
Setting up my pyspark enviorment.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.