-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add driver_host to spark config #2
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this work in the CI or CDM stack? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yea. I already deployed the new image in the CDM namespace and tested it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,16 @@ | |
|
||
echo "starting jupyter notebook" | ||
|
||
if [ -n "$SPARK_DRIVER_HOST" ]; then | ||
echo "Setting spark.driver.host to $SPARK_DRIVER_HOST" | ||
source /opt/bitnami/scripts/spark-env.sh | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is to get the conf file env var? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yea. I think this is the script bitnami is using to load all env variables. It only has There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
if [ -z "$SPARK_CONF_FILE" ]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @MrCreosote I think the previous attempt to write to the Spark config file failed because we didn't set |
||
echo "Error: unable to find SPARK_CONF_FILE path" | ||
exit 1 | ||
fi | ||
echo "spark.driver.host $SPARK_DRIVER_HOST" >> $SPARK_CONF_FILE | ||
fi | ||
|
||
WORKSPACE_DIR="/cdm_shared_workspace" | ||
mkdir -p "$WORKSPACE_DIR" | ||
cd "$WORKSPACE_DIR" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much easier for the user
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup