Skip to content

Commit

Permalink
[NDAP-614] Kyuubi가 spark.ndap.acl.user 에 JDBC 사용자 ID를 전달하도록 수정 (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
karjensia authored Jul 3, 2024
1 parent af716b1 commit 86edd1f
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ class SparkProcessBuilder(
buffer += executable
buffer += CLASS
buffer += mainClass
/**
* add current user to spark.yarn.tags
* allConf is immutable, so add to conf at here
*/
conf.set(
SparkProcessBuilder.TAG_KEY,
conf.getOption(SparkProcessBuilder.TAG_KEY).map(_ + ",").getOrElse("") + s"$proxyUser")

var allConf = conf.getAll

Expand All @@ -96,7 +103,9 @@ class SparkProcessBuilder(
case None =>
setSparkUserName(proxyUser, buffer)
buffer += PROXY_USER
buffer += proxyUser
buffer += s"hive"
buffer += CONF
buffer += s"spark.ndap.acl.user=$proxyUser"
case Some(name) =>
setSparkUserName(name, buffer)
}
Expand Down

0 comments on commit 86edd1f

Please sign in to comment.