Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#3750] feat: Support running in frontend #3749

Merged
merged 3 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ To stop the Gravitino server, please run:
./bin/gravitino.sh stop
```

Alternatively, to run the Gravitino server in frontend, please run:

```shell
./bin/gravitino.sh run
```

And press `CTRL+C` to stop the Gravitino server.

### Using Trino with Gravitino

Gravitino provides a Trino connector to access the metadata in Gravitino. To use Trino with Gravitino, please follow the [trino-gravitino-connector doc](docs/trino-connector/index.md).
Expand Down
9 changes: 8 additions & 1 deletion bin/gravitino.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
#set -ex
USAGE="-e Usage: bin/gravitino.sh [--config <conf-dir>]\n\t
{start|stop|restart|status}"
{start|run|stop|restart|status}"

if [[ "$1" == "--config" ]]; then
shift
Expand Down Expand Up @@ -110,6 +110,10 @@ function start() {
check_process_status
}

function run() {
${JAVA_RUNNER} ${JAVA_OPTS} ${GRAVITINO_DEBUG_OPTS} -cp ${GRAVITINO_CLASSPATH} ${GRAVITINO_SERVER_NAME}
}

function stop() {
local pid

Expand Down Expand Up @@ -164,6 +168,9 @@ case "${1}" in
start)
start
;;
run)
run
;;
stop)
stop
;;
Expand Down
8 changes: 7 additions & 1 deletion docs/how-to-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,18 @@ it automatically.

#### Start Gravitino server

After configuring the Gravitino server, start the Gravitino server by running:
After configuring the Gravitino server, start the Gravitino server on daemon by running:

```shell
./bin/gravitino.sh start
```

Alternatively, to run the Gravitino server in frontend, please run:

```shell
./bin/gravitino.sh run
```

You can access the Gravitino Web UI by typing [http://localhost:8090](http://localhost:8090) in your browser. or you
can run

Expand Down
Loading