Skip to content

Returns the Spark Connect endpoint URL and a time-limited authentication token for the specified session

Description

Returns the Spark Connect endpoint URL and a time-limited authentication token for the specified session. Use the endpoint and token to connect a PySpark client to the session. Call this operation again when the token expires to obtain a new one.

Usage

emr_get_session_endpoint(ClusterId, SessionId)

Arguments

  • ClusterId

[required] The ID of the cluster that the session belongs to.

  • SessionId

[required] The ID of the session.

Value

A list with the following syntax:

list(
  Endpoint = "string",
  AuthToken = "string",
  AuthTokenExpirationTime = as.POSIXct(
    "2015-01-01"
  ),
  Credentials = list(
    UsernamePassword = list(
      Username = "string",
      Password = "string"
    )
  )
)

Request syntax

svc$get_session_endpoint(
  ClusterId = "string",
  SessionId = "string"
)