This is an automated email from the ASF dual-hosted git repository.
frankchen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new e7d753d4b03 update the doc for dump-segment tool when using jdk11+
(#15971)
e7d753d4b03 is described below
commit e7d753d4b03ceb58d38bea99b4b800ce993a80fd
Author: AlbericByte <[email protected]>
AuthorDate: Tue Feb 27 17:40:10 2024 -0800
update the doc for dump-segment tool when using jdk11+ (#15971)
* update the doc for dump-segment tool when using jdk11+
* update the style
* fix spell check error
---
docs/operations/dump-segment.md | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/docs/operations/dump-segment.md b/docs/operations/dump-segment.md
index 299ca219522..f8c99366ad2 100644
--- a/docs/operations/dump-segment.md
+++ b/docs/operations/dump-segment.md
@@ -36,6 +36,22 @@ java -classpath "/my/druid/lib/*"
-Ddruid.extensions.loadList="[]" org.apache.dr
--out /home/druid/output.txt
```
+If you use JDK 11 and above, you need to add the following additional
parameters
+```
+--add-opens java.base/java.lang=ALL-UNNAMED
+--add-opens java.base/sun.nio.ch=ALL-UNNAMED
+```
+The following is an example
+
+```
+java --add-opens java.base/java.lang=ALL-UNNAMED --add-opens
java.base/sun.nio.ch=ALL-UNNAMED \
+ -classpath "/my/druid/lib/*" \
+ -Ddruid.extensions.loadList="[]" org.apache.druid.cli.Main \
+ tools dump-segment \
+ --directory /home/druid/path/to/segment/ \
+ --out /home/druid/output.txt
+```
+
### Output format
#### Data dumps
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]