Skip to content

Commit 10e6eaf

Browse files
authored
add example for scan auth (vesoft-inc#578)
1 parent 5663a4d commit 10e6eaf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/src/main/java/com/vesoft/nebula/examples/StorageClientExample.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ public static void main(String[] args) {
2525
// input params are the metad's ip and port
2626
StorageClient client = new StorageClient("127.0.0.1", 9559);
2727
try {
28+
client.setGraphAddress("127.0.0.1:9669");
29+
client.setUser("root");
30+
client.setPassword("nebula");
31+
client.setVersion("test");
2832
client.connect();
2933
} catch (Exception e) {
3034
LOGGER.error("storage client connect error, ", e);

0 commit comments

Comments
 (0)