From 0142bb0d6cb136de4ac20abecb535e67665b4904 Mon Sep 17 00:00:00 2001 From: vinodmuralidharan01 Date: Wed, 31 Jul 2024 18:14:15 +0100 Subject: [PATCH] added glue session version update to fix code server halt issue (#8) Co-authored-by: Vinod M --- .../samples/vscode-with-glue/on-create.sh | 6 +++++- .../notebook-instances/samples/vscode-with-glue/on-start.sh | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/code-server/notebook-instances/samples/vscode-with-glue/on-create.sh b/code-server/notebook-instances/samples/vscode-with-glue/on-create.sh index d7d5c28..cff564c 100644 --- a/code-server/notebook-instances/samples/vscode-with-glue/on-create.sh +++ b/code-server/notebook-instances/samples/vscode-with-glue/on-create.sh @@ -37,7 +37,11 @@ echo "INFO: Site package directory is --- $SITE_PACKAGES_DIR" # Install Glue Sessions to Env echo "INFO: Installing AWS Glue Sessions with pip" -pip install aws-glue-sessions==1.0.0 +# Get Latest Glue Session version +#LATEST_GLUE_SESSIONS=$(curl -s https://pypi.org/pypi/aws-glue-sessions/json | python -c "import sys, json; print(json.load(sys.stdin)['info']['version'])") +#pip install aws-glue-sessions==$LATEST_GLUE_SESSIONS +# If a particular glue session version to be installed +pip install aws-glue-sessions==1.0.4 # Check if the 'glue_pyspark' environment is active and packages are properly installed if conda list -n glue_pyspark aws-glue-sessions | grep -q aws-glue-sessions; then diff --git a/code-server/notebook-instances/samples/vscode-with-glue/on-start.sh b/code-server/notebook-instances/samples/vscode-with-glue/on-start.sh index 2c9226a..f2abd80 100644 --- a/code-server/notebook-instances/samples/vscode-with-glue/on-start.sh +++ b/code-server/notebook-instances/samples/vscode-with-glue/on-start.sh @@ -37,7 +37,11 @@ echo "INFO: Site package directory is --- $SITE_PACKAGES_DIR" # Install Glue Sessions to Env echo "INFO: Installing AWS Glue Sessions with pip" -pip install aws-glue-sessions==1.0.0 +# Get Latest Glue Session version +#LATEST_GLUE_SESSIONS=$(curl -s https://pypi.org/pypi/aws-glue-sessions/json | python -c "import sys, json; print(json.load(sys.stdin)['info']['version'])") +#pip install aws-glue-sessions==$LATEST_GLUE_SESSIONS +# If a particular glue session version to be installed +pip install aws-glue-sessions==1.0.4 # Check if the 'glue_pyspark' environment is active and packages are properly installed if conda list -n glue_pyspark aws-glue-sessions | grep -q aws-glue-sessions; then