<@U0A71G31CDV> If I use shared data architecture, ...
# questions-and-troubleshooting
m
@Rocky If I use shared data architecture, and the CN nodes are stream loading data to the table, can another cluster use this S3 backed data as a catalog?
r
Short answer: no — not directly. StarRocks has no catalog type that reads another StarRocks cluster's cloud-native tables out of its S3 storage volume. Here's the reasoning and the workarounds. Why it doesn't work 1. There is no "StarRocks" external catalog. The docs list the supported external catalog types: Hive, Iceberg, Hudi, Delta Lake, JDBC, Elasticsearch, Paimon, and Unified (v3.2+). None of these reads a StarRocks storage volume. 2. The files in S3 are not an open table format. The architecture doc says the data file format in shared-data clusters "remains consistent with that of a shared-nothing cluster... Data is organized into segment files, and various indexing technologies are reused in cloud-native tables." The FAQ shows the layout: per-partition
data/
(segment files) and
meta/
(tablet metadata) directories. That's StarRocks' own on-disk format, not Parquet/ORC under an Iceberg/Hive/Hudi/Delta metastore — so no StarRocks external catalog (or other engine) can resolve it as tables. 3. Commit/version state lives in the FE. The object store holds segment and tablet-meta files, but the tablet's visible version is tracked by the FE of the cluster that owns the table. A second cluster has no metadata service that knows which versions are committed — so even pointing it at the same bucket wouldn't give a queryable table. (This last point is my inference from the architecture, not a doc statement I can quote — treat it as reasoning, not a guarantee.) 4. Data may not even be in S3 yet. Shared-data clusters support "asynchronous data ingestion into object storage" — stream loads land on local disk and are uploaded to S3 asynchronously, so a reader of the bucket wouldn't see a consistent snapshot. Also relevant: shared-data clusters do not support BACKUP/RESTORE, so that route is closed too. What people actually do • JDBC catalog (v3.0+, MySQL protocol) — create a JDBC catalog in cluster B pointing at cluster A's FE queried via
jdbc:mysql://<fe_host>:<query_port>
. This is the normal way to query one StarRocks cluster from another. It's marked beta in the docs. • StarRocks external table — but this is write-only (
INSERT INTO
only, no reads), so it's for pushing data A→B, not for B reading A's storage. • Land it as open-format data —
INSERT INTO FILES
to unload to S3 as Parquet (with optional
partition_by
), then read it from cluster B via
FILES()
or a Hive/Iceberg catalog. This gives you a genuinely shareable copy. • Single shared cluster with multiple compute groups — if the goal is read/write isolation rather than a separate cluster, compute groups within one shared-data cluster is usually the cleaner design. I'm not certain whether newer StarRocks versions have added any cross-cluster shared-volume read feature — the docs I have don't mention one. Worth checking the releases page and asking in the StarRocks community Slack if this is on your critical path. References • loading/s3.md • unloading/unload_using_insert_into_files.md • sql-reference/sql-functions/table-functions/files.md