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年前4994ビュー
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

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ