You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: update README with Java 17 run flags for running Presto in IntelliJ
Add `-Djdk.attach.allowAttachSelf=true` to enable self-attach in Java 17,
which is required for certain debugging and monitoring tools during local
Presto development. Also include the necessary `--add-opens` flags to allow
access to internal JDK APIs that Presto depends on.
* Working directory: `$MODULE_WORKING_DIR$` or `$MODULE_DIR$`(Depends your version of IntelliJ)
54
54
* Use classpath of module: `presto-main`
55
55
@@ -59,6 +59,32 @@ Additionally, the Hive plugin must be configured with location of your Hive meta
59
59
60
60
-Dhive.metastore.uri=thrift://localhost:9083
61
61
62
+
### Additional configuration for Java 17
63
+
64
+
When running with Java 17, additional `--add-opens` flags are required to allow reflective access used by certain catalogs based on which catalogs are configured.
65
+
For the default set of catalogs loaded when starting the Presto server in IntelliJ without changes, add the following flags to the **VM Options**:
These flags ensure that internal JDK modules are accessible at runtime for components used by Presto’s default configuration.
86
+
It is not a comprehensive list. Additional flags may need to be added, depending on the catalogs configured on the server.
87
+
62
88
### Using SOCKS for Hive or HDFS
63
89
64
90
If your Hive metastore or HDFS cluster is not directly accessible to your local machine, you can use SSH port forwarding to access it. Setup a dynamic SOCKS proxy with SSH listening on local port 1080:
0 commit comments