dimas-b commented on code in PR #3022:
URL: https://github.com/apache/polaris/pull/3022#discussion_r2514816002


##########
getting-started/ceph/prepare-network.sh:
##########
@@ -0,0 +1,61 @@
+#!/usr/bin/env bash
+#
+# 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.
+#
+
+#!/bin/bash
+set -e
+
+NETWORK_NAME="cluster-net"
+SUBNET="172.18.0.0/16"

Review Comment:
   what if someone already has a network with the same name, but different 
subnet?



##########
getting-started/ceph/README.md:
##########
@@ -0,0 +1,145 @@
+<!--
+  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.
+-->
+
+# Getting Started with Apache Polaris and Ceph
+
+## Overview
+
+This guide describes how to spin up a **single-node Ceph cluster** with 
**RADOS Gateway (RGW)** for S3-compatible storage and configure it for use by 
**Polaris**.
+
+This example cluster is configured for basic access key authentication only.
+It does not include STS (Security Token Service) or temporary credentials.
+All access to the Ceph RGW (RADOS Gateway) and Polaris integration uses static 
S3-style credentials (as configured via radosgw-admin user create).
+
+Spark is used as a query engine. This example assumes a local Spark 
installation.
+See the [Spark Notebooks Example](../spark/README.md) for a more advanced 
Spark setup.
+
+## Starting the Example
+
+Before starting the Ceph + Polaris stack, you’ll need to configure environment 
variables that define network settings, credentials, and cluster IDs.
+
+Copy the example environment file:
+```shell
+mv getting-started/ceph/.env.example getting-started/ceph/.env
+```
+
+The services are started **in sequence**:
+1. Monitor + Manager
+2. OSD
+3. RGW
+4. Polaris
+
+Note: this example pulls the `apache/polaris:latest` image, but assumes the 
image is `1.2.0-incubating` or later. 
+
+
+### 1. Start monitor and manager
+```shell
+docker compose up -d mon1 mgr

Review Comment:
   `mon1` fails after a few seconds of runtime :|
   
   ```
   2025-11-11T16:13:10.386+0000 77e83f034d80  0 starting mon.mon1 rank 0 at 
public addrs v1:172.18.0.2:6789/0 at bind addrs v1:172.18.0.2:6789/0 mon_data 
/var/lib/ceph/mon/ceph-mon1 fsid b2f59c4b-5f14-4f8c-a9b7-3b7998c76a0e
   2025-11-11T16:13:10.386+0000 77e83f034d80  1 mon.mon1@-1(???) e0 preinit 
fsid b2f59c4b-5f14-4f8c-a9b7-3b7998c76a0e
   2025-11-11T16:13:10.387+0000 77e83f034d80  1 mon.mon1@-1(???) e0  
initial_members mon1, filtering seed monmap
   2025-11-11T16:13:10.387+0000 77e83f034d80 -1  Processor -- bind unable to 
bind to v1:172.18.0.2:6789/0: (99) Cannot assign requested address
   2025-11-11T16:13:10.387+0000 77e83f034d80 -1  Processor -- bind was unable 
to bind. Trying again in 5 seconds 
   2025-11-11T16:13:15.388+0000 77e83f034d80 -1  Processor -- bind unable to 
bind to v1:172.18.0.2:6789/0: (99) Cannot assign requested address
   2025-11-11T16:13:15.388+0000 77e83f034d80 -1  Processor -- bind was unable 
to bind. Trying again in 5 seconds 
   2025-11-11T16:13:20.388+0000 77e83f034d80 -1  Processor -- bind unable to 
bind to v1:172.18.0.2:6789/0: (99) Cannot assign requested address
   2025-11-11T16:13:20.388+0000 77e83f034d80 -1  Processor -- bind was unable 
to bind after 3 attempts: (99) Cannot assign requested address
   2025-11-11T16:13:20.388+0000 77e83f034d80 -1 unable to bind monitor to 
v1:172.18.0.2:6789/0
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to