File tree Expand file tree Collapse file tree 10 files changed +94
-10
lines changed Expand file tree Collapse file tree 10 files changed +94
-10
lines changed Original file line number Diff line number Diff line change 4
4
5
5
# Check if parameter is provided
6
6
if [ $# -ne 1 ]; then
7
- echo " Usage: $0 [smus|studio-ai ]"
7
+ echo " Usage: $0 [smus|smus-code-editor ]"
8
8
exit 1
9
9
fi
10
10
@@ -14,11 +14,11 @@ case "$1" in
14
14
bash " /etc/patches/smus-script/replace-job-with-schedule.sh"
15
15
PATCH_DIR=" /etc/patches/smus"
16
16
;;
17
- " studio-ai " )
18
- PATCH_DIR=" /etc/patches/studio-ai "
17
+ " smus-code-editor " )
18
+ PATCH_DIR=" /etc/patches/smus-code-editor "
19
19
;;
20
20
* )
21
- echo " Error: Parameter must be either 'smus' or 'studio-ai '"
21
+ echo " Error: Parameter must be either 'smus' or 'smus-code-editor '"
22
22
exit 1
23
23
;;
24
24
esac
Original file line number Diff line number Diff line change
1
+ --- /opt/conda/lib/python3.11/site-packages/sparkmagic/livyclientlib/command.py
2
+ +++ /opt/conda/lib/python3.11/site-packages/sparkmagic/livyclientlib/command.py
3
+ @@ -54,6 +54,7 @@
4
+ try:
5
+ session.wait_for_idle()
6
+ data = {"code": self.code}
7
+ + data["kind"] = session.kind
8
+ response = session.http_client.post_statement(session.id, data)
9
+ statement_id = response["id"]
10
+ output = self._get_statement_output(session, statement_id)
Original file line number Diff line number Diff line change
1
+ --- /opt/conda/lib/python3.11/site-packages/sparkmagic/utils/utils.py
2
+ +++ /opt/conda/lib/python3.11/site-packages/sparkmagic/utils/utils.py
3
+ @@ -94,15 +94,7 @@
4
+
5
+
6
+ def get_sessions_info_html(info_sessions, current_session_id):
7
+ - html = (
8
+ - """<table>
9
+ - <tr><th>ID</th><th>YARN Application ID</th><th>Kind</th><th>State</th><th>Spark UI</th><th>Driver log</th><th>User</th><th>Current session?</th></tr>"""
10
+ - + "".join(
11
+ - [session.get_row_html(current_session_id) for session in info_sessions]
12
+ - )
13
+ - + "</table>"
14
+ - )
15
+ -
16
+ + html = ""
17
+ return html
Original file line number Diff line number Diff line change
1
+ --- /opt/conda/lib/python3.11/site-packages/botocore/data/endpoints.json
2
+ +++ /opt/conda/lib/python3.11/site-packages/botocore/data/endpoints.json
3
+ @@ -5404,6 +5404,9 @@
4
+ "ap-northeast-3" : {
5
+ "hostname" : "datazone.ap-northeast-3.api.aws"
6
+ },
7
+ + "ap-south-1" : {
8
+ + "hostname" : "datazone.ap-south-1.api.aws"
9
+ + },
10
+ "ap-south-2" : {
11
+ "hostname" : "datazone.ap-south-2.api.aws"
12
+ },
Original file line number Diff line number Diff line change 6
6
# micromamba commands (e.g. using `micromamba activate` to activate environments)
7
7
eval " $( micromamba shell hook --shell=bash) "
8
8
9
+ # apply patches for SMUS
10
+ /etc/patches/apply_patches.sh smus-code-editor && sudo rm -rf /etc/patches
11
+
9
12
# Activate conda environment 'base', where supervisord is installed
10
13
micromamba activate base
11
14
12
15
export SAGEMAKER_APP_TYPE_LOWERCASE=$( echo $SAGEMAKER_APP_TYPE | tr ' [:upper:]' ' [:lower:]' )
13
16
export SERVICE_NAME=' SageMakerUnifiedStudio'
14
17
15
18
mkdir -p $STUDIO_LOGGING_DIR /$SAGEMAKER_APP_TYPE_LOWERCASE /supervisord
16
- exec supervisord -c /etc/supervisor/conf.d/supervisord-sagemaker-ui-code-editor.conf -n
19
+ exec supervisord -c /etc/supervisor/conf.d/supervisord-sagemaker-ui-code-editor.conf -n
Original file line number Diff line number Diff line change 4
4
5
5
# Check if parameter is provided
6
6
if [ $# -ne 1 ]; then
7
- echo " Usage: $0 [smus|studio-ai ]"
7
+ echo " Usage: $0 [smus|smus-code-editor ]"
8
8
exit 1
9
9
fi
10
10
@@ -14,11 +14,11 @@ case "$1" in
14
14
bash " /etc/patches/smus-script/replace-job-with-schedule.sh"
15
15
PATCH_DIR=" /etc/patches/smus"
16
16
;;
17
- " studio-ai " )
18
- PATCH_DIR=" /etc/patches/studio-ai "
17
+ " smus-code-editor " )
18
+ PATCH_DIR=" /etc/patches/smus-code-editor "
19
19
;;
20
20
* )
21
- echo " Error: Parameter must be either 'smus' or 'studio-ai '"
21
+ echo " Error: Parameter must be either 'smus' or 'smus-code-editor '"
22
22
exit 1
23
23
;;
24
24
esac
Original file line number Diff line number Diff line change
1
+ --- /opt/conda/lib/python3.11/site-packages/sparkmagic/livyclientlib/command.py
2
+ +++ /opt/conda/lib/python3.11/site-packages/sparkmagic/livyclientlib/command.py
3
+ @@ -54,6 +54,7 @@
4
+ try:
5
+ session.wait_for_idle()
6
+ data = {"code": self.code}
7
+ + data["kind"] = session.kind
8
+ response = session.http_client.post_statement(session.id, data)
9
+ statement_id = response["id"]
10
+ output = self._get_statement_output(session, statement_id)
Original file line number Diff line number Diff line change
1
+ --- /opt/conda/lib/python3.11/site-packages/sparkmagic/utils/utils.py
2
+ +++ /opt/conda/lib/python3.11/site-packages/sparkmagic/utils/utils.py
3
+ @@ -94,15 +94,7 @@
4
+
5
+
6
+ def get_sessions_info_html(info_sessions, current_session_id):
7
+ - html = (
8
+ - """<table>
9
+ - <tr><th>ID</th><th>YARN Application ID</th><th>Kind</th><th>State</th><th>Spark UI</th><th>Driver log</th><th>User</th><th>Current session?</th></tr>"""
10
+ - + "".join(
11
+ - [session.get_row_html(current_session_id) for session in info_sessions]
12
+ - )
13
+ - + "</table>"
14
+ - )
15
+ -
16
+ + html = ""
17
+ return html
Original file line number Diff line number Diff line change
1
+ --- /opt/conda/lib/python3.11/site-packages/botocore/data/endpoints.json
2
+ +++ /opt/conda/lib/python3.11/site-packages/botocore/data/endpoints.json
3
+ @@ -5404,6 +5404,9 @@
4
+ "ap-northeast-3" : {
5
+ "hostname" : "datazone.ap-northeast-3.api.aws"
6
+ },
7
+ + "ap-south-1" : {
8
+ + "hostname" : "datazone.ap-south-1.api.aws"
9
+ + },
10
+ "ap-south-2" : {
11
+ "hostname" : "datazone.ap-south-2.api.aws"
12
+ },
Original file line number Diff line number Diff line change 6
6
# micromamba commands (e.g. using `micromamba activate` to activate environments)
7
7
eval " $( micromamba shell hook --shell=bash) "
8
8
9
+ # apply patches for SMUS
10
+ /etc/patches/apply_patches.sh smus-code-editor && sudo rm -rf /etc/patches
11
+
9
12
# Activate conda environment 'base', where supervisord is installed
10
13
micromamba activate base
11
14
12
15
export SAGEMAKER_APP_TYPE_LOWERCASE=$( echo $SAGEMAKER_APP_TYPE | tr ' [:upper:]' ' [:lower:]' )
13
16
export SERVICE_NAME=' SageMakerUnifiedStudio'
14
17
15
18
mkdir -p $STUDIO_LOGGING_DIR /$SAGEMAKER_APP_TYPE_LOWERCASE /supervisord
16
- exec supervisord -c /etc/supervisor/conf.d/supervisord-sagemaker-ui-code-editor.conf -n
19
+ exec supervisord -c /etc/supervisor/conf.d/supervisord-sagemaker-ui-code-editor.conf -n
You can’t perform that action at this time.
0 commit comments