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/06/09 14:14:07 UTC

[GitHub] [pulsar] lgxbslgx commented on issue #15830: The standalone pulsar runs sql-worker error with macOS.

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: commits-unsubscribe@pulsar.apache.org

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