You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/03/30 14:06:27 UTC

[GitHub] [pulsar] lhotari opened a new issue #14951: Pulsar SQL won't start with Java 11.0.14.1

lhotari opened a new issue #14951:
URL: https://github.com/apache/pulsar/issues/14951


   **Describe the bug**
   
   Pulsar SQL won't start with Java 11.0.14.1 .
   
   This is the errror message in `/pulsar/lib/presto/var/log/launcher.log`
   ```
   Exception in thread "main" java.lang.IllegalArgumentException: Cannot parse version 11.0.14.1
   	at io.prestosql.server.JavaVersion.parse(JavaVersion.java:76)
   	at io.prestosql.server.PrestoSystemRequirements.verifyJavaVersion(PrestoSystemRequirements.java:102)
   	at io.prestosql.server.PrestoSystemRequirements.verifyJvmRequirements(PrestoSystemRequirements.java:45)
   	at io.prestosql.server.PrestoServer.run(PrestoServer.java:78)
   	at io.prestosql.$gen.Presto_332____20220330_100314_1.run(Unknown Source)
   	at io.prestosql.server.PrestoServer.main(PrestoServer.java:72)
   ```
   
   **To Reproduce**
   
   1. Use Java 11.0.14.1
   2. Try to run `/pulsar/bin/pulsar sql-worker start`
   
   **Expected behavior**
   
   Java 11.0.14.1 should be supported
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari commented on issue #14951: Pulsar SQL won't start with Java 11.0.14.1

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #14951:
URL: https://github.com/apache/pulsar/issues/14951#issuecomment-1084825185


   One possible solution to pass `-Djava.version` limited to 3 parts (x.x.x) using awk
   ```bash
   java -Djava.version=$(java -version 2>&1| head -1 | awk -F\" '{ print $2 }' | awk -F. '{ print $1 "." $2 "." $3 }') otherArguments
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari commented on issue #14951: Pulsar SQL won't start with Java 11.0.14.1

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #14951:
URL: https://github.com/apache/pulsar/issues/14951#issuecomment-1084811047


   A possible workaround would be to pass `-Djava.version=11.0.14` to the Pulsar SQL process. That would prevent the issue which prevents Pulsar SQL from starting.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari commented on issue #14951: Pulsar SQL won't start with Java 11.0.14.1

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #14951:
URL: https://github.com/apache/pulsar/issues/14951#issuecomment-1083376688


   It seems that the problem can be addressed by upgrading Trino to version 334 since that contains a commit where JavaVersion class was removed: https://github.com/trinodb/trino/commit/e7eeeedcc9751c022ffb9df648ee5442cd421c32


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari commented on issue #14951: Pulsar SQL won't start with Java 11.0.14.1

Posted by GitBox <gi...@apache.org>.
lhotari commented on issue #14951:
URL: https://github.com/apache/pulsar/issues/14951#issuecomment-1083373291


   This is the line of code where the "Cannot parse version 11.0.14.1" comes from: 
   https://github.com/trinodb/trino/blob/d239bb4c038124742bed07654dd73c257becc780/presto-main/src/main/java/io/prestosql/server/JavaVersion.java#L76


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] lhotari edited a comment on issue #14951: Pulsar SQL won't start with Java 11.0.14.1

Posted by GitBox <gi...@apache.org>.
lhotari edited a comment on issue #14951:
URL: https://github.com/apache/pulsar/issues/14951#issuecomment-1083373291


   This is the line of code where the "Cannot parse version 11.0.14.1" comes from: 
   https://github.com/trinodb/trino/blob/332/presto-main/src/main/java/io/prestosql/server/JavaVersion.java#L76


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org