bitflicker64 commented on code in PR #570:
URL: https://github.com/apache/hugegraph-doc/pull/570#discussion_r4608965036


##########
content/en/docs/quickstart/toolchain/hugegraph-spark-connector.md:
##########
@@ -12,29 +12,51 @@ Reading from HugeGraph is not implemented yet: the table 
only implements `Suppor
 
 ### 2 Environment Requirements
 
-- Java 8+
-- Maven 3.6+
-- Spark 3.2.x (the module is built against Spark 3.2.2 with `provided` scope, 
so your Spark runtime must supply the Spark jars)
-- Scala 2.12 (built with Scala 2.12.11)
+- Java 17 on the build machine, Spark driver and every executor
+- Maven 3.6.3+; Python 3.9+ for source SDK preparation
+- Spark 3.5.8 (dependencies use `provided` scope; the Spark distribution 
supplies them at runtime)
+- Scala 2.12 (built with Scala 2.12.18)
 
 ### 3 Building
 
+The following commands build current Toolchain `master`. First complete the
+[Tools SDK 
preparation](/docs/quickstart/toolchain/hugegraph-tools/#prepare-server-sdk), 
then stay in that Toolchain checkout
+and terminal to reuse `candidate_dir`. The Scala bytecode target alone does 
not lower the Java 17 requirement of the Client dependencies.
+
 #### 3.1 Build without executing tests
 
 ```bash
-git clone https://github.com/apache/hugegraph-toolchain.git
-cd hugegraph-toolchain
-mvn clean package -pl hugegraph-spark-connector -am -DskipTests -ntp
+mvn -Dmaven.repo.local="${candidate_dir:?Prepare the candidate SDK first}/m2" \
+  -Dhugegraph.version=1.8.0 -Dsdk.validation.mode=candidate \
+  clean package -pl hugegraph-spark-connector -am -DskipTests 
-Dmaven.javadoc.skip=true -ntp
 ```
 
 #### 3.2 Build with default tests
 
+The default integration tests clear their target graph before writing. Use a 
disposable Server and graph;
+set `-Dhugegraph.test.url=... -Dhugegraph.test.graph=...` to select it. See the
+[connector testing 
guide](https://github.com/apache/hugegraph-toolchain/blob/master/hugegraph-spark-connector/README.md#building)
+for local Spark and HTTPS test settings.
+
 ```bash
-mvn clean package -pl hugegraph-spark-connector -am -ntp
+mvn -Dmaven.repo.local="${candidate_dir:?Prepare the candidate SDK first}/m2" \
+  -Dhugegraph.version=1.8.0 -Dsdk.validation.mode=candidate \
+  clean package -pl hugegraph-spark-connector -am -Dmaven.javadoc.skip=true 
-ntp

Review Comment:
   Important: with `-am` and no `-DskipTests`, this command also runs the 
`hugegraph-client` API tests, which ignore `-Dhugegraph.test.url` and delete 
every edge, vertex and schema element of `hugegraph` at the hardcoded 
`http://127.0.0.1:8080`. Install the upstream modules with `-DskipTests` first, 
then run the tests from `hugegraph-spark-connector` without `-am`, as 
`spark-connector-ci.yml` does, and make the same change in 
`content/cn/docs/quickstart/toolchain/hugegraph-spark-connector.md`.



##########
content/en/docs/clients/client/hugegraph-client.md:
##########
@@ -988,8 +987,31 @@ spaceManager.createGraphSpace(graphSpace);
 | GraphSpace - Properties | getName() / getNickname() / getDescription() | Get 
name / nickname / description |
 |           | getGraphNumberUsed() / getRoleNumberUsed() | Get the number of 
graphs / roles in use |
 |           | getCpuUsed() / getMemoryUsed() / getStorageUsed() | Get the 
resources in use |
+|           | getStorageUsedKb() | Get storage usage in KB when the Server 
supplies a valid metric |

Review Comment:
   Minor: this row lists `getStorageUsedKb()` with no version note, but the 
`1.7.0` dependency in section 4.2 has no such method, so code copied from the 
table fails to compile. Mark the row the way 8.3 does, for example "Get storage 
usage in KB (Client `1.8.0` built from Toolchain `master`) when the Server 
supplies a valid metric", and make the same change to the `getStorageUsedKb()` 
row in `content/cn/docs/clients/client/hugegraph-client.md`.



-- 
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]

Reply via email to