apache / apache/incubator-pegasus

How to connected to target cluster via pegasus shell config

Open
#2,108 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
2.1k
Forks
328
PR merge metrics
No merged PRs in 30d

Description

## General Question
I have read the documentation, but can not found the way that use `./run.sh shell --config my_config.ini` to connected to my target cluster. In other word, I don't know how to config it.
I tried to use the config file named `my_cluster.cfg` which I used to deployed cluster. But it not work,with the error like this:
```
W2024-08-30 11:17:43.874 (1725016663874826365 42119) : overwrite default thread pool for task RPC_CM_QUERY_PARTITION_CONFIG_BY_INDEX_ACK from THREAD_POOL_META_SERVER to THREAD_POOL_DEFAULT
Pegasus Shell 2.4.5-without-slog
Type "help" for more information.
Type "Ctrl-D" or "Ctrl-C" to exit the shell.

cannot find factory '' with factory type provider
the following 2 factories are registered:
nativerun (type: provider)
simulator (type: provider)
Please specify the correct factory name in your tool_app or in configuration file
got signal id: 11
./run.sh: line 1724: 42119 Segmentation fault ./pegasus_shell ${CONFIG} $CLUSTER_NAM
```
And I read the code , I think we should get the section named[meta] to get meta list , I just konw how to write the xxxx.ini file
![image](https://github.com/user-attachments/assets/ec091d61-92ba-46f4-9600-4f183e55f41f)

Contributor guide

Open the contributing guide

Research direction

Start with the `./run.sh shell --config my_config.ini` invocation and the `pegasus_shell` configuration handling mentioned in the issue. Check how the `[meta]` section and `tool_app` or provider factory settings are expected to be written, then verify that the shell connects without the factory error or segmentation fault.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, distributed-systems
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.