-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add aws-glue-sessions and sagemaker-kernel-wrapper to 0.9.0 (#111)
* Add aws-glue-sessions and sagemaker-kernel-wrapper to 0.9.0 * add upper bounds
- Loading branch information
1 parent
254a912
commit 45f0b7d
Showing
10 changed files
with
166 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"argv": [ | ||
"/opt/conda/bin/python", | ||
"-m", | ||
"sagemaker_kernel_wrapper.sm_gis_wrapper", | ||
"-m", | ||
"aws_glue_interactive_sessions_kernel.glue_pyspark.GlueKernel", | ||
"-f", | ||
"{connection_file}" | ||
], | ||
"display_name": "Glue PySpark and Ray", | ||
"env": {"request_origin": "SageMakerStudioPySparkNotebook", "glue_version": "3.0"}, | ||
"language": "python" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"argv": [ | ||
"/opt/conda/bin/python", | ||
"-m", | ||
"sagemaker_kernel_wrapper.sm_gis_wrapper", | ||
"-m", | ||
"aws_glue_interactive_sessions_kernel.glue_spark.GlueKernel", | ||
"-f", | ||
"{connection_file}" | ||
], | ||
"display_name": "Glue Spark", | ||
"env": {"request_origin": "SageMakerStudioSparkNotebook", "glue_version": "3.0"}, | ||
"language": "python" | ||
} |
This file contains 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
91 changes: 91 additions & 0 deletions
91
test/test_artifacts/v0/aws-glue-sessions/glue_notebook.ipynb
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "1a710e7c-7ebf-477a-88b5-3d85cb08cf19", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"%status" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "0ce599e8-6dcc-42c4-b10d-8e4e898eb436", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"%stop_session" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "013565d2-26dc-4710-83ca-1d00711be6c9", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"%glue_ray" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "e81bb7c2-bec2-4c4b-8d4d-59bf5e6a9daf", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"%etl" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "7a0b5de5-bf14-40f9-a944-f98e5a96e0f4", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"%streaming" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "cf24f505-6f26-447e-acc3-4af4556bb386", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [ | ||
"%help" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "33149d30-420e-4ebf-b32c-ca635db7cb10", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Glue PySpark and Ray", | ||
"language": "python", | ||
"name": "glue_pyspark" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "python", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "Python_Glue_Session", | ||
"pygments_lexer": "python3" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |
11 changes: 11 additions & 0 deletions
11
test/test_artifacts/v0/aws-glue-sessions/run_glue_sessions_notebook.sh
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
# Create an empty notebook file for papermill's output | ||
touch nb_output.ipynb | ||
|
||
kernels=('glue_pyspark' 'glue_spark') | ||
nb='script' | ||
for kernel in ${kernels[@]}; do | ||
papermill 'glue_notebook.ipynb' 'nb_output.ipynb' -k $kernel | ||
done | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
ARG COSMOS_IMAGE | ||
FROM $COSMOS_IMAGE | ||
|
||
ARG MAMBA_DOCKERFILE_ACTIVATE=1 | ||
|
||
COPY --chown=$MAMBA_USER:$MAMBA_USER aws-glue-sessions/ . | ||
RUN chmod +x run_glue_sessions_notebook.sh | ||
|
||
RUN micromamba install -y --freeze-installed -c conda-forge papermill | ||
|
||
CMD ["./run_glue_sessions_notebook.sh"] |
This file contains 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