Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zwangsheng committed Oct 20, 2022
1 parent a1fcf7f commit 0d40508
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class SparkProcessBuilder(
// For spark on kubernetes, spark pod using env SPARK_USER_NAME as current user
def setSparkUserName(userName: String, buffer: ArrayBuffer[String]): Unit = {
clusterManager().foreach(cm => {
if (cm.startsWith("k8s://")) {
if (cm.toUpperCase.startsWith("K8S")) {
buffer += CONF
buffer += s"spark.kubernetes.driverEnv.SPARK_USER_NAME=$userName"
buffer += CONF
Expand Down

0 comments on commit 0d40508

Please sign in to comment.