(root@nebula) [nba]> show spaces
+--------+
| Name |
+--------+
| "nba" |
+--------+
| "test" |
+--------+
Got 2 rows (time spent 861/1571 us)
Tue, 02 Mar 2021 03:23:57 UTC
Nebula Status
[root@YT-Nebula-1 ~]# /mnt/nebula/scripts/nebula.service status all
[INFO] nebula-metad: Running as 7102, Listening on 9559
[INFO] nebula-graphd: Running as 7144, Listening on 9669
[INFO] nebula-storaged: Running as 7210, Listening on 9779
ERROR [main] - Method name listSpaces not found
ERROR [main] - Method name listSpaces not found
Exception in thread "main" java.lang.IllegalArgumentException: Space:test does not exist.
at com.vesoft.nebula.client.meta.MetaManager.getPartsAlloc(MetaManager.java:307)
at com.vesoft.nebula.client.meta.MetaManager.getSpaceParts(MetaManager.java:289)
at com.vesoft.nebula.client.storage.StorageClient.scanVertex(StorageClient.java:200)
at com.vesoft.nebula.client.storage.StorageClient.scanVertex(StorageClient.java:134)
at com.vesoft.nebula.client.storage.StorageClient.scanVertex(StorageClient.java:99)
at com.vesoft.nebula.client.storage.StorageClient.scanVertex(StorageClient.java:67)
at com.vesoft.nebula.examples.StorageClientExample.scanVertex(StorageClientExample.java:46)
at com.vesoft.nebula.examples.StorageClientExample.main(StorageClientExample.java:36)
ERROR [pool-1-thread-1] - get storage client error,
java.util.NoSuchElementException: Unable to activate object
at org.apache.commons.pool2.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:400)
at org.apache.commons.pool2.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:277)
at com.vesoft.nebula.client.storage.StorageConnPool.getStorageConnection(StorageConnPool.java:42)
at com.vesoft.nebula.client.storage.scan.ScanVertexResultIterator.lambda$next$0(ScanVertexResultIterator.java:81)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.facebook.thrift.transport.TTransportException: java.net.ConnectException: Connection refused (Connection refused)
at com.facebook.thrift.transport.TSocket.open(TSocket.java:204)
at com.vesoft.nebula.client.storage.GraphStorageConnection.open(GraphStorageConnection.java:40)
at com.vesoft.nebula.client.storage.StorageConnPoolFactory.activateObject(StorageConnPoolFactory.java:59)
at com.vesoft.nebula.client.storage.StorageConnPoolFactory.activateObject(StorageConnPoolFactory.java:16)
at org.apache.commons.pool2.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:391)
... 8 more
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394)
at java.net.Socket.connect(Socket.java:606)
at com.facebook.thrift.transport.TSocket.open(TSocket.java:199)
... 12 more
ERROR [main] - scan error,
com.vesoft.nebula.client.meta.exception.ExecuteFailedException: Execute failed: no parts succeed, error message: Unable to activate object
at com.vesoft.nebula.client.storage.scan.ScanResultIterator.throwExceptions(ScanResultIterator.java:99)
at com.vesoft.nebula.client.storage.scan.ScanVertexResultIterator.next(ScanVertexResultIterator.java:142)
at com.vesoft.nebula.examples.StorageClientExample.scanVertex(StorageClientExample.java:54)
at com.vesoft.nebula.examples.StorageClientExample.main(StorageClientExample.java:36)
Process finished with exit code 1
Nebula 查询
(root@nebula) [(none)]> show hosts
+-------------+------+----------+--------------+---------------------+------------------------+
| Host | Port | Status | Leader count | Leader distribution | Partition distribution |
+-------------+------+----------+--------------+---------------------+------------------------+
| "127.0.0.1" | 9779 | "ONLINE" | 110 | "nba:10, test:100" | "nba:10, test:100" |
+-------------+------+----------+--------------+---------------------+------------------------+
| "Total" | | | 110 | "nba:10, test:100" | "nba:10, test:100" |
+-------------+------+----------+--------------+---------------------+------------------------+
Got 2 rows (time spent 1047/35032 us)
Tue, 02 Mar 2021 06:47:47 UTC
(root@nebula) [(none)]> use test
Execution succeeded (time spent 875/28327 us)
Tue, 02 Mar 2021 08:19:12 UTC
(root@nebula) [test]> show tags
+----------+
| Name |
+----------+
| "person" |
+----------+
Got 1 rows (time spent 866/28583 us)
Tue, 02 Mar 2021 08:19:15 UTC
(root@nebula) [test]>
nebula-graphd version 2.0.0-rc1, Git: 5713b46, Build Time: Jan 6 2021 15:31:08
This source code is licensed under Apache 2.0 License, attached with Common Clause Condition 1.0.