imbajin commented on code in PR #265:
URL:
https://github.com/apache/incubator-hugegraph-computer/pull/265#discussion_r1329553847
##########
computer-api/src/main/java/org/apache/hugegraph/computer/core/output/hg/task/TaskManager.java:
##########
@@ -56,7 +56,9 @@ public TaskManager(Config config) {
this.config = config;
String url = config.get(ComputerOptions.HUGEGRAPH_URL);
String graph = config.get(ComputerOptions.HUGEGRAPH_GRAPH_NAME);
- this.client = new HugeClientBuilder(url, graph).build();
+ String username = config.get(ComputerOptions.HUGEGRAPH_USERNAME);
+ String password = config.get(ComputerOptions.HUGEGRAPH_PASSWORD);
+ this.client = new HugeClientBuilder(url, graph).configUser(username,
password).build();
Review Comment:
> @diaohancai @imbajin seems `configToken` has deprecated in
hugegraph-client-1.0.0, we can use `configUser` instead. refer to
[apache/incubator-hugegraph-toolchain@`1.0.0`/hugegraph-client/src/main/java/org/apache/hugegraph/driver/HugeClientBuilder.java#L108](https://github.com/apache/incubator-hugegraph-toolchain/blob/1.0.0/hugegraph-client/src/main/java/org/apache/hugegraph/driver/HugeClientBuilder.java?rgh-link-date=2023-09-19T03%3A35%3A21Z#L108)
OK, the refer code is also outdated:)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]