This is an automated email from the ASF dual-hosted git repository.
ggal pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-livy.git
The following commit(s) were added to refs/heads/master by this push:
new 49a36164 [LIVY-1023] Missing double quote causes server not to start
49a36164 is described below
commit 49a36164784f00a652df3d86f4eaf9652fb50f13
Author: Edward Capriolo <[email protected]>
AuthorDate: Wed Dec 3 15:10:16 2025 -0500
[LIVY-1023] Missing double quote causes server not to start
## What changes were proposed in this pull request?
bin/livy-server doesnt work at all.
## How was this patch tested?
```
edward@fedora:~/incubator-livy$ bin/livy-server
WARNING: Unknown module: ALL_UNNAMED specified to --add-exports
log4j:WARN No appenders could be found for logger
(org.apache.livy.server.AccessManager).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
Exception in thread "main" java.lang.IllegalArgumentException: Livy
requires the SPARK_HOME environment variable
at
org.apache.livy.utils.LivySparkUtils$$anonfun$1.apply(LivySparkUtils.scala:55)
at
org.apache.livy.utils.LivySparkUtils$$anonfun$1.apply(LivySparkUtils.scala:55)
at scala.Option.getOrElse(Option.scala:121)
at
org.apache.livy.utils.LivySparkUtils$.testSparkHome(LivySparkUtils.scala:54)
at org.apache.livy.server.LivyServer.start(LivyServer.scala:79)
at org.apache.livy.server.LivyServer$.main(LivyServer.scala:439)
at org.apache.livy.server.LivyServer.main(LivyServer.scala)
edward@fedora:~/incubator-livy$ git status
```
---
bin/livy-server | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/livy-server b/bin/livy-server
index b463423d..74c72398 100755
--- a/bin/livy-server
+++ b/bin/livy-server
@@ -115,7 +115,7 @@ start_livy_server() {
LIVY_SERVER_JAVA_OPTS+=" --add-exports=java.base/sun.net.dns=ALL-UNNAMED"
LIVY_SERVER_JAVA_OPTS+=" --add-exports=java.base/sun.net.util=ALL-UNNAMED"
LIVY_SERVER_JAVA_OPTS+="
--add-exports=java.base/sun.security.x509=ALL_UNNAMED"
- LIVY_SERVER_JAVA_OPTS+="
--add-exports=java.base/sun.security.util=ALL-UNNAMED
+ LIVY_SERVER_JAVA_OPTS+="
--add-exports=java.base/sun.security.util=ALL-UNNAMED"
command="$RUNNER $LIVY_SERVER_JAVA_OPTS -cp $LIVY_CLASSPATH:$CLASSPATH
org.apache.livy.server.LivyServer"