Skip to content

Commit 222b0d9

Browse files
committed
rsc: Don't set spark configuration values to an empty string
It's better to leave out a key rather than set the value to an empty string
1 parent 074d6a2 commit 222b0d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rsc/src/main/java/org/apache/livy/rsc/ContextLauncher.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,9 @@ public void run() {
254254

255255
private static void merge(RSCConf conf, String key, String livyConf, String sep) {
256256
String confValue = Utils.join(Arrays.asList(livyConf, conf.get(key)), sep);
257-
conf.set(key, confValue);
257+
if (confValue != null && !confValue.isEmpty()) {
258+
conf.set(key, confValue);
259+
}
258260
}
259261

260262
/**

0 commit comments

Comments
 (0)