
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
StarRocks is a next-gen, high-performance analytical data warehouse that enables real-time, multi-dimensional, and highly concurrent data analysis. StarRocks has an MPP architecture and is equipped with a fully vectorized execution engine, a columnar storage engine that supports real-time updates, and is powered by a rich set of features including a fully-customized cost-based optimizer (CBO), intelligent materialized view, and more. StarRocks supports real-time and batch data ingestion from a variety of data sources. It also allows you to directly analyze data stored in data lakes with zero data migration.
For more information see [***]
StarRocks consists of frontend (FE), backend (BE), and when using object storage compute (CN), nodes.
FE
FEs are responsible for metadata management, client connection management, query planning, and query scheduling. Each FE stores and maintains a complete copy of metadata in its memory, which guarantees indiscriminate services among the FEs. FEs can work as the leader, followers, and observers. Followers can elect a leader according to the Paxos-like BDB JE protocol. BDB JE is short for Berkeley DB Java Edition.
BE
BEs are responsible for data storage and SQL execution.
Data storage
BEs have data storage capabilities. FEs distribute data to BEs based on predefined rules. BEs transform the ingested data, write the data into the required format, and generate indexes for the data.
SQL execution
When an SQL query arrives, FEs parse it into a logical execution plan according to the semantics of the query, and then transform the logical plan into physical execution plans that can be executed on BEs. BEs that store the destination data execute the query. This eliminates the need for data transmission and copy, achieving high query performance.
CN
CNs are stateless BEs; data is stored in object storage instead of local storage. CN nodes are responsible for tasks such as data loading, query computation, and cache management.
Architecture docs
For each of the use-cases listed there are Quick Starts (step-by-step tutorials).
Use the StarRocks basics to deploy a single container containing both a StarRocks frontend and backend, load some data, and analyze the data.
Follow the shared-data Quick Start tutorial to deploy StarRocks and MinIO. You can modify the provided Docker Compose file to switch to S3, GCS, Azure, or other object storage.
https://github.com/StarRocks/demo/blob/master/documentation-samples/quickstart/docker-compose.yml
Deploy using the StarRocks Helm chart and Kubernetes operator:
Quick Start tutorial
https://github.com/StarRocks/starrocks-kubernetes-operator/blob/main/examples/starrocks/README.md with more examples
The default port used to connect to StarRocks using the MySQL protocol is 9030. The provided Docker Compose files will expose port 9030 using notation similar to:
yamlports: - "8030:8030" - "9020:9020" - "9030:9030"
If you are running the containers from the command line, expose the port with something like:
bashdocker run -p 9030:9030 ...
If you have exposed port 9030, connect:
bashmysql -P9030 -h 127.0.0.1 -u root --prompt="StarRocks > " -p
If you have not configured a password for root just hit enter when prompted.
You can also use the MySQL client provided in the container:
bashdocker compose exec starrocks-fe \ mysql -P9030 -h127.0.0.1 -uroot --prompt="StarRocks > "
Or:
bashdocker exec -ti starrocks-fe mysql -P9030 -h127.0.0.1 -uroot --prompt="StarRocks > " -p
Tip
Substitute you service or container name for
starrocks-fein the exec commands
You can use other clients that support the MySQL protocol, just use port 9030 in place of the default MySQL port.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务
以下是 starrocks/fe-ubuntu 相关的常用 Docker 镜像,适用于 不同场景 等不同场景: