@@ -21,6 +21,7 @@ import java.io.File
2121import java .net .InetAddress
2222import java .nio .charset .StandardCharsets
2323import java .nio .file .{Files , Paths }
24+ import java .util .UUID
2425
2526import org .apache .hadoop .security .UserGroupInformation
2627import org .apache .hadoop .shaded .com .nimbusds .jose .util .StandardCharset
@@ -29,6 +30,7 @@ import org.scalatest.time.SpanSugar.convertIntToGrainOfTime
2930
3031import org .apache .kyuubi .{BatchTestHelper , RestClientTestHelper , Utils }
3132import org .apache .kyuubi .config .KyuubiConf
33+ import org .apache .kyuubi .config .KyuubiReservedKeys .KYUUBI_BATCH_ID_KEY
3234import org .apache .kyuubi .ctl .{CtlConf , TestPrematureExit }
3335import org .apache .kyuubi .metrics .{MetricsConstants , MetricsSystem }
3436import org .apache .kyuubi .session .KyuubiSessionManager
@@ -256,7 +258,7 @@ class BatchCliSuite extends RestClientTestHelper with TestPrematureExit with Bat
256258 " kyuubi" ,
257259 " kyuubi" ,
258260 InetAddress .getLocalHost.getCanonicalHostName,
259- Map .empty ,
261+ Map ( KYUUBI_BATCH_ID_KEY -> UUID .randomUUID().toString) ,
260262 newBatchRequest(
261263 " spark" ,
262264 " " ,
@@ -278,7 +280,7 @@ class BatchCliSuite extends RestClientTestHelper with TestPrematureExit with Bat
278280 " kyuubi" ,
279281 " kyuubi" ,
280282 InetAddress .getLocalHost.getCanonicalHostName,
281- Map .empty ,
283+ Map ( KYUUBI_BATCH_ID_KEY -> UUID .randomUUID().toString) ,
282284 newBatchRequest(
283285 " spark" ,
284286 " " ,
@@ -288,7 +290,7 @@ class BatchCliSuite extends RestClientTestHelper with TestPrematureExit with Bat
288290 " kyuubi" ,
289291 " kyuubi" ,
290292 InetAddress .getLocalHost.getCanonicalHostName,
291- Map .empty ,
293+ Map ( KYUUBI_BATCH_ID_KEY -> UUID .randomUUID().toString) ,
292294 newBatchRequest(
293295 " spark" ,
294296 " " ,
0 commit comments