You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pegasus.apache.org by GitBox <gi...@apache.org> on 2022/05/30 02:19:32 UTC
[GitHub] [incubator-pegasus] felixdae opened a new issue, #986: one doc of admin-cli is misleading
felixdae opened a new issue, #986:
URL: https://github.com/apache/incubator-pegasus/issues/986
```
Pegasus-AdminCli-1.2.0 » help create
Create a Pegasus table.
Please pay attention to the partition number. It usually depends on the table's on-disk storage size.
To achieve an predictable performance, you should keep the average partition size within a acceptable
range.
Usage:
create <table> [-p|--partitions <NUM>] [-r|--replica <NUM>]
Args:
table string the table name
Flags:
-h, --help display help
-p, --partitions int the number of partitions (default: 4)
-r, --replica int the number of replicas (default: 3)
```
by following the usage, you just can't create a table successfully
```
Pegasus-AdminCli-1.2.0 » create test_create -p 4 -r 3
error: invalid usage of command 'create' (unconsumed input '-p 4 -r 3'), try 'help'
```
as a matter of fact, you can create tables as below, so i think the `usage` doc is wrong. it should be "create [-p|--partitions <NUM>] [-r|--replica <NUM>] <table>"
```
Pegasus-AdminCli-1.2.0 » create -p 4 -r 3 test_create1
Creating table "test_create1" (AppID: 3)
Available partitions:
4 / 4 [-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 100.00% 5 p/s 1s
Done!
Pegasus-AdminCli-1.2.0 » create -p 4 test_create2
Creating table "test_create2" (AppID: 4)
Available partitions:
4 / 4 [----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 100.00% 0 p/s 11s
Done!
Pegasus-AdminCli-1.2.0 » create test_create3
Creating table "test_create3" (AppID: 5)
Available partitions:
4 / 4 [----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 100.00% 0 p/s 13s
Done!
```
--
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: dev-unsubscribe@pegasus.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pegasus.apache.org
For additional commands, e-mail: dev-help@pegasus.apache.org
[GitHub] [incubator-pegasus] acelyc111 closed issue #986: one doc of admin-cli is misleading
Posted by GitBox <gi...@apache.org>.
acelyc111 closed issue #986: one doc of admin-cli is misleading
URL: https://github.com/apache/incubator-pegasus/issues/986
--
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: dev-unsubscribe@pegasus.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pegasus.apache.org
For additional commands, e-mail: dev-help@pegasus.apache.org