-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapt documentation, examples and demo scripts to Quarkus runtime
- Loading branch information
Showing
11 changed files
with
393 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
--- | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
linkTitle: Polaris Admin Tool | ||
title: Apache Polaris (Incubating) Admin Tool | ||
type: docs | ||
weight: 300 | ||
--- | ||
|
||
In order to help administrators manage their Polaris database, Polaris provides an administration | ||
tool. | ||
|
||
The tool is built using [Quarkus](https://quarkus.io/). | ||
|
||
## How to Download the Admin Tool | ||
|
||
As of January 2025, there is currently no binary release or official Docker image available for | ||
the tool. For now, you need to build the artifacts yourself, for example, by running the following | ||
command: | ||
|
||
```shell | ||
./gradlew :polaris-quarkus-admin:assemble -Dquarkus.container-image.build=true | ||
``` | ||
|
||
The above command will generate: | ||
|
||
- One standalone JAR in `quarkus/admin/build/polaris-quarkus-admin-*-runner.jar` | ||
- One Docker image `apache/polaris-server-admin-tool:latest` | ||
- One Docker image `apache/polaris-server-admin-tool:<version>` | ||
|
||
## Usage | ||
|
||
To run the standalone JAR, use the following command: | ||
|
||
```shell | ||
java -jar quarkus/admin/build/polaris-quarkus-admin-*-runner.jar --help | ||
``` | ||
|
||
To run the Docker image, use the following command: | ||
|
||
```shell | ||
docker run -p 8181:8181 apache/polaris-server-admin-tool:latest --help | ||
``` | ||
` | ||
The basic usage of the Polaris Admin Tool is outlined below: | ||
|
||
``` | ||
Usage: polaris-server-admin-tool.jar [-hV] [COMMAND] | ||
Polaris Admin Tool | ||
-h, --help Show this help message and exit. | ||
-V, --version Print version information and exit. | ||
Commands: | ||
help Display help information about the specified command. | ||
bootstrap Bootstraps principal credentials. | ||
purge Purge principal credentials. | ||
``` | ||
|
||
## Configuration | ||
|
||
The Polaris Admin Tool uses the same configuration as the Polaris server. The configuration can be | ||
done via environment variables or system properties. | ||
|
||
At a minimum, it is necessary to configure the Polaris Admin Tool to connect to the same database | ||
used by the Polaris server. This can be done by setting the following system properties: | ||
|
||
```shell | ||
java -jar quarkus/admin/build/polaris-quarkus-admin-*-runner.jar \ | ||
-Dpolaris.persistence.eclipselink.configuration-file=/path/to/persistence.xml | ||
-Dpolaris.persistence.eclipselink.persistence-unit=polaris | ||
``` | ||
|
||
See the [metastore documentation]({{% ref "metastores" %}}) for more information on configuring the | ||
database connection. | ||
|
||
## Bootstrapping Principal Credentials | ||
|
||
TODO | ||
|
||
## Purging Principal Credentials | ||
|
||
TODO |
Oops, something went wrong.