Skip to content

Commit c12431d

Browse files
dataroaringspjcodes
andcommitted
[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 <46839763+spjcodes@users.noreply.github.com>
1 parent a863d2b commit c12431d

8 files changed

Lines changed: 32 additions & 16 deletions

File tree

docs/gettingStarted/quick-start.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,10 @@ Download the corresponding binary installation package from the Apache Doris web
215215
k4 INT NOT NULL DEFAULT "1" COMMENT "int column"
216216
)
217217
COMMENT "my first table"
218-
DISTRIBUTED BY HASH(k1) BUCKETS 1;
218+
DISTRIBUTED BY HASH(k1) BUCKETS 1
219+
PROPERTIES (
220+
"replication_num" = "1"
221+
);
219222
```
220223
221224
3. **Import test data:**
@@ -263,4 +266,3 @@ sudo ln -s /Applications/Docker.app/Contents/Resources/bin/docker /usr/local/bin
263266
264267
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.
265268
266-

i18n/zh-CN/docusaurus-plugin-content-docs/current/gettingStarted/quick-start.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,10 @@ mysql -uroot -P9030 -h127.0.0.1 -e 'SELECT `host`, `alive` FROM backends()'
215215
k4 INT NOT NULL DEFAULT "1" COMMENT "int column"
216216
)
217217
COMMENT "my first table"
218-
DISTRIBUTED BY HASH(k1) BUCKETS 1;
218+
DISTRIBUTED BY HASH(k1) BUCKETS 1
219+
PROPERTIES (
220+
"replication_num" = "1"
221+
);
219222
```
220223
221224
3. **导入测试数据**
@@ -262,4 +265,3 @@ sudo ln -s /Applications/Docker.app/Contents/Resources/bin/docker /usr/local/bin
262265
**Q: Mac: "error getting credentials - err: exit status 1, out: \`\`"**
263266
264267
A: 此错误通常由 Docker 凭据助手配置问题导致。对于本地开发/测试环境,可以删除 `~/.docker/config.json` 中的 `credsStore` 字段作为临时解决方案。注意:此方法会以明文存储凭据,仅建议在本地开发环境中使用。
265-

i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/gettingStarted/quick-start.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,10 @@ mysql -uroot -P9030 -h127.0.0.1 -e 'SELECT `host`, `alive` FROM backends()'
217217
k4 INT NOT NULL DEFAULT "1" COMMENT "int column"
218218
)
219219
COMMENT "my first table"
220-
DISTRIBUTED BY HASH(k1) BUCKETS 1;
220+
DISTRIBUTED BY HASH(k1) BUCKETS 1
221+
PROPERTIES (
222+
"replication_num" = "1"
223+
);
221224
```
222225
223226
3. **导入测试数据**
@@ -250,4 +253,3 @@ mysql -uroot -P9030 -h127.0.0.1 -e 'SELECT `host`, `alive` FROM backends()'
250253
251254
252255
253-

i18n/zh-CN/docusaurus-plugin-content-docs/version-3.x/gettingStarted/quick-start.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,10 @@ mysql -uroot -P9030 -h127.0.0.1 -e 'SELECT `host`, `alive` FROM backends()'
209209
k4 INT NOT NULL DEFAULT "1" COMMENT "int column"
210210
)
211211
COMMENT "my first table"
212-
DISTRIBUTED BY HASH(k1) BUCKETS 1;
212+
DISTRIBUTED BY HASH(k1) BUCKETS 1
213+
PROPERTIES (
214+
"replication_num" = "1"
215+
);
213216
```
214217
215218
3. **导入测试数据**
@@ -256,4 +259,3 @@ sudo ln -s /Applications/Docker.app/Contents/Resources/bin/docker /usr/local/bin
256259
**Q: Mac: "error getting credentials - err: exit status 1, out: \`\`"**
257260
258261
A: 此错误通常由 Docker 凭据助手配置问题导致。对于本地开发/测试环境,可以删除 `~/.docker/config.json` 中的 `credsStore` 字段作为临时解决方案。注意:此方法会以明文存储凭据,仅建议在本地开发环境中使用。
259-

i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/gettingStarted/quick-start.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,10 @@ mysql -uroot -P9030 -h127.0.0.1 -e 'SELECT `host`, `alive` FROM backends()'
215215
k4 INT NOT NULL DEFAULT "1" COMMENT "int column"
216216
)
217217
COMMENT "my first table"
218-
DISTRIBUTED BY HASH(k1) BUCKETS 1;
218+
DISTRIBUTED BY HASH(k1) BUCKETS 1
219+
PROPERTIES (
220+
"replication_num" = "1"
221+
);
219222
```
220223
221224
3. **导入测试数据**
@@ -262,4 +265,3 @@ sudo ln -s /Applications/Docker.app/Contents/Resources/bin/docker /usr/local/bin
262265
**Q: Mac: "error getting credentials - err: exit status 1, out: \`\`"**
263266
264267
A: 此错误通常由 Docker 凭据助手配置问题导致。对于本地开发/测试环境,可以删除 `~/.docker/config.json` 中的 `credsStore` 字段作为临时解决方案。注意:此方法会以明文存储凭据,仅建议在本地开发环境中使用。
265-

versioned_docs/version-2.1/gettingStarted/quick-start.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,10 @@ Download the corresponding binary installation package from the Apache Doris web
215215
k4 INT NOT NULL DEFAULT "1" COMMENT "int column"
216216
)
217217
COMMENT "my first table"
218-
DISTRIBUTED BY HASH(k1) BUCKETS 1;
218+
DISTRIBUTED BY HASH(k1) BUCKETS 1
219+
PROPERTIES (
220+
"replication_num" = "1"
221+
);
219222
```
220223
221224
3. **Import test data:**
@@ -249,4 +252,3 @@ Download the corresponding binary installation package from the Apache Doris web
249252
250253
251254
252-

versioned_docs/version-3.x/gettingStarted/quick-start.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,10 @@ Download the corresponding binary installation package from the Apache Doris web
209209
k4 INT NOT NULL DEFAULT "1" COMMENT "int column"
210210
)
211211
COMMENT "my first table"
212-
DISTRIBUTED BY HASH(k1) BUCKETS 1;
212+
DISTRIBUTED BY HASH(k1) BUCKETS 1
213+
PROPERTIES (
214+
"replication_num" = "1"
215+
);
213216
```
214217
215218
3. **Import test data:**
@@ -257,4 +260,3 @@ sudo ln -s /Applications/Docker.app/Contents/Resources/bin/docker /usr/local/bin
257260
258261
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.
259262
260-

versioned_docs/version-4.x/gettingStarted/quick-start.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,10 @@ Download the corresponding binary installation package from the Apache Doris web
215215
k4 INT NOT NULL DEFAULT "1" COMMENT "int column"
216216
)
217217
COMMENT "my first table"
218-
DISTRIBUTED BY HASH(k1) BUCKETS 1;
218+
DISTRIBUTED BY HASH(k1) BUCKETS 1
219+
PROPERTIES (
220+
"replication_num" = "1"
221+
);
219222
```
220223
221224
3. **Import test data:**
@@ -263,4 +266,3 @@ sudo ln -s /Applications/Docker.app/Contents/Resources/bin/docker /usr/local/bin
263266
264267
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.
265268
266-

0 commit comments

Comments
 (0)