lgxbslgx commented on issue #15830:
URL: https://github.com/apache/pulsar/issues/15830#issuecomment-1151175238

   Such similar issues began at OpenJDK16 because of 
[JEP-396](https://openjdk.java.net/jeps/396). So you need to add something like 
`--add-opens java.base/java.lang=ALL-UNNAMED` to the options when using `java` 
command after JDK 16 (included).
   
   Back to `sql-worker`, in order to solve @warriorsfly 's error of JDK17, you 
need to add the following two lines to the file `conf/presto/jvm.config`. 
Please note that you can't put these two lines into one line, because the 
command `./bin/pulsar sql-worker` can't identify the one line style now.
   
   ```
   --add-opens
   java.base/java.lang=ALL-UNNAMED
   ```
   
   ---
   
   More information for you about the source code:
   
   The command `./bin/pulsar sql-worker` will run the python launcher code 
`lib/presto/bin/launcher.py`. In `lib/presto/bin/launcher.py`, it uses the 
python method `os.execvpe` to execute the `java` command.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to