Created
August 2, 2020 16:11
-
-
Save ZosBHAI/78718d2cb29fb0cd3fa91112f2bf6879 to your computer and use it in GitHub Desktop.
Pyspark Kernel in Anaconda
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
### Find the kernel.json location | |
jupyter kernelspec list | |
###Create Pyspark Folder and create Kernel.json file with below content | |
{ | |
"display_name": "pyspark", | |
"language": "python", | |
"argv": [ "/opt/anaconda3/bin/python", "-m", "ipykernel", "-f", "{connection_file}" ], | |
"env": { | |
"JAVA_HOME": "/usr/lib/jvm/java-8-openjdk-amd64", | |
"SPARK_HOME": "/usr/lib/spark", | |
"PYSPARK_PYTHON": "/opt/anaconda3/bin/python", | |
"PYTHONSTARTUP": "/usr/lib/spark/python/pyspark/shell.py", | |
"PYTHONPATH": "/usr/lib/spark/python/:/usr/lib/spark/python/lib/py4j-0.10.7-src.zip", | |
"PYSPARK_SUBMIT_ARGS": "--master yarn --deploy-mode client pyspark-shell" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment