diff --git a/example/ScanVertexEdgeExample.py b/example/ScanVertexEdgeExample.py index c70b3c8e..ec2cf388 100644 --- a/example/ScanVertexEdgeExample.py +++ b/example/ScanVertexEdgeExample.py @@ -131,6 +131,7 @@ def scan_person_edge(graph_storage_client): [("172.28.1.1", 9559), ("172.28.1.2", 9559), ("172.28.1.3", 9559)], 50000 ) graph_storage_client = GraphStorageClient(meta_cache) + graph_storage_client.set_user_passwd("root", "nebula") prepare_data() scan_person_vertex(graph_storage_client) scan_person_edge(graph_storage_client) diff --git a/nebula3/sclient/GraphStorageClient.py b/nebula3/sclient/GraphStorageClient.py index 0db2fffa..c1e73c4a 100644 --- a/nebula3/sclient/GraphStorageClient.py +++ b/nebula3/sclient/GraphStorageClient.py @@ -44,7 +44,7 @@ def __init__(self, meta_cache, storage_addrs=None, time_out=60000): self._connections = [] self._create_connection() - def set_userPasswd(self, user, passwd): + def set_user_passwd(self, user, passwd): """set user and password for scan. only useful for enterprise :return: """