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
demandé il y a 2 ans4995 vues
1 réponse
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
EXPERT
répondu il y a 2 ans
  • 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

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions