You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@polaris.apache.org by "dimas-b (via GitHub)" <gi...@apache.org> on 2025/08/01 03:48:53 UTC
[PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
dimas-b opened a new pull request, #2227:
URL: https://github.com/apache/polaris/pull/2227
A simple page of step-by-step instructions for setting up a local environment with Polaris, MinIO and Spark.
Closes #1530
<!--
Possible security vulnerabilities: STOP here and contact security@apache.org instead!
Please update the title of the PR with a meaningful message - do not leave it "empty" or "generated"
Please update this summary field:
The summary should cover these topics, if applicable:
* the motivation for the change
* a description of the status quo, for example the current behavior
* the desired behavior
* etc
PR checklist:
- Do a self-review of your code before opening a pull request
- Make sure that there's good test coverage for the changes included in this PR
- Run tests locally before pushing a PR (./gradlew check)
- Code should have comments where applicable. Particularly hard-to-understand
areas deserve good in-line documentation.
- Include changes and enhancements to the documentation (in site/content/in-dev/unreleased)
- For Work In Progress Pull Requests, please use the Draft PR feature.
Make sure to add the information BELOW this comment.
Everything in this comment will NOT be added to the PR description.
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2270679559
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
+---
+
+In this guide we walk through setting up a simple Polaris Server with local [MinIO](https://www.min.io/) storage.
+
+Similar configurations are expected to work with other S3-compatible systems that also have the
+[STS](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) API.
+
+# Setup
+
+Start MinIO. Here's a `docker` example.
+
+```shell
+docker run -p 9100:9000 -p 9101:9001 --name minio \
+ -e "MINIO_ROOT_USER=miniouser" -e "MINIO_ROOT_PASSWORD=miniopwd" \
+ quay.io/minio/minio:latest server /data --console-address ":9001"
+```
+
+Create a bucket called "test" in MinIO UI or CLI.
+
+Edit `~/.aws/credentials` and create a `minio` profile.
+
+```
+[minio]
+aws_access_key_id = miniouser
+aws_secret_access_key = miniopwd
+region=us-west-2
+```
+
+In the shell where the Polaris Server will be started `export AWS_PROFILE=minio`.
+
+Build and run Polaris Server.
+
+```shell
+./gradlew assemble
+
+env POLARIS_BOOTSTRAP_CREDENTIALS=POLARIS,root,s3cr3t \
+ java -jar runtime/server/build/quarkus-app/quarkus-run.jar
+```
+
+Note: Apache Polaris 1.0.0-incubating does not yet have all the code required for proper operation with MinIO.
+The next release is expected to provide full support for S3-compatible storage with STS.
+
+Create a catalog named "polaris".
+
+```shell
+./polaris --client-id root --client-secret s3cr3t \
+ catalogs create polaris --storage-type S3 \
+ --default-base-location 's3://test' \
+ --role-arn arn:aws:iam::123456789012:role/dummy \
+ --region us-west-2 \
+ --endpoint http://127.0.0.1:9100 \
+ --path-style-access
+```
+
+Note: the role and region parameters need to be set to avoid runtime errors in Polaris,
+but they will be ignored by MinIO.
+
+For the sake of simplicity, grant `CATALOG_MANAGE_CONTENT` directly to the `catalog_admin` role
Review Comment:
+1 to both!
I think you bring up a good point about the general "arrangement" of our docs. To me, getting-started / quickstart docs should show you the quickest thing to get started, and that means a docker-compose. However, there's a lot of value in a guide like this as well.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2249138722
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
+---
+
+In this guide we walk through setting up a simple Polaris Server with local [MinIO](https://www.min.io/) storage.
+
+Similar configurations are expected to work with other S3-compatible systems that also have the
+[STS](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) API.
+
+# Setup
+
+Start MinIO. Here's a `docker` example.
+
+```shell
+docker run -p 9100:9000 -p 9101:9001 --name minio \
+ -e "MINIO_ROOT_USER=miniouser" -e "MINIO_ROOT_PASSWORD=miniopwd" \
+ quay.io/minio/minio:latest server /data --console-address ":9001"
+```
+
+Create a bucket called "test" in MinIO UI or CLI.
+
+Edit `~/.aws/credentials` and create a `minio` profile.
+
+```
+[minio]
+aws_access_key_id = miniouser
+aws_secret_access_key = miniopwd
+region=us-west-2
+```
+
+In the shell where the Polaris Server will be started `export AWS_PROFILE=minio`.
+
+Build and run Polaris Server.
+
+```shell
+./gradlew assemble
+
+env POLARIS_BOOTSTRAP_CREDENTIALS=POLARIS,root,s3cr3t \
+ java -jar runtime/server/build/quarkus-app/quarkus-run.jar
+```
+
+Note: Apache Polaris 1.0.0-incubating does not yet have all the code required for proper operation with MinIO.
+The next release is expected to provide full support for S3-compatible storage with STS.
+
+Create a catalog named "polaris".
+
+```shell
+./polaris --client-id root --client-secret s3cr3t \
+ catalogs create polaris --storage-type S3 \
+ --default-base-location 's3://test' \
+ --role-arn arn:aws:iam::123456789012:role/dummy \
+ --region us-west-2 \
+ --endpoint http://127.0.0.1:9100 \
+ --path-style-access
+```
+
+Note: the role and region parameters need to be set to avoid runtime errors in Polaris,
+but they will be ignored by MinIO.
Review Comment:
huh, that's weird. should we fix this? Should we have made a different `storage-type`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b merged PR #2227:
URL: https://github.com/apache/polaris/pull/2227
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2268183639
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
+---
+
+In this guide we walk through setting up a simple Polaris Server with local [MinIO](https://www.min.io/) storage.
+
+Similar configurations are expected to work with other S3-compatible systems that also have the
+[STS](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) API.
+
+# Setup
+
+Start MinIO. Here's a `docker` example.
+
+```shell
+docker run -p 9100:9000 -p 9101:9001 --name minio \
+ -e "MINIO_ROOT_USER=miniouser" -e "MINIO_ROOT_PASSWORD=miniopwd" \
+ quay.io/minio/minio:latest server /data --console-address ":9001"
+```
+
+Create a bucket called "test" in MinIO UI or CLI.
+
+Edit `~/.aws/credentials` and create a `minio` profile.
+
+```
+[minio]
+aws_access_key_id = miniouser
+aws_secret_access_key = miniopwd
+region=us-west-2
+```
+
+In the shell where the Polaris Server will be started `export AWS_PROFILE=minio`.
+
+Build and run Polaris Server.
+
+```shell
+./gradlew assemble
+
+env POLARIS_BOOTSTRAP_CREDENTIALS=POLARIS,root,s3cr3t \
+ java -jar runtime/server/build/quarkus-app/quarkus-run.jar
+```
+
+Note: Apache Polaris 1.0.0-incubating does not yet have all the code required for proper operation with MinIO.
+The next release is expected to provide full support for S3-compatible storage with STS.
+
+Create a catalog named "polaris".
+
+```shell
+./polaris --client-id root --client-secret s3cr3t \
+ catalogs create polaris --storage-type S3 \
+ --default-base-location 's3://test' \
+ --role-arn arn:aws:iam::123456789012:role/dummy \
+ --region us-west-2 \
+ --endpoint http://127.0.0.1:9100 \
+ --path-style-access
+```
+
+Note: the role and region parameters need to be set to avoid runtime errors in Polaris,
+but they will be ignored by MinIO.
+
+For the sake of simplicity, grant `CATALOG_MANAGE_CONTENT` directly to the `catalog_admin` role
Review Comment:
@eric-maynard : just to clarity, do you prefer to drop this doc page and do docker-compose for MinIO instead... or do you prefer explaining more in the doc page?
As I commented above, from my POV, there is a class of users who would benefit from an "instructions" page more than from a low-level docker-compose example. That said, I think adding a docker-compose example for MinIO makes sense too... Maybe we can have both the doc page and docker-compose? WDYT?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2277782349
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,115 @@
+---
+#
+# 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.
+#
+Title: Deploying Polaris on MinIO
+type: docs
+weight: 350
+---
+
+In this guide we walk through setting up a simple Polaris Server with local [MinIO](https://www.min.io/) storage.
+
+Similar configurations are expected to work with other S3-compatible systems that also have the
+[STS](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) API.
+
+# Setup
+
+Clone the Polaris source repository, then build a docker image for Polaris.
+
+```shell
+./gradlew :polaris-server:assemble -Dquarkus.container-image.build=true
+```
+
+Start MinIO with Polaris using the `docker compose` example.
+
+```shell
+docker compose -f getting-started/minio/docker-compose.yml up
+```
+
+The compose script will start MinIO on default ports (API on 9000, UI on 9001)
+plus a Polaris Server pre-configured to that MinIO instance.
+
+In this example the `root` Polaris uses the password set to `s3cr3t`.
Review Comment:
nice catch - fixed (with a different text)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2271690464
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
Review Comment:
Anyway, I updated weight to 350 and title to `Deploying on MinIO` to align better with `Deploying Polaris on Cloud Providers`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2271694935
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
+---
+
+In this guide we walk through setting up a simple Polaris Server with local [MinIO](https://www.min.io/) storage.
+
+Similar configurations are expected to work with other S3-compatible systems that also have the
+[STS](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) API.
+
+# Setup
+
+Start MinIO. Here's a `docker` example.
+
+```shell
+docker run -p 9100:9000 -p 9101:9001 --name minio \
+ -e "MINIO_ROOT_USER=miniouser" -e "MINIO_ROOT_PASSWORD=miniopwd" \
+ quay.io/minio/minio:latest server /data --console-address ":9001"
+```
+
+Create a bucket called "test" in MinIO UI or CLI.
+
+Edit `~/.aws/credentials` and create a `minio` profile.
+
+```
+[minio]
+aws_access_key_id = miniouser
+aws_secret_access_key = miniopwd
+region=us-west-2
+```
+
+In the shell where the Polaris Server will be started `export AWS_PROFILE=minio`.
+
+Build and run Polaris Server.
+
+```shell
+./gradlew assemble
+
+env POLARIS_BOOTSTRAP_CREDENTIALS=POLARIS,root,s3cr3t \
+ java -jar runtime/server/build/quarkus-app/quarkus-run.jar
Review Comment:
It shows an alternative way of running a local build... just for user education. I think I'm going to refer to docker-compose instead... as discussed in other threads.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2271679756
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
Review Comment:
but `access-control.md` is under a different parent... I guess they do not conflict on weights :thinking:
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2275565023
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,115 @@
+---
+#
+# 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.
+#
+Title: Deploying Polaris on MinIO
+type: docs
+weight: 350
+---
+
+In this guide we walk through setting up a simple Polaris Server with local [MinIO](https://www.min.io/) storage.
+
+Similar configurations are expected to work with other S3-compatible systems that also have the
+[STS](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) API.
+
+# Setup
+
+Clone the Polaris source repository, then build a docker image for Polaris.
+
+```shell
+./gradlew :polaris-server:assemble -Dquarkus.container-image.build=true
+```
+
+Start MinIO with Polaris using the `docker compose` example.
+
+```shell
+docker compose -f getting-started/minio/docker-compose.yml up
+```
+
+The compose script will start MinIO on default ports (API on 9000, UI on 9001)
+plus a Polaris Server pre-configured to that MinIO instance.
+
+In this example the `root` Polaris uses the password set to `s3cr3t`.
Review Comment:
```suggestion
In this example the `root` principal uses the password set to `s3cr3t`.
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "adutra (via GitHub)" <gi...@apache.org>.
adutra commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2270577339
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
+---
+
+In this guide we walk through setting up a simple Polaris Server with local [MinIO](https://www.min.io/) storage.
+
+Similar configurations are expected to work with other S3-compatible systems that also have the
+[STS](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) API.
+
+# Setup
+
+Start MinIO. Here's a `docker` example.
+
+```shell
+docker run -p 9100:9000 -p 9101:9001 --name minio \
+ -e "MINIO_ROOT_USER=miniouser" -e "MINIO_ROOT_PASSWORD=miniopwd" \
+ quay.io/minio/minio:latest server /data --console-address ":9001"
+```
+
+Create a bucket called "test" in MinIO UI or CLI.
+
+Edit `~/.aws/credentials` and create a `minio` profile.
+
+```
+[minio]
+aws_access_key_id = miniouser
+aws_secret_access_key = miniopwd
+region=us-west-2
+```
+
+In the shell where the Polaris Server will be started `export AWS_PROFILE=minio`.
+
+Build and run Polaris Server.
+
+```shell
+./gradlew assemble
+
+env POLARIS_BOOTSTRAP_CREDENTIALS=POLARIS,root,s3cr3t \
+ java -jar runtime/server/build/quarkus-app/quarkus-run.jar
+```
+
+Note: Apache Polaris 1.0.0-incubating does not yet have all the code required for proper operation with MinIO.
+The next release is expected to provide full support for S3-compatible storage with STS.
+
+Create a catalog named "polaris".
+
+```shell
+./polaris --client-id root --client-secret s3cr3t \
+ catalogs create polaris --storage-type S3 \
+ --default-base-location 's3://test' \
+ --role-arn arn:aws:iam::123456789012:role/dummy \
+ --region us-west-2 \
+ --endpoint http://127.0.0.1:9100 \
+ --path-style-access
+```
+
+Note: the role and region parameters need to be set to avoid runtime errors in Polaris,
+but they will be ignored by MinIO.
Review Comment:
FYI https://github.com/apache/polaris/issues/2325 will remove the need to input a role ARN.
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
+---
+
+In this guide we walk through setting up a simple Polaris Server with local [MinIO](https://www.min.io/) storage.
+
+Similar configurations are expected to work with other S3-compatible systems that also have the
+[STS](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) API.
+
+# Setup
+
+Start MinIO. Here's a `docker` example.
+
+```shell
+docker run -p 9100:9000 -p 9101:9001 --name minio \
+ -e "MINIO_ROOT_USER=miniouser" -e "MINIO_ROOT_PASSWORD=miniopwd" \
+ quay.io/minio/minio:latest server /data --console-address ":9001"
+```
+
+Create a bucket called "test" in MinIO UI or CLI.
+
+Edit `~/.aws/credentials` and create a `minio` profile.
+
+```
+[minio]
+aws_access_key_id = miniouser
+aws_secret_access_key = miniopwd
+region=us-west-2
+```
+
+In the shell where the Polaris Server will be started `export AWS_PROFILE=minio`.
+
+Build and run Polaris Server.
+
+```shell
+./gradlew assemble
+
+env POLARIS_BOOTSTRAP_CREDENTIALS=POLARIS,root,s3cr3t \
+ java -jar runtime/server/build/quarkus-app/quarkus-run.jar
+```
+
+Note: Apache Polaris 1.0.0-incubating does not yet have all the code required for proper operation with MinIO.
+The next release is expected to provide full support for S3-compatible storage with STS.
+
+Create a catalog named "polaris".
+
+```shell
+./polaris --client-id root --client-secret s3cr3t \
+ catalogs create polaris --storage-type S3 \
+ --default-base-location 's3://test' \
+ --role-arn arn:aws:iam::123456789012:role/dummy \
+ --region us-west-2 \
+ --endpoint http://127.0.0.1:9100 \
+ --path-style-access
+```
+
+Note: the role and region parameters need to be set to avoid runtime errors in Polaris,
+but they will be ignored by MinIO.
+
+For the sake of simplicity, grant `CATALOG_MANAGE_CONTENT` directly to the `catalog_admin` role
Review Comment:
FYI I was rather advocating for both.
Besides, we already have some docs pages referencing the getting-started examples, e.g. `quickstart-deploy-aws.md` – with a somewhat confusing pattern btw, because assets like `getting-started/assets/cloud_providers/deploy-aws.sh` are used in the docs, but not by the docker-compose examples 🤷♂️ 😅
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2274839459
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
+---
+
+In this guide we walk through setting up a simple Polaris Server with local [MinIO](https://www.min.io/) storage.
+
+Similar configurations are expected to work with other S3-compatible systems that also have the
+[STS](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) API.
+
+# Setup
+
+Start MinIO. Here's a `docker` example.
+
+```shell
+docker run -p 9100:9000 -p 9101:9001 --name minio \
+ -e "MINIO_ROOT_USER=miniouser" -e "MINIO_ROOT_PASSWORD=miniopwd" \
+ quay.io/minio/minio:latest server /data --console-address ":9001"
+```
+
+Create a bucket called "test" in MinIO UI or CLI.
+
+Edit `~/.aws/credentials` and create a `minio` profile.
+
+```
+[minio]
+aws_access_key_id = miniouser
+aws_secret_access_key = miniopwd
+region=us-west-2
+```
+
+In the shell where the Polaris Server will be started `export AWS_PROFILE=minio`.
+
+Build and run Polaris Server.
+
+```shell
+./gradlew assemble
+
+env POLARIS_BOOTSTRAP_CREDENTIALS=POLARIS,root,s3cr3t \
+ java -jar runtime/server/build/quarkus-app/quarkus-run.jar
+```
+
+Note: Apache Polaris 1.0.0-incubating does not yet have all the code required for proper operation with MinIO.
+The next release is expected to provide full support for S3-compatible storage with STS.
+
+Create a catalog named "polaris".
+
+```shell
+./polaris --client-id root --client-secret s3cr3t \
+ catalogs create polaris --storage-type S3 \
+ --default-base-location 's3://test' \
+ --role-arn arn:aws:iam::123456789012:role/dummy \
+ --region us-west-2 \
+ --endpoint http://127.0.0.1:9100 \
+ --path-style-access
+```
+
+Note: the role and region parameters need to be set to avoid runtime errors in Polaris,
+but they will be ignored by MinIO.
Review Comment:
update. PTAL
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
+---
+
+In this guide we walk through setting up a simple Polaris Server with local [MinIO](https://www.min.io/) storage.
+
+Similar configurations are expected to work with other S3-compatible systems that also have the
+[STS](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) API.
+
+# Setup
+
+Start MinIO. Here's a `docker` example.
+
+```shell
+docker run -p 9100:9000 -p 9101:9001 --name minio \
+ -e "MINIO_ROOT_USER=miniouser" -e "MINIO_ROOT_PASSWORD=miniopwd" \
+ quay.io/minio/minio:latest server /data --console-address ":9001"
+```
+
+Create a bucket called "test" in MinIO UI or CLI.
+
+Edit `~/.aws/credentials` and create a `minio` profile.
+
+```
+[minio]
+aws_access_key_id = miniouser
+aws_secret_access_key = miniopwd
+region=us-west-2
+```
+
+In the shell where the Polaris Server will be started `export AWS_PROFILE=minio`.
+
+Build and run Polaris Server.
+
+```shell
+./gradlew assemble
+
+env POLARIS_BOOTSTRAP_CREDENTIALS=POLARIS,root,s3cr3t \
+ java -jar runtime/server/build/quarkus-app/quarkus-run.jar
+```
+
+Note: Apache Polaris 1.0.0-incubating does not yet have all the code required for proper operation with MinIO.
+The next release is expected to provide full support for S3-compatible storage with STS.
+
+Create a catalog named "polaris".
+
+```shell
+./polaris --client-id root --client-secret s3cr3t \
+ catalogs create polaris --storage-type S3 \
+ --default-base-location 's3://test' \
+ --role-arn arn:aws:iam::123456789012:role/dummy \
+ --region us-west-2 \
+ --endpoint http://127.0.0.1:9100 \
+ --path-style-access
+```
+
+Note: the role and region parameters need to be set to avoid runtime errors in Polaris,
+but they will be ignored by MinIO.
Review Comment:
updated. PTAL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2268178721
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
+---
+
+In this guide we walk through setting up a simple Polaris Server with local [MinIO](https://www.min.io/) storage.
+
+Similar configurations are expected to work with other S3-compatible systems that also have the
+[STS](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) API.
+
+# Setup
+
+Start MinIO. Here's a `docker` example.
+
+```shell
+docker run -p 9100:9000 -p 9101:9001 --name minio \
+ -e "MINIO_ROOT_USER=miniouser" -e "MINIO_ROOT_PASSWORD=miniopwd" \
+ quay.io/minio/minio:latest server /data --console-address ":9001"
+```
+
+Create a bucket called "test" in MinIO UI or CLI.
+
+Edit `~/.aws/credentials` and create a `minio` profile.
+
+```
+[minio]
+aws_access_key_id = miniouser
+aws_secret_access_key = miniopwd
+region=us-west-2
+```
+
+In the shell where the Polaris Server will be started `export AWS_PROFILE=minio`.
+
+Build and run Polaris Server.
+
+```shell
+./gradlew assemble
+
+env POLARIS_BOOTSTRAP_CREDENTIALS=POLARIS,root,s3cr3t \
+ java -jar runtime/server/build/quarkus-app/quarkus-run.jar
+```
+
+Note: Apache Polaris 1.0.0-incubating does not yet have all the code required for proper operation with MinIO.
+The next release is expected to provide full support for S3-compatible storage with STS.
+
+Create a catalog named "polaris".
+
+```shell
+./polaris --client-id root --client-secret s3cr3t \
+ catalogs create polaris --storage-type S3 \
+ --default-base-location 's3://test' \
+ --role-arn arn:aws:iam::123456789012:role/dummy \
+ --region us-west-2 \
+ --endpoint http://127.0.0.1:9100 \
+ --path-style-access
+```
+
+Note: the role and region parameters need to be set to avoid runtime errors in Polaris,
+but they will be ignored by MinIO.
Review Comment:
#1973 is kind of similar, I assume #1973 can be used to address this issue too.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2274840460
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
+---
+
+In this guide we walk through setting up a simple Polaris Server with local [MinIO](https://www.min.io/) storage.
+
+Similar configurations are expected to work with other S3-compatible systems that also have the
+[STS](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) API.
+
+# Setup
+
+Start MinIO. Here's a `docker` example.
+
+```shell
+docker run -p 9100:9000 -p 9101:9001 --name minio \
+ -e "MINIO_ROOT_USER=miniouser" -e "MINIO_ROOT_PASSWORD=miniopwd" \
+ quay.io/minio/minio:latest server /data --console-address ":9001"
+```
+
+Create a bucket called "test" in MinIO UI or CLI.
+
+Edit `~/.aws/credentials` and create a `minio` profile.
+
+```
+[minio]
+aws_access_key_id = miniouser
+aws_secret_access_key = miniopwd
+region=us-west-2
+```
+
+In the shell where the Polaris Server will be started `export AWS_PROFILE=minio`.
+
+Build and run Polaris Server.
+
+```shell
+./gradlew assemble
+
+env POLARIS_BOOTSTRAP_CREDENTIALS=POLARIS,root,s3cr3t \
+ java -jar runtime/server/build/quarkus-app/quarkus-run.jar
+```
+
+Note: Apache Polaris 1.0.0-incubating does not yet have all the code required for proper operation with MinIO.
+The next release is expected to provide full support for S3-compatible storage with STS.
+
+Create a catalog named "polaris".
+
+```shell
+./polaris --client-id root --client-secret s3cr3t \
+ catalogs create polaris --storage-type S3 \
+ --default-base-location 's3://test' \
+ --role-arn arn:aws:iam::123456789012:role/dummy \
+ --region us-west-2 \
+ --endpoint http://127.0.0.1:9100 \
+ --path-style-access
+```
+
+Note: the role and region parameters need to be set to avoid runtime errors in Polaris,
+but they will be ignored by MinIO.
+
+For the sake of simplicity, grant `CATALOG_MANAGE_CONTENT` directly to the `catalog_admin` role
Review Comment:
added docker compose
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2274839907
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
+---
+
+In this guide we walk through setting up a simple Polaris Server with local [MinIO](https://www.min.io/) storage.
+
+Similar configurations are expected to work with other S3-compatible systems that also have the
+[STS](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) API.
+
+# Setup
+
+Start MinIO. Here's a `docker` example.
+
+```shell
+docker run -p 9100:9000 -p 9101:9001 --name minio \
+ -e "MINIO_ROOT_USER=miniouser" -e "MINIO_ROOT_PASSWORD=miniopwd" \
+ quay.io/minio/minio:latest server /data --console-address ":9001"
+```
+
+Create a bucket called "test" in MinIO UI or CLI.
+
+Edit `~/.aws/credentials` and create a `minio` profile.
+
+```
+[minio]
+aws_access_key_id = miniouser
+aws_secret_access_key = miniopwd
+region=us-west-2
+```
+
+In the shell where the Polaris Server will be started `export AWS_PROFILE=minio`.
+
+Build and run Polaris Server.
+
+```shell
+./gradlew assemble
+
+env POLARIS_BOOTSTRAP_CREDENTIALS=POLARIS,root,s3cr3t \
+ java -jar runtime/server/build/quarkus-app/quarkus-run.jar
Review Comment:
this fragment got removed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "adutra (via GitHub)" <gi...@apache.org>.
adutra commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2276066211
##########
getting-started/assets/polaris/obtain-token.sh:
##########
@@ -0,0 +1,37 @@
+#
+# 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.
+#
+
+set -e
+
+apk add --no-cache jq
+
+realm=${1:-"POLARIS"}
+
+TOKEN=$(curl -s http://polaris:8181/api/catalog/v1/oauth/tokens \
Review Comment:
Shouldn't we modify `create-catalog.sh` to call this script? Right now the token fetch logic is duplicated.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2277782671
##########
getting-started/assets/polaris/obtain-token.sh:
##########
@@ -0,0 +1,37 @@
+#
+# 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.
+#
+
+set -e
+
+apk add --no-cache jq
+
+realm=${1:-"POLARIS"}
+
+TOKEN=$(curl -s http://polaris:8181/api/catalog/v1/oauth/tokens \
Review Comment:
refactored. PTAL
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "adutra (via GitHub)" <gi...@apache.org>.
adutra commented on PR #2227:
URL: https://github.com/apache/polaris/pull/2227#issuecomment-3143937666
Nice addition, although I'm wondering: wouldn't it be better to create a docker-compose getting-started example in the directory below?
https://github.com/apache/polaris/tree/main/getting-started
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2271696533
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
+---
+
+In this guide we walk through setting up a simple Polaris Server with local [MinIO](https://www.min.io/) storage.
+
+Similar configurations are expected to work with other S3-compatible systems that also have the
+[STS](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) API.
+
+# Setup
+
+Start MinIO. Here's a `docker` example.
+
+```shell
+docker run -p 9100:9000 -p 9101:9001 --name minio \
+ -e "MINIO_ROOT_USER=miniouser" -e "MINIO_ROOT_PASSWORD=miniopwd" \
+ quay.io/minio/minio:latest server /data --console-address ":9001"
+```
+
+Create a bucket called "test" in MinIO UI or CLI.
+
+Edit `~/.aws/credentials` and create a `minio` profile.
+
+```
+[minio]
+aws_access_key_id = miniouser
+aws_secret_access_key = miniopwd
+region=us-west-2
+```
+
+In the shell where the Polaris Server will be started `export AWS_PROFILE=minio`.
+
+Build and run Polaris Server.
+
+```shell
+./gradlew assemble
+
+env POLARIS_BOOTSTRAP_CREDENTIALS=POLARIS,root,s3cr3t \
+ java -jar runtime/server/build/quarkus-app/quarkus-run.jar
+```
+
+Note: Apache Polaris 1.0.0-incubating does not yet have all the code required for proper operation with MinIO.
+The next release is expected to provide full support for S3-compatible storage with STS.
+
+Create a catalog named "polaris".
+
+```shell
+./polaris --client-id root --client-secret s3cr3t \
+ catalogs create polaris --storage-type S3 \
+ --default-base-location 's3://test' \
+ --role-arn arn:aws:iam::123456789012:role/dummy \
+ --region us-west-2 \
+ --endpoint http://127.0.0.1:9100 \
+ --path-style-access
+```
+
+Note: the role and region parameters need to be set to avoid runtime errors in Polaris,
+but they will be ignored by MinIO.
Review Comment:
I'll wait for #2329 and rework this example
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2271707308
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
+---
+
+In this guide we walk through setting up a simple Polaris Server with local [MinIO](https://www.min.io/) storage.
+
+Similar configurations are expected to work with other S3-compatible systems that also have the
+[STS](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) API.
+
+# Setup
+
+Start MinIO. Here's a `docker` example.
+
+```shell
+docker run -p 9100:9000 -p 9101:9001 --name minio \
+ -e "MINIO_ROOT_USER=miniouser" -e "MINIO_ROOT_PASSWORD=miniopwd" \
+ quay.io/minio/minio:latest server /data --console-address ":9001"
Review Comment:
What do you mean by "different"? Could you give a specific pointer?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2249137947
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
+---
+
+In this guide we walk through setting up a simple Polaris Server with local [MinIO](https://www.min.io/) storage.
+
+Similar configurations are expected to work with other S3-compatible systems that also have the
+[STS](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) API.
+
+# Setup
+
+Start MinIO. Here's a `docker` example.
+
+```shell
+docker run -p 9100:9000 -p 9101:9001 --name minio \
+ -e "MINIO_ROOT_USER=miniouser" -e "MINIO_ROOT_PASSWORD=miniopwd" \
+ quay.io/minio/minio:latest server /data --console-address ":9001"
+```
+
+Create a bucket called "test" in MinIO UI or CLI.
+
+Edit `~/.aws/credentials` and create a `minio` profile.
+
+```
+[minio]
+aws_access_key_id = miniouser
+aws_secret_access_key = miniopwd
+region=us-west-2
+```
+
+In the shell where the Polaris Server will be started `export AWS_PROFILE=minio`.
+
+Build and run Polaris Server.
+
+```shell
+./gradlew assemble
+
+env POLARIS_BOOTSTRAP_CREDENTIALS=POLARIS,root,s3cr3t \
+ java -jar runtime/server/build/quarkus-app/quarkus-run.jar
+```
+
+Note: Apache Polaris 1.0.0-incubating does not yet have all the code required for proper operation with MinIO.
+The next release is expected to provide full support for S3-compatible storage with STS.
+
+Create a catalog named "polaris".
+
+```shell
+./polaris --client-id root --client-secret s3cr3t \
+ catalogs create polaris --storage-type S3 \
+ --default-base-location 's3://test' \
+ --role-arn arn:aws:iam::123456789012:role/dummy \
+ --region us-west-2 \
+ --endpoint http://127.0.0.1:9100 \
+ --path-style-access
+```
+
+Note: the role and region parameters need to be set to avoid runtime errors in Polaris,
+but they will be ignored by MinIO.
+
+For the sake of simplicity, grant `CATALOG_MANAGE_CONTENT` directly to the `catalog_admin` role
Review Comment:
+1 to Alex's comment -- it looks like we're going for a quick & dirty setup here without explaining much, so why not simply provide a docker-compose? We have docs like that for all 3 cloud providers now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2249138161
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
+---
+
+In this guide we walk through setting up a simple Polaris Server with local [MinIO](https://www.min.io/) storage.
+
+Similar configurations are expected to work with other S3-compatible systems that also have the
+[STS](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) API.
+
+# Setup
+
+Start MinIO. Here's a `docker` example.
+
+```shell
+docker run -p 9100:9000 -p 9101:9001 --name minio \
+ -e "MINIO_ROOT_USER=miniouser" -e "MINIO_ROOT_PASSWORD=miniopwd" \
+ quay.io/minio/minio:latest server /data --console-address ":9001"
Review Comment:
In general the formatting of the code blocks in this doc is different than the other docs
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on PR #2227:
URL: https://github.com/apache/polaris/pull/2227#issuecomment-3144544264
A docker-compose file would be nice, but I wanted to have a prominent doc for people building something from scratch. I've seen a few messages where the catalog creation step appeared to be confusing to users.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2275559935
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
+---
+
+In this guide we walk through setting up a simple Polaris Server with local [MinIO](https://www.min.io/) storage.
+
+Similar configurations are expected to work with other S3-compatible systems that also have the
+[STS](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) API.
+
+# Setup
+
+Start MinIO. Here's a `docker` example.
+
+```shell
+docker run -p 9100:9000 -p 9101:9001 --name minio \
+ -e "MINIO_ROOT_USER=miniouser" -e "MINIO_ROOT_PASSWORD=miniopwd" \
+ quay.io/minio/minio:latest server /data --console-address ":9001"
Review Comment:
It's gone now, but the lines were being wrapped quite short and at awkward locations. All good now!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2249138576
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
+---
+
+In this guide we walk through setting up a simple Polaris Server with local [MinIO](https://www.min.io/) storage.
+
+Similar configurations are expected to work with other S3-compatible systems that also have the
+[STS](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) API.
+
+# Setup
+
+Start MinIO. Here's a `docker` example.
+
+```shell
+docker run -p 9100:9000 -p 9101:9001 --name minio \
+ -e "MINIO_ROOT_USER=miniouser" -e "MINIO_ROOT_PASSWORD=miniopwd" \
+ quay.io/minio/minio:latest server /data --console-address ":9001"
+```
+
+Create a bucket called "test" in MinIO UI or CLI.
+
+Edit `~/.aws/credentials` and create a `minio` profile.
+
+```
+[minio]
+aws_access_key_id = miniouser
+aws_secret_access_key = miniopwd
+region=us-west-2
+```
+
+In the shell where the Polaris Server will be started `export AWS_PROFILE=minio`.
+
+Build and run Polaris Server.
+
+```shell
+./gradlew assemble
+
+env POLARIS_BOOTSTRAP_CREDENTIALS=POLARIS,root,s3cr3t \
+ java -jar runtime/server/build/quarkus-app/quarkus-run.jar
Review Comment:
A little specific -- why not `./gradlew run`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "eric-maynard (via GitHub)" <gi...@apache.org>.
eric-maynard commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2249138416
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
Review Comment:
`access-control.md` is already at 500
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2268180159
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
+---
+
+In this guide we walk through setting up a simple Polaris Server with local [MinIO](https://www.min.io/) storage.
+
+Similar configurations are expected to work with other S3-compatible systems that also have the
+[STS](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) API.
+
+# Setup
+
+Start MinIO. Here's a `docker` example.
+
+```shell
+docker run -p 9100:9000 -p 9101:9001 --name minio \
+ -e "MINIO_ROOT_USER=miniouser" -e "MINIO_ROOT_PASSWORD=miniopwd" \
+ quay.io/minio/minio:latest server /data --console-address ":9001"
+```
+
+Create a bucket called "test" in MinIO UI or CLI.
+
+Edit `~/.aws/credentials` and create a `minio` profile.
+
+```
+[minio]
+aws_access_key_id = miniouser
+aws_secret_access_key = miniopwd
+region=us-west-2
+```
+
+In the shell where the Polaris Server will be started `export AWS_PROFILE=minio`.
+
+Build and run Polaris Server.
+
+```shell
+./gradlew assemble
+
+env POLARIS_BOOTSTRAP_CREDENTIALS=POLARIS,root,s3cr3t \
+ java -jar runtime/server/build/quarkus-app/quarkus-run.jar
+```
+
+Note: Apache Polaris 1.0.0-incubating does not yet have all the code required for proper operation with MinIO.
+The next release is expected to provide full support for S3-compatible storage with STS.
+
+Create a catalog named "polaris".
+
+```shell
+./polaris --client-id root --client-secret s3cr3t \
+ catalogs create polaris --storage-type S3 \
+ --default-base-location 's3://test' \
+ --role-arn arn:aws:iam::123456789012:role/dummy \
+ --region us-west-2 \
+ --endpoint http://127.0.0.1:9100 \
+ --path-style-access
+```
+
+Note: the role and region parameters need to be set to avoid runtime errors in Polaris,
+but they will be ignored by MinIO.
Review Comment:
I previously comments under #1973 that non-AWS S3 work will address that issue, but it looks like it did not :sweat_smile: I did not find the root cause yet.
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
+---
+
+In this guide we walk through setting up a simple Polaris Server with local [MinIO](https://www.min.io/) storage.
+
+Similar configurations are expected to work with other S3-compatible systems that also have the
+[STS](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) API.
+
+# Setup
+
+Start MinIO. Here's a `docker` example.
+
+```shell
+docker run -p 9100:9000 -p 9101:9001 --name minio \
+ -e "MINIO_ROOT_USER=miniouser" -e "MINIO_ROOT_PASSWORD=miniopwd" \
+ quay.io/minio/minio:latest server /data --console-address ":9001"
+```
+
+Create a bucket called "test" in MinIO UI or CLI.
+
+Edit `~/.aws/credentials` and create a `minio` profile.
+
+```
+[minio]
+aws_access_key_id = miniouser
+aws_secret_access_key = miniopwd
+region=us-west-2
+```
+
+In the shell where the Polaris Server will be started `export AWS_PROFILE=minio`.
+
+Build and run Polaris Server.
+
+```shell
+./gradlew assemble
+
+env POLARIS_BOOTSTRAP_CREDENTIALS=POLARIS,root,s3cr3t \
+ java -jar runtime/server/build/quarkus-app/quarkus-run.jar
+```
+
+Note: Apache Polaris 1.0.0-incubating does not yet have all the code required for proper operation with MinIO.
+The next release is expected to provide full support for S3-compatible storage with STS.
+
+Create a catalog named "polaris".
+
+```shell
+./polaris --client-id root --client-secret s3cr3t \
+ catalogs create polaris --storage-type S3 \
+ --default-base-location 's3://test' \
+ --role-arn arn:aws:iam::123456789012:role/dummy \
+ --region us-west-2 \
+ --endpoint http://127.0.0.1:9100 \
+ --path-style-access
+```
+
+Note: the role and region parameters need to be set to avoid runtime errors in Polaris,
+but they will be ignored by MinIO.
Review Comment:
I previously commented under #1973 that non-AWS S3 work will address that issue, but it looks like it did not :sweat_smile: I did not find the root cause yet.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat(docs): Add Getting Stated guide for MinIO [polaris]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on code in PR #2227:
URL: https://github.com/apache/polaris/pull/2227#discussion_r2271696533
##########
site/content/in-dev/unreleased/getting-started/minio.md:
##########
@@ -0,0 +1,114 @@
+---
+#
+# 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.
+#
+Title: Using MinIO
+type: docs
+weight: 500
+---
+
+In this guide we walk through setting up a simple Polaris Server with local [MinIO](https://www.min.io/) storage.
+
+Similar configurations are expected to work with other S3-compatible systems that also have the
+[STS](https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html) API.
+
+# Setup
+
+Start MinIO. Here's a `docker` example.
+
+```shell
+docker run -p 9100:9000 -p 9101:9001 --name minio \
+ -e "MINIO_ROOT_USER=miniouser" -e "MINIO_ROOT_PASSWORD=miniopwd" \
+ quay.io/minio/minio:latest server /data --console-address ":9001"
+```
+
+Create a bucket called "test" in MinIO UI or CLI.
+
+Edit `~/.aws/credentials` and create a `minio` profile.
+
+```
+[minio]
+aws_access_key_id = miniouser
+aws_secret_access_key = miniopwd
+region=us-west-2
+```
+
+In the shell where the Polaris Server will be started `export AWS_PROFILE=minio`.
+
+Build and run Polaris Server.
+
+```shell
+./gradlew assemble
+
+env POLARIS_BOOTSTRAP_CREDENTIALS=POLARIS,root,s3cr3t \
+ java -jar runtime/server/build/quarkus-app/quarkus-run.jar
+```
+
+Note: Apache Polaris 1.0.0-incubating does not yet have all the code required for proper operation with MinIO.
+The next release is expected to provide full support for S3-compatible storage with STS.
+
+Create a catalog named "polaris".
+
+```shell
+./polaris --client-id root --client-secret s3cr3t \
+ catalogs create polaris --storage-type S3 \
+ --default-base-location 's3://test' \
+ --role-arn arn:aws:iam::123456789012:role/dummy \
+ --region us-west-2 \
+ --endpoint http://127.0.0.1:9100 \
+ --path-style-access
+```
+
+Note: the role and region parameters need to be set to avoid runtime errors in Polaris,
+but they will be ignored by MinIO.
Review Comment:
I'll wait for #2325 and rework this example
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org