Skip to content

Commit 4afb041

Browse files
authored
support auth for flink source (#99)
1 parent e027afd commit 4afb041

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

connector/src/main/java/org.apache.flink/connector/nebula/connection/NebulaStorageConnectionProvider.java

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ public StorageClient getStorageClient() throws Exception {
5656
storageClient = new StorageClient(addresses, timeout);
5757
}
5858

59+
storageClient.setUser(nebulaClientOptions.getUsername());
60+
storageClient.setPassword(nebulaClientOptions.getPassword());
5961
if (!storageClient.connect()) {
6062
throw new Exception("failed to connect storaged.");
6163
}

0 commit comments

Comments
 (0)