This is an automated email from the ASF dual-hosted git repository.
vhs pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git
The following commit(s) were added to refs/heads/master by this push:
new 351efaef4f3a docs: Improve the annotation format of examples (#17749)
351efaef4f3a is described below
commit 351efaef4f3a1f80b1137d02374ef45f080ec15b
Author: huangxiaoping <[email protected]>
AuthorDate: Tue Dec 30 13:01:50 2025 +0800
docs: Improve the annotation format of examples (#17749)
---
.../org/apache/hudi/examples/spark/HoodieDataSourceExample.scala | 5 +++--
.../org/apache/hudi/examples/spark/HoodieMorCompactionJob.scala | 2 ++
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git
a/hudi-examples/hudi-examples-spark/src/main/scala/org/apache/hudi/examples/spark/HoodieDataSourceExample.scala
b/hudi-examples/hudi-examples-spark/src/main/scala/org/apache/hudi/examples/spark/HoodieDataSourceExample.scala
index 55251b9e2a00..f805feb923da 100644
---
a/hudi-examples/hudi-examples-spark/src/main/scala/org/apache/hudi/examples/spark/HoodieDataSourceExample.scala
+++
b/hudi-examples/hudi-examples-spark/src/main/scala/org/apache/hudi/examples/spark/HoodieDataSourceExample.scala
@@ -34,9 +34,10 @@ import scala.collection.JavaConverters._
* Simple examples of [[org.apache.hudi.DefaultSource]]
*
* To run this example, you should
+ * <pre>
* 1. For running in IDE, set VM options `-Dspark.master=local[2]`
- * 2. For running in shell, using `spark-submit`
- *
+ * 2. For running in shell, using `spark-submit`
+ * </pre>
* Usage: HoodieWriteClientExample <tablePath> <tableName>.
* <tablePath> and <tableName> describe root path of hudi and table name
* for example, `HoodieDataSourceExample file:///tmp/hoodie/hudi_cow_table
hudi_cow_table`
diff --git
a/hudi-examples/hudi-examples-spark/src/main/scala/org/apache/hudi/examples/spark/HoodieMorCompactionJob.scala
b/hudi-examples/hudi-examples-spark/src/main/scala/org/apache/hudi/examples/spark/HoodieMorCompactionJob.scala
index cbf587c3391b..707c54a3def5 100644
---
a/hudi-examples/hudi-examples-spark/src/main/scala/org/apache/hudi/examples/spark/HoodieMorCompactionJob.scala
+++
b/hudi-examples/hudi-examples-spark/src/main/scala/org/apache/hudi/examples/spark/HoodieMorCompactionJob.scala
@@ -38,8 +38,10 @@ import scala.collection.JavaConverters._
/**
* Simple example to run a compaction job for MOR table.
* To run this example, you should:
+ * <pre>
* 1. For running in IDE, set VM options `-Dspark.master=local[2]`
* 2. For running in shell, using `spark-submit`
+ * </pre>
*
* Usage: HoodieMorCompactionJob <tablePath> <tableName>.
* <tablePath> and <tableName> describe root path of hudi and table name