Skip to content

Commit

Permalink
Fix merge conflict since startUserClass now using runAsUser
Browse files Browse the repository at this point in the history
  • Loading branch information
tgravescs committed Mar 6, 2014
1 parent 05eebed commit dfe3918
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ class ApplicationMaster(args: ApplicationMasterArguments, conf: Configuration,
addAmIpFilter()

ApplicationMaster.register(this)

// Call this to force generation of secret so it gets populated into the
// hadoop UGI. This has to happen before the startUserClass which does a
// doAs in order for the credentials to be passed on to the worker containers.
val securityMgr = new SecurityManager(sparkConf)

// Start the user's JAR
userThread = startUserClass()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ class ApplicationMaster(args: ApplicationMasterArguments, conf: Configuration,

ApplicationMaster.register(this)

// Call this to force generation of secret so it gets populated into the
// hadoop UGI. This has to happen before the startUserClass which does a
// doAs in order for the credentials to be passed on to the worker containers.
val securityMgr = new SecurityManager(sparkConf)

// Start the user's JAR
userThread = startUserClass()

Expand Down

0 comments on commit dfe3918

Please sign in to comment.