Skip to content

Commit 6bf9e3c

Browse files
steveburnetttdcmeehan
authored andcommitted
Replace presto-router/README.txt with README.md
1 parent fb3a00f commit 6bf9e3c

File tree

2 files changed

+35
-29
lines changed

2 files changed

+35
-29
lines changed

presto-router/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Presto Router
2+
3+
Presto Router is a service that sits in front of Presto clusters. It routes requests to Presto clusters, collects statistics from Presto clusters, and shows aggregated results in a UI.
4+
5+
## Running Presto Router in your IDE
6+
7+
After building Presto, load the project into your IDE and run the router. In IntelliJ IDEA, use the following options to create a run configuration:
8+
9+
* Main Class: `com.facebook.presto.router.PrestoRouter`
10+
* VM Options: `-Drouter.config-file=etc/router-config.json -Dnode.environment=devel`
11+
* Working directory: `$MODULE_WORKING_DIR$` or `$MODULE_DIR$`(Depends on your version of IntelliJ)
12+
* Use classpath of module: `presto-router`
13+
14+
The working directory should be the `presto-router` subdirectory.
15+
16+
If necessary, edit the `etc/router-config.json` file and add the Presto clusters' endpoints in the `groups.members` field.
17+
18+
## Building the Web UI
19+
20+
Similar to the Presto Web UI, the router Web UI is also composed of React components and is written in JSX and ES6. To update this folder after making changes, run:
21+
22+
yarn --cwd presto-router/src/main/resources/router_ui/src install
23+
24+
If no JavaScript dependencies have changed (that is, no changes to `package.json`), it is faster to run:
25+
26+
yarn --cwd presto-router/src/main/resources/router_ui/src run package
27+
28+
To simplify iteration, you can run in `watch` mode, which automatically re-compiles when changes to source files are detected:
29+
30+
yarn --cwd presto-router/src/main/resources/router_ui/src run watch
31+
32+
To iterate quickly, re-build the project in IntelliJ after packaging is complete. Project resources are then hot-reloaded and changes are reflected on browser refresh.

presto-router/README.txt

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,6 @@
11
# Presto Router
22

3-
Presto router is a service sitting in front of Presto clusters. It routes requests to Presto clusters, collects statistics from Presto clusters, and shows aggregated results in a UI.
3+
Presto router is a service sitting in front of Presto clusters.
44

5-
## Running Presto router in your IDE
6-
7-
After building Presto, you can load the project into your IDE and run the router. In IntelliJ IDEA, use the following options to create a run configuration:
8-
9-
* Main Class: `com.facebook.presto.router.PrestoRouter`
10-
* VM Options: `-Drouter.config-file=etc/router-config.json -Dnode.environment=devel`
11-
* Working directory: `$MODULE_WORKING_DIR$` or `$MODULE_DIR$`(Depends your version of IntelliJ)
12-
* Use classpath of module: `presto-router`
13-
14-
The working directory should be the `presto-router` subdirectory.
15-
16-
If necessary, edit the `etc/router-config.json` file with the Presto clusters' endpoints in the `groups.members` field.
17-
18-
## Building the Web UI
19-
20-
Similar to the Presto Web UI, the router Web UI is also composed of React components and is written in JSX and ES6. To update this folder after making changes, simply run:
21-
22-
yarn --cwd presto-router/src/main/resources/router_ui/src install
23-
24-
If no JavaScript dependencies have changed (i.e., no changes to `package.json`), it is faster to run:
25-
26-
yarn --cwd presto-router/src/main/resources/router_ui/src run package
27-
28-
To simplify iteration, you can also run in `watch` mode, which automatically re-compiles when changes to source files are detected:
29-
30-
yarn --cwd presto-router/src/main/resources/router_ui/src run watch
31-
32-
To iterate quickly, simply re-build the project in IntelliJ after packaging is complete. Project resources will be hot-reloaded and changes are reflected on browser refresh.
5+
For more information, see
6+
https://github.com/prestodb/presto/blob/master/presto-router/README.md

0 commit comments

Comments
 (0)