Skip to content

Commit

Permalink
LIVY-978: Update the application tag generation logic in Livy (#409)
Browse files Browse the repository at this point in the history
Co-authored-by: Asif Khatri <[email protected]>
  • Loading branch information
askhatri and Asif Khatri authored Jul 22, 2023
1 parent 713cb3e commit b175ba1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ object BatchSession extends Logging {
proxyUser: Option[String],
sessionStore: SessionStore,
mockApp: Option[SparkApp] = None): BatchSession = {
val appTag = s"livy-batch-$id-${Random.alphanumeric.take(8).mkString}"
val appTag = s"livy-batch-$id-${Random.alphanumeric.take(8).mkString}".toLowerCase()
val impersonatedUser = accessManager.checkImpersonation(proxyUser, owner)

def createSparkApp(s: BatchSession): SparkApp = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ object InteractiveSession extends Logging {
ttl: Option[String],
mockApp: Option[SparkApp] = None,
mockClient: Option[RSCClient] = None): InteractiveSession = {
val appTag = s"livy-session-$id-${Random.alphanumeric.take(8).mkString}"
val appTag = s"livy-session-$id-${Random.alphanumeric.take(8).mkString}".toLowerCase()
val impersonatedUser = accessManager.checkImpersonation(proxyUser, owner)

val client = mockClient.orElse {
Expand Down

0 comments on commit b175ba1

Please sign in to comment.