From ca598bd58a3b78761b50674b3da98ce84bf85ab9 Mon Sep 17 00:00:00 2001 From: adnanhemani Date: Thu, 24 Apr 2025 15:50:43 -0700 Subject: [PATCH 1/2] Update Local Root Principal Credentials in Quickstart --- .../unreleased/getting-started/quickstart.md | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/site/content/in-dev/unreleased/getting-started/quickstart.md b/site/content/in-dev/unreleased/getting-started/quickstart.md index a1a5d32df2..d1e9ca6e7a 100644 --- a/site/content/in-dev/unreleased/getting-started/quickstart.md +++ b/site/content/in-dev/unreleased/getting-started/quickstart.md @@ -72,7 +72,6 @@ cd ~/polaris You should see output for some time as Polaris builds and starts up. Eventually, you won’t see any more logs and should see messages that resemble the following: ``` -realm: root principal credentials: : INFO [io.quarkus] [,] [,,,] (Quarkus Main Thread) polaris-quarkus-service on JVM (powered by Quarkus ) started in 2.656s. Listening on: http://localhost:8181. Management interface listening on http://0.0.0.0:8182. INFO [io.quarkus] [,] [,,,] (Quarkus Main Thread) Profile prod activated. Live Coding activated. INFO [io.quarkus] [,] [,,,] (Quarkus Main Thread) Installed features: [...] @@ -80,20 +79,14 @@ INFO [io.quarkus] [,] [,,,] (Quarkus Main Thread) Installed features: [...] At this point, Polaris is running. -When using a Gradle-launched Polaris instance in this tutorial, we'll launch an instance of Polaris that stores entities only in-memory. This means that any entities that you define will be destroyed when Polaris is shut down. It also means that Polaris will automatically bootstrap itself with root credentials. For more information on how to configure Polaris for production usage, see the [docs]({{% relref "../configuring-polaris-for-production" %}}). - -When Polaris is launched using an in-memory metastore, the root principal credentials can be found -in stdout on initial startup. Look for a line that resembles the following: - -``` -realm: root principal credentials: : -``` - -Be sure to take note of these credentials as we'll be using them below. You can also set these credentials as environment variables for use with the Polaris CLI: +When using a Gradle-launched Polaris instance in this tutorial, we'll launch an instance of Polaris that stores entities only in-memory. This means that any entities that you define will be destroyed when Polaris is shut down. +For more information on how to configure Polaris for production usage, see the [docs]({{% relref "../configuring-polaris-for-production" %}}). +Unless explicitly specified, Polaris will start with pre-configured credentials for the root principal credentials. These credentials can be found within the [code](https://github.com/apache/polaris/blame/6308ba02e89236a72e8661ca0e4d7494ee3ff946/quarkus/server/build.gradle.kts#L82). +You can also set these credentials as environment variables for use with the Polaris CLI: ```shell -export CLIENT_ID= -export CLIENT_SECRET= +export CLIENT_ID=root +export CLIENT_SECRET=secret ``` ### Installing Apache Spark and Trino Locally for Testing From 55253868a231b7ca114163f154bbe397cdc514bb Mon Sep 17 00:00:00 2001 From: adnanhemani Date: Thu, 24 Apr 2025 17:52:01 -0700 Subject: [PATCH 2/2] Refactor --- site/content/in-dev/unreleased/getting-started/quickstart.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/in-dev/unreleased/getting-started/quickstart.md b/site/content/in-dev/unreleased/getting-started/quickstart.md index d1e9ca6e7a..3ca17de4b1 100644 --- a/site/content/in-dev/unreleased/getting-started/quickstart.md +++ b/site/content/in-dev/unreleased/getting-started/quickstart.md @@ -82,7 +82,7 @@ At this point, Polaris is running. When using a Gradle-launched Polaris instance in this tutorial, we'll launch an instance of Polaris that stores entities only in-memory. This means that any entities that you define will be destroyed when Polaris is shut down. For more information on how to configure Polaris for production usage, see the [docs]({{% relref "../configuring-polaris-for-production" %}}). -Unless explicitly specified, Polaris will start with pre-configured credentials for the root principal credentials. These credentials can be found within the [code](https://github.com/apache/polaris/blame/6308ba02e89236a72e8661ca0e4d7494ee3ff946/quarkus/server/build.gradle.kts#L82). +When Polaris is run using the `./gradlew run` command, the root principal credentials are `root` and `secret` for the `CLIENT_ID` and `CLIENT_SECRET`, respectively. You can also set these credentials as environment variables for use with the Polaris CLI: ```shell export CLIENT_ID=root