-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to make standalone nebula graph work #5296
Comments
Failed to reproduce the issue in release-3.3, can you please give more info? Like standalone info log or config. Or maybe use gcc to debug your code? |
Thank you for verifying. I tried on a different machine and I get the below logs for SessionExample.cpp Current address: 192.168.0.101:9669 Host|Port|HTTP port|Status|Leader count|Leader distribution|Partition distribution|Version| Additionally StorageClientExample.cpp gives below logs |
Additionally StorageClientExample.cpp gives below logs How can I fix above error? |
@chiru091096 could you try to do things with nebula-console or nebula-studio, looks like things are fine now. With nebula-console, you could type: |
Hi @wey-gu , |
Yes, it should be equivalent, but one thing that may confuse you is DDL(schema-related queries, including space creation, tag creation, index creation, etc.) won't take effect after the query is executed, it's async and will need (up to) two heartbeats to take effect. |
okay, @wey-gut hanks for the information. |
Hi,
However, executing it results in segmentation fault with bellow logs *** Aborted at 1675765960 (Unix time, try 'date -d @1675765960') *** However, the same query works fine with nebula-graph console. How can I fix this |
@Shylock-Hg do you have more ideas on this, please? |
Create space is a DDL statement, its result has no |
@Shylock-Hg thank you for the reply. I removed the statement accessing data field and that crash issue was resolved. Thank you @wey-gu,@Shylock-Hg, @SuperYoko , @Sophie-Xie for the quick support. |
I have installed nebulagraph standalone for linux with the below mentioned installation steps. However I'm not able to make the client work.
Installation steps : Built from source
Nebulagraph (Standalone)
$ git clone --branch release-3.3 https://github.com/vesoft-inc/nebula.git
$ cd nebula
$ mkdir build && cd build
$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local/nebula -DENABLE_TESTING=OFF -DENABLE_STANDALONE_VERSION=on -
DCMAKE_BUILD_TYPE=Release ..
$ make -j2
$ sudo make install
Nebula cpp client
$ git clone --branch release-3.3 https://github.com/vesoft-inc/nebula-cpp.git
$ cd nebula-cpp
$ mkdir build && cd build
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ make
$ sudo make install
$ sudo ldconfig
Start the nebula service
$ sudo /usr/local/nebula/scripts/nebula.service start all
Compile example code (SessionExample.cpp)
$ LIBRARY_PATH=/usr/local/nebula/lib:$LIBRARY_PATH g++ -std=c++11 SessionExample.cpp -I/usr/local/nebula/include -lnebula_graph_client -o session_example
Run session_example
$ ./session_example
I get the below log after the above step and the program doesn't terminate (gets stuck in ConnectionPool init function)
$ Current address : 127.0.0.1:9669
The text was updated successfully, but these errors were encountered: