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
Copy file name to clipboardExpand all lines: presto-native-execution/README.md
+28-5Lines changed: 28 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -214,12 +214,23 @@ Run IcebergExternalWorkerQueryRunner,
214
214
`$DATA_DIR/iceberg_data/<file_format>/<catalog_type>`. Here `file_format` could be `PARQUET | ORC | AVRO` and `catalog_type` could be `HIVE | HADOOP | NESSIE | REST`.
215
215
* Use classpath of module: choose `presto-native-execution` module.
* For Hive, Run `HiveExternalWorkerQueryRunner` from IntelliJ and wait until it starts (`======== SERVER STARTED ========` is displayed in the log output).
238
249
* For Iceberg, Run `IcebergExternalWorkerQueryRunner` from IntelliJ and wait until it starts (`======== SERVER STARTED ========` is displayed in the log output).
239
250
* Scroll up the log output and find `Discovery URL http://127.0.0.1:50555`. The port is 'random' with every start.
240
-
* Copy that port (or the whole URL) to the `discovery.uri` field in `presto/presto-native-execution/etc/config.properties` for the worker to discover the Coordinator.
251
+
* Copy that port (or the whole URL) to the `discovery.uri` field in `presto/presto-native-execution/etc/config.properties` for the worker to announce itself to the Coordinator.
241
252
* In CLion run "presto_server" module. Connection success will be indicated by `Announcement succeeded: 202` line in the log output.
242
-
* Two ways to run Presto client to start executing queries on the running local setup:
243
-
1. In command line from presto root directory run the presto client:
2. Run `Presto Client` Application (see above on how to create and setup the configuration) inside IntelliJ
253
+
* See **Run Presto Client** to start executing queries on the running local setup.
254
+
255
+
### Run Presto Coordinator + Sidecar
256
+
* Note that everything below can be done without using IDEs by running command line commands (not in this readme).
257
+
* Add a property `presto.default-namespace=native.default` to `presto-native-execution/etc/config.properties`.
258
+
* Run `NativeSidecarPluginQueryRunner` from IntelliJ and wait until it starts (`======== SERVER STARTED ========` is displayed in the log output).
259
+
* Scroll up the log output and find `Discovery URL http://127.0.0.1:50555`. The port is 'random' with every startup.
260
+
* Copy that port (or the whole URL) to the `discovery.uri` field in`presto/presto-native-execution/etc_sidecar/config.properties` for the sidecar to announce itself to the Coordinator.
261
+
* In CLion run "presto_server" module. Connection success will be indicated by `Announcement succeeded: 202` line in the log output.
262
+
* See **Run Presto Client** to start executing queries on the running local setup.
263
+
264
+
### Run Presto Client
265
+
* Run the following command from the presto root directory to start the Presto client:
0 commit comments