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
This commit is contained in:
AlbericByte 2024-02-27 17:40:10 -08:00 committed by GitHub
parent beccc401e1
commit e7d753d4b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 16 additions and 0 deletions

View File

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