Skip to content

Commit f822285

Browse files
committed
it
1 parent 88bdfa5 commit f822285

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

integration-tests/kyuubi-kubernetes-it/src/test/scala/org/apache/kyuubi/kubernetes/test/spark/SparkOnKubernetesTestsSuite.scala

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@
1717

1818
package org.apache.kyuubi.kubernetes.test.spark
1919

20+
import java.util.UUID
21+
2022
import scala.collection.JavaConverters._
2123
import scala.concurrent.duration._
2224

2325
import org.apache.hadoop.conf.Configuration
2426
import org.apache.hadoop.net.NetUtils
2527

26-
import org.apache.kyuubi.{BatchTestHelper, KyuubiException, Logging, Utils, WithKyuubiServer, WithSimpleDFSService}
28+
import org.apache.kyuubi._
2729
import org.apache.kyuubi.config.KyuubiConf
2830
import org.apache.kyuubi.config.KyuubiConf.FRONTEND_THRIFT_BINARY_BIND_HOST
2931
import org.apache.kyuubi.engine.{ApplicationInfo, ApplicationOperation, KubernetesApplicationOperation}
@@ -134,7 +136,8 @@ class KyuubiOperationKubernetesClusterClientModeSuite
134136
server.backendService.sessionManager.asInstanceOf[KyuubiSessionManager]
135137

136138
test("Spark Client Mode On Kubernetes Kyuubi KubernetesApplicationOperation Suite") {
137-
val batchRequest = newSparkBatchRequest(conf.getAll)
139+
val batchRequest = newSparkBatchRequest(conf.getAll ++ Map(
140+
"kyuubi.batch.id" -> UUID.randomUUID().toString))
138141

139142
val sessionHandle = sessionManager.openBatchSession(
140143
"kyuubi",
@@ -193,7 +196,8 @@ class KyuubiOperationKubernetesClusterClusterModeSuite
193196
"spark.kubernetes.driver.pod.name",
194197
driverPodNamePrefix + "-" + System.currentTimeMillis())
195198

196-
val batchRequest = newSparkBatchRequest(conf.getAll)
199+
val batchRequest = newSparkBatchRequest(conf.getAll ++ Map(
200+
"kyuubi.batch.id" -> UUID.randomUUID().toString))
197201

198202
val sessionHandle = sessionManager.openBatchSession(
199203
"runner",

0 commit comments

Comments
 (0)