This is an automated email from the ASF dual-hosted git repository.
dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new 536e39f6f1a [docs] set replication_num in quick start table example
(#3369)
536e39f6f1a is described below
commit 536e39f6f1a01fdacba51da57a2d86003f8039ad
Author: Yongqiang YANG <[email protected]>
AuthorDate: Tue Feb 10 12:45:34 2026 -0800
[docs] set replication_num in quick start table example (#3369)
## Summary
- redoes #2411 by fixing the quick-start table DDL for single-BE setups
- add `PROPERTIES (\"replication_num\" = \"1\")` to the `BUCKETS 1`
example so table creation succeeds in the default quick-start
environment
- apply consistently to current and versioned EN + ZH quick-start docs
- commit is signed with the original author identity from #2411
## Reference
- redoes issue intent from #2411
Co-authored-by: Kuro <[email protected]>
---
docs/gettingStarted/quick-start.mdx | 6 ++++--
.../current/gettingStarted/quick-start.mdx | 6 ++++--
.../version-2.1/gettingStarted/quick-start.mdx | 6 ++++--
.../version-3.x/gettingStarted/quick-start.mdx | 6 ++++--
.../version-4.x/gettingStarted/quick-start.mdx | 6 ++++--
versioned_docs/version-2.1/gettingStarted/quick-start.mdx | 6 ++++--
versioned_docs/version-3.x/gettingStarted/quick-start.mdx | 6 ++++--
versioned_docs/version-4.x/gettingStarted/quick-start.mdx | 6 ++++--
8 files changed, 32 insertions(+), 16 deletions(-)
diff --git a/docs/gettingStarted/quick-start.mdx
b/docs/gettingStarted/quick-start.mdx
index 2b9ce5b2e11..b15e1d9396f 100644
--- a/docs/gettingStarted/quick-start.mdx
+++ b/docs/gettingStarted/quick-start.mdx
@@ -215,7 +215,10 @@ Download the corresponding binary installation package
from the Apache Doris web
k4 INT NOT NULL DEFAULT "1" COMMENT "int column"
)
COMMENT "my first table"
- DISTRIBUTED BY HASH(k1) BUCKETS 1;
+ DISTRIBUTED BY HASH(k1) BUCKETS 1
+ PROPERTIES (
+ "replication_num" = "1"
+ );
```
3. **Import test data:**
@@ -263,4 +266,3 @@ sudo ln -s
/Applications/Docker.app/Contents/Resources/bin/docker /usr/local/bin
A: This error is usually caused by Docker credential helper misconfiguration.
For local development/testing, you can remove the `credsStore` field in
`~/.docker/config.json` as a workaround. Note: This workaround stores
credentials in plaintext and is only recommended for local development
environments.
-
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/gettingStarted/quick-start.mdx
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/gettingStarted/quick-start.mdx
index 066f24976b3..a3a277969dd 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/gettingStarted/quick-start.mdx
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/gettingStarted/quick-start.mdx
@@ -215,7 +215,10 @@ mysql -uroot -P9030 -h127.0.0.1 -e 'SELECT `host`, `alive`
FROM backends()'
k4 INT NOT NULL DEFAULT "1" COMMENT "int column"
)
COMMENT "my first table"
- DISTRIBUTED BY HASH(k1) BUCKETS 1;
+ DISTRIBUTED BY HASH(k1) BUCKETS 1
+ PROPERTIES (
+ "replication_num" = "1"
+ );
```
3. **导入测试数据**
@@ -262,4 +265,3 @@ sudo ln -s
/Applications/Docker.app/Contents/Resources/bin/docker /usr/local/bin
**Q: Mac: "error getting credentials - err: exit status 1, out: \`\`"**
A: 此错误通常由 Docker 凭据助手配置问题导致。对于本地开发/测试环境,可以删除 `~/.docker/config.json` 中的
`credsStore` 字段作为临时解决方案。注意:此方法会以明文存储凭据,仅建议在本地开发环境中使用。
-
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/gettingStarted/quick-start.mdx
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/gettingStarted/quick-start.mdx
index e1358b5a677..a20339c9ae7 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/gettingStarted/quick-start.mdx
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/gettingStarted/quick-start.mdx
@@ -217,7 +217,10 @@ mysql -uroot -P9030 -h127.0.0.1 -e 'SELECT `host`, `alive`
FROM backends()'
k4 INT NOT NULL DEFAULT "1" COMMENT "int column"
)
COMMENT "my first table"
- DISTRIBUTED BY HASH(k1) BUCKETS 1;
+ DISTRIBUTED BY HASH(k1) BUCKETS 1
+ PROPERTIES (
+ "replication_num" = "1"
+ );
```
3. **导入测试数据**
@@ -250,4 +253,3 @@ mysql -uroot -P9030 -h127.0.0.1 -e 'SELECT `host`, `alive`
FROM backends()'
-
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.x/gettingStarted/quick-start.mdx
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.x/gettingStarted/quick-start.mdx
index f5f817ef038..66fe23700d4 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.x/gettingStarted/quick-start.mdx
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-3.x/gettingStarted/quick-start.mdx
@@ -209,7 +209,10 @@ mysql -uroot -P9030 -h127.0.0.1 -e 'SELECT `host`, `alive`
FROM backends()'
k4 INT NOT NULL DEFAULT "1" COMMENT "int column"
)
COMMENT "my first table"
- DISTRIBUTED BY HASH(k1) BUCKETS 1;
+ DISTRIBUTED BY HASH(k1) BUCKETS 1
+ PROPERTIES (
+ "replication_num" = "1"
+ );
```
3. **导入测试数据**
@@ -256,4 +259,3 @@ sudo ln -s
/Applications/Docker.app/Contents/Resources/bin/docker /usr/local/bin
**Q: Mac: "error getting credentials - err: exit status 1, out: \`\`"**
A: 此错误通常由 Docker 凭据助手配置问题导致。对于本地开发/测试环境,可以删除 `~/.docker/config.json` 中的
`credsStore` 字段作为临时解决方案。注意:此方法会以明文存储凭据,仅建议在本地开发环境中使用。
-
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/gettingStarted/quick-start.mdx
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/gettingStarted/quick-start.mdx
index 066f24976b3..a3a277969dd 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/gettingStarted/quick-start.mdx
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/gettingStarted/quick-start.mdx
@@ -215,7 +215,10 @@ mysql -uroot -P9030 -h127.0.0.1 -e 'SELECT `host`, `alive`
FROM backends()'
k4 INT NOT NULL DEFAULT "1" COMMENT "int column"
)
COMMENT "my first table"
- DISTRIBUTED BY HASH(k1) BUCKETS 1;
+ DISTRIBUTED BY HASH(k1) BUCKETS 1
+ PROPERTIES (
+ "replication_num" = "1"
+ );
```
3. **导入测试数据**
@@ -262,4 +265,3 @@ sudo ln -s
/Applications/Docker.app/Contents/Resources/bin/docker /usr/local/bin
**Q: Mac: "error getting credentials - err: exit status 1, out: \`\`"**
A: 此错误通常由 Docker 凭据助手配置问题导致。对于本地开发/测试环境,可以删除 `~/.docker/config.json` 中的
`credsStore` 字段作为临时解决方案。注意:此方法会以明文存储凭据,仅建议在本地开发环境中使用。
-
diff --git a/versioned_docs/version-2.1/gettingStarted/quick-start.mdx
b/versioned_docs/version-2.1/gettingStarted/quick-start.mdx
index c71eb01b230..24de33d2149 100644
--- a/versioned_docs/version-2.1/gettingStarted/quick-start.mdx
+++ b/versioned_docs/version-2.1/gettingStarted/quick-start.mdx
@@ -215,7 +215,10 @@ Download the corresponding binary installation package
from the Apache Doris web
k4 INT NOT NULL DEFAULT "1" COMMENT "int column"
)
COMMENT "my first table"
- DISTRIBUTED BY HASH(k1) BUCKETS 1;
+ DISTRIBUTED BY HASH(k1) BUCKETS 1
+ PROPERTIES (
+ "replication_num" = "1"
+ );
```
3. **Import test data:**
@@ -249,4 +252,3 @@ Download the corresponding binary installation package from
the Apache Doris web
-
diff --git a/versioned_docs/version-3.x/gettingStarted/quick-start.mdx
b/versioned_docs/version-3.x/gettingStarted/quick-start.mdx
index a2781eade23..5b8221c134b 100644
--- a/versioned_docs/version-3.x/gettingStarted/quick-start.mdx
+++ b/versioned_docs/version-3.x/gettingStarted/quick-start.mdx
@@ -209,7 +209,10 @@ Download the corresponding binary installation package
from the Apache Doris web
k4 INT NOT NULL DEFAULT "1" COMMENT "int column"
)
COMMENT "my first table"
- DISTRIBUTED BY HASH(k1) BUCKETS 1;
+ DISTRIBUTED BY HASH(k1) BUCKETS 1
+ PROPERTIES (
+ "replication_num" = "1"
+ );
```
3. **Import test data:**
@@ -257,4 +260,3 @@ sudo ln -s
/Applications/Docker.app/Contents/Resources/bin/docker /usr/local/bin
A: This error is usually caused by Docker credential helper misconfiguration.
For local development/testing, you can remove the `credsStore` field in
`~/.docker/config.json` as a workaround. Note: This workaround stores
credentials in plaintext and is only recommended for local development
environments.
-
diff --git a/versioned_docs/version-4.x/gettingStarted/quick-start.mdx
b/versioned_docs/version-4.x/gettingStarted/quick-start.mdx
index 2b9ce5b2e11..b15e1d9396f 100644
--- a/versioned_docs/version-4.x/gettingStarted/quick-start.mdx
+++ b/versioned_docs/version-4.x/gettingStarted/quick-start.mdx
@@ -215,7 +215,10 @@ Download the corresponding binary installation package
from the Apache Doris web
k4 INT NOT NULL DEFAULT "1" COMMENT "int column"
)
COMMENT "my first table"
- DISTRIBUTED BY HASH(k1) BUCKETS 1;
+ DISTRIBUTED BY HASH(k1) BUCKETS 1
+ PROPERTIES (
+ "replication_num" = "1"
+ );
```
3. **Import test data:**
@@ -263,4 +266,3 @@ sudo ln -s
/Applications/Docker.app/Contents/Resources/bin/docker /usr/local/bin
A: This error is usually caused by Docker credential helper misconfiguration.
For local development/testing, you can remove the `credsStore` field in
`~/.docker/config.json` as a workaround. Note: This workaround stores
credentials in plaintext and is only recommended for local development
environments.
-
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]