where does this code run in interactive glue sessions

0

If I run this code in glue on a glue notebook / interactive session

import os
print(os.getcwd())

Where does it run exactly?

질문됨 3달 전120회 조회
2개 답변
0

When you run the provided code in an AWS Glue notebook or interactive session, it runs within the AWS Glue environment.Regardless of where the code is executed (whether in a notebook or interactive session), the os.getcwd() function returns the current working directory within the Glue environment. This directory is typically a temporary or transient location provided by Glue for storing intermediate files, logs, and outputs generated during the execution of ETL jobs or scripts.

profile picture
전문가
답변함 3달 전
profile pictureAWS
전문가
검토됨 3달 전
0

To be specific, that code runs on the driver of the Glue cluster created by the interactive session, so it points to /tmp on that server
If instead you ran %system pwd, it would execute the command locally and it would tell you the current path of the Jupyter process

profile pictureAWS
전문가
답변함 3달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠