apache / incubator-pegasus

Apache Pegasus - A horizontally scalable, strongly consistent and high-performance key-value store
https://pegasus.apache.org/
Apache License 2.0
1.97k stars 314 forks source link

Errors occurred while launching Pegasus shell #1886

Closed empiredan closed 8 months ago

empiredan commented 8 months ago

While launching Pegasus shell, error occurred that config file was not found:

$ pwd
/home/data/pegasus

$ /home/data/pegasus/tools/run.sh shell --cluster 127.0.0.1:34601
sed: can't read /home/data/pegasus/src/shell/config.ini: No such file or directory

The reason was that the command was not executed under /home/data/pegasus/tools. Solving this problem, error occurred that libdsn_replica_server.so was not found:

$ /home/data/pegasus/tools/run.sh shell --cluster 127.0.0.1:34601
./pegasus_shell: error while loading shared libraries: libdsn_replica_server.so: cannot open shared object file: No such file or directory

The reason was that the dir of this library was not put in LD_LIBRARY_PATH. Solving this problem, error occurred that librocksdb.so.8 was not found:

$ /home/data/pegasus/tools/run.sh shell --cluster 127.0.0.1:34601
./pegasus_shell: error while loading shared libraries: librocksdb.so.8: cannot open shared object file: No such file or directory

The reason was that librocksdb.so.8 was not been put into the package while packing tools. Solving this problem, Pegasus shell was launched successfully.

empiredan commented 8 months ago

This issue is fixed by https://github.com/apache/incubator-pegasus/pull/1887.