Last active
May 30, 2022 11:27
-
-
Save moriyoshi/efd1e17d838a24401cfd90efbbdc993c to your computer and use it in GitHub Desktop.
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
{ | |
"argv": [ | |
"spark-launch-ipykernel", | |
"-f", | |
"{connection_file}" | |
], | |
"display_name": "Python 3 (ipykernel)", | |
"language": "python", | |
"metadata": { | |
"debugger": true | |
} | |
} |
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
#!/bin/sh | |
BINDIR="$(dirname "$0")" | |
PYSPARK_PYTHON="${BINDIR}/python" | |
PYSPARK_DRIVER_PYTHON="${BINDIR}/python" | |
SPARK_HOME="${HOME}/opt/spark-3.2.1-bin-hadoop3.2" | |
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.15+10/Contents/Home | |
export PYSPARK_PYTHON | |
export PYSPARK_DRIVER_PYTHON | |
export SPARK_HOME | |
export JAVA_HOME | |
IPYKERNEL_LAUNCHER="$("${PYSPARK_PYTHON}" -c 'import ipykernel_launcher; print(ipykernel_launcher.__file__)')" | |
"${SPARK_HOME}/bin/spark-submit" \ | |
"--conf" "spark.driver.memory=4g" \ | |
"--conf" "spark.executor.memory=4g" \ | |
"${IPYKERNEL_LAUNCHER}" "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment