Skip to content

Commit

Permalink
support to auth for reader (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole00 authored Dec 28, 2023
1 parent b6de2c4 commit 85eaaff
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions connector/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
<parent>
<artifactId>nebula-flink</artifactId>
<groupId>com.vesoft</groupId>
<version>3.0-SNAPSHOT</version>
<version>3.7.0-zszq</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>nebula-flink-connector</artifactId>

<properties>
<nebula.version>3.0-SNAPSHOT</nebula.version>
<nebula.version>3.7.0-zszq</nebula.version>
<flink.version>1.14.4</flink.version>
<scala.binary.version>2.11</scala.binary.version>
<compiler.source.version>1.8</compiler.source.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ public StorageClient getStorageClient() throws Exception {
storageClient = new StorageClient(addresses, timeout);
}

storageClient.setGraphAddress(nebulaClientOptions.getGraphAddress());
storageClient.setUser(nebulaClientOptions.getUsername());
storageClient.setPassword(nebulaClientOptions.getPassword());
storageClient.setVersion(nebulaClientOptions.getVersion());
if (!storageClient.connect()) {
throw new Exception("failed to connect storaged.");
Expand Down
2 changes: 1 addition & 1 deletion example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>nebula-flink</artifactId>
<groupId>com.vesoft</groupId>
<version>3.0-SNAPSHOT</version>
<version>3.7.0-zszq</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>com.vesoft</groupId>
<artifactId>nebula-flink</artifactId>
<packaging>pom</packaging>
<version>3.0-SNAPSHOT</version>
<version>3.7.0-zszq</version>

<modules>
<module>connector</module>
Expand Down

0 comments on commit 85eaaff

Please sign in to comment.