Storage Client Error

Nebula Service Version: 2.0-rc1

Pom:

    <groupId>com.vesoft</groupId>
    <artifactId>client</artifactId>
    <version>2.0.0-rc1</version>

My Code:

import com.vesoft.nebula.client.storage.StorageClient;
import com.vesoft.nebula.client.storage.scan.ScanVertexResultIterator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.UnsupportedEncodingException;

public class StorageClientExample {

private static final Logger LOGGER = LoggerFactory.getLogger(StorageClientExample.class);

public static void main(String[] args) throws UnsupportedEncodingException {
    StorageClient client = new StorageClient("192.168.11.20", 9779);
    try {
        client.connect();
    } catch (Exception e) {
        LOGGER.error("storage client connect error, ", e);
        System.exit(1);
    }

    ScanVertexResultIterator iterator = client.scanVertex(
            "test",
            "person");
}
}

My console output:

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:272)
at com.vesoft.nebula.client.storage.StorageClient.scanVertex(StorageClient.java:154)
at com.vesoft.nebula.client.storage.StorageClient.scanVertex(StorageClient.java:113)
at com.vesoft.nebula.client.storage.StorageClient.scanVertex(StorageClient.java:80)
at com.xiao.demo.StorageClientExample.main(StorageClientExample.java:30)

Process finished with exit code 1

这里要填metad的端口。

浙ICP备20010487号