How to delete glue interactive session from the list of sessions?

1

I have a session that I am using now for development, but I created some test sessions when I started using glue interactive sessions. I can see them when I list sessions with: %list_sessions.

How do I delete them?

I also have one with a name that I want to reuse, but when I try and create a session with that name, I get an error. I want to delete it to reuse it.

botocore.errorfactory.AlreadyExistsException: An error occurred (AlreadyExistsException) when calling the CreateSession operation: Session already created, sessionId=<name I want to use.>
jb-po
已提問 2 年前檢視次數 4995 次
1 個回答
3

Hi , currently you can delete a specific session id using the CLI or APIs:

aws glue delete-session --id <sessioID>

as described in the documentation to get interactive session work you need to copy (only for the preview) the service json into the botocore folder.

AWS CLI works as well with botocore, so you would need to copy/install the AWS CLI inside the Virtual env you are using and then copy the service json inside the botocore library in the AWS CLI path.

Alternatively you could update the botocore service json for Glue in the native AWS CLI path (with the risk to have that updated with a preview content.)

please consider that interactive session is still in preview.

hope this helps,

AWS
專家
已回答 2 年前
  • What version CLI? I tried with aws-cli/2.4.19. Not sure if I need to install via a different none v2 Github branch.

    Thx

  • @jb-po please see my updated answer

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南