This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph-doc.git
The following commit(s) were added to refs/heads/asf-site by this push:
new b445eea7 doc(setup-idea): sync EN doc for previous PR (#327)
b2bda6d65078da997a5de32c57ef143f3bc9d418
b445eea7 is described below
commit b445eea7e353242b82c09e1ee80bc4be56df471a
Author: imbajin <[email protected]>
AuthorDate: Wed Jan 24 04:55:48 2024 +0000
doc(setup-idea): sync EN doc for previous PR (#327)
b2bda6d65078da997a5de32c57ef143f3bc9d418
---
cn/docs/_print/index.html | 8 ++++----
cn/docs/contribution-guidelines/_print/index.html | 8 ++++----
.../hugegraph-server-idea-setup/index.html | 14 +++++++-------
cn/docs/contribution-guidelines/index.xml | 8 ++++----
cn/docs/index.xml | 8 ++++----
cn/sitemap.xml | 2 +-
docs/_print/index.html | 12 ++++++++----
docs/contribution-guidelines/_print/index.html | 12 ++++++++----
.../hugegraph-server-idea-setup/index.html | 22 +++++++++++++---------
docs/contribution-guidelines/index.xml | 22 +++++++++++++++++-----
docs/index.xml | 22 +++++++++++++++++-----
en/sitemap.xml | 2 +-
sitemap.xml | 2 +-
13 files changed, 89 insertions(+), 53 deletions(-)
diff --git a/cn/docs/_print/index.html b/cn/docs/_print/index.html
index 84d3a0e8..29976797 100644
--- a/cn/docs/_print/index.html
+++ b/cn/docs/_print/index.html
@@ -7989,8 +7989,8 @@ LICENSE 是 Apache 2.0, 且对应的项目中包含了 NOTICE, 则还需要更
</span></span><span style=display:flex><span>serializer=binary
</span></span><span style=display:flex><span>rocksdb.data_path=.
</span></span><span style=display:flex><span>rocksdb.wal_path=.
-</span></span></code></pre></div><p>然后,打开 IntelliJ IDEA 的 <code>Run/Debug
Configurations</code> 面板,创建一个新的 Application 配置,按照以下步骤进行配置:</p><ul><li>在
<code>Use classpath of module</code> 中选择 <code>hugegraph-dist</code></li><li>将
<code>Main class</code> 设置为
<code>org.apache.hugegraph.cmd.InitStore</code></li><li>设置运行参数为
<code>conf/rest-server.properties</code>,这里的路径是相对于工作路径的,需要将工作路径设置为
<code>path-to-your-directory</code></li></ul><blockquote><p>若在 <strong>Java
11</strong> 环境下为 HugeGraph-Serve [...]
-</span></span></code></pre></div><p>否则会报错:</p><div class=highlight><pre
tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-text data-lang=text><span
style=display:flex><span>java.lang.reflect.InaccessibleObjectException: Unable
to make public static synchronized void
jdk.internal.reflect.Reflection.registerFieldsToFilter(java.lang.Class,java.lang.String[])
accessible: module java.base does not "exports jdk.internal.reflect"
to [...]
+</span></span></code></pre></div><p>然后,打开 IntelliJ IDEA 的 <code>Run/Debug
Configurations</code> 面板,创建一个新的 Application 配置,按照以下步骤进行配置:</p><ul><li>在
<code>Use classpath of module</code> 中选择 <code>hugegraph-dist</code></li><li>将
<code>Main class</code> 设置为
<code>org.apache.hugegraph.cmd.InitStore</code></li><li>设置运行参数为
<code>conf/rest-server.properties</code>,这里的路径是相对于工作路径的,需要将工作路径设置为
<code>path-to-your-directory</code></li></ul><blockquote><p>若在 <strong>Java
11</strong> 环境下为 HugeGraph-Serve [...]
+</span></span></code></pre></div><p>否则会报错:</p><div class=highlight><pre
tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#000>java</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>lang</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>reflect</span><span
style=color:#ce5c00;font-weight:700>.</span><spa [...]
</span></span></code></pre></div></blockquote><p>配置完成后运行,如果运行成功,将会输出以下类似运行日志:</p><div
class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>37</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#ce5c00;font-weight:700>......</span>
@@ -8002,8 +8002,8 @@ LICENSE 是 Apache 2.0, 且对应的项目中包含了 NOTICE, 则还需要更
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>39</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>39</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>39</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
-</span></span></code></pre></div><h4 id=3-运行-hugegraphserver>3. 运行
<code>HugeGraphServer</code></h4><p>类似地,打开 IntelliJ IDEA 的 <code>Run/Debug
Configurations</code> 面板,创建一个新的 <code>Application</code>
配置,按照以下步骤进行配置:</p><ul><li>在 <code>Use classpath of module</code> 中选择
<code>hugegraph-dist</code></li><li>将 <code>Main class</code> 设置为
<code>org.apache.hugegraph.dist.HugeGraphServer</code></li><li>设置运行参数为
<code>conf/gremlin-server.yaml
conf/rest-server.properties</code>,同样地,这里的路径是相对于工作路径的,需要 [...]
-</span></span></code></pre></div><p>否则会报错:</p><div class=highlight><pre
tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-text data-lang=text><span
style=display:flex><span>java.lang.reflect.InaccessibleObjectException: Unable
to make public static synchronized void
jdk.internal.reflect.Reflection.registerFieldsToFilter(java.lang.Class,java.lang.String[])
accessible: module java.base does not "exports jdk.internal.reflect"
to [...]
+</span></span></code></pre></div><h4 id=3-运行-hugegraphserver>3. 运行
<code>HugeGraphServer</code></h4><p>类似地,打开 IntelliJ IDEA 的 <code>Run/Debug
Configurations</code> 面板,创建一个新的 <code>Application</code>
配置,按照以下步骤进行配置:</p><ul><li>在 <code>Use classpath of module</code> 中选择
<code>hugegraph-dist</code></li><li>将 <code>Main class</code> 设置为
<code>org.apache.hugegraph.dist.HugeGraphServer</code></li><li>设置运行参数为
<code>conf/gremlin-server.yaml
conf/rest-server.properties</code>,同样地,这里的路径是相对于工作路径的,需要 [...]
+</span></span></code></pre></div><p>否则会报错:</p><div class=highlight><pre
tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#000>java</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>lang</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>reflect</span><span
style=color:#ce5c00;font-weight:700>.</span><spa [...]
</span></span></code></pre></div></blockquote><p>配置完成后运行,如果看到以下类似日志,表示
<code>HugeGraphServer</code> 已经成功启动:</p><div class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#ce5c00;font-weight:700>......</span>
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>51</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>56</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>51</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>56</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
diff --git a/cn/docs/contribution-guidelines/_print/index.html
b/cn/docs/contribution-guidelines/_print/index.html
index 36fcbe95..be7fd929 100644
--- a/cn/docs/contribution-guidelines/_print/index.html
+++ b/cn/docs/contribution-guidelines/_print/index.html
@@ -169,8 +169,8 @@ LICENSE 是 Apache 2.0, 且对应的项目中包含了 NOTICE, 则还需要更
</span></span><span style=display:flex><span>serializer=binary
</span></span><span style=display:flex><span>rocksdb.data_path=.
</span></span><span style=display:flex><span>rocksdb.wal_path=.
-</span></span></code></pre></div><p>然后,打开 IntelliJ IDEA 的 <code>Run/Debug
Configurations</code> 面板,创建一个新的 Application 配置,按照以下步骤进行配置:</p><ul><li>在
<code>Use classpath of module</code> 中选择 <code>hugegraph-dist</code></li><li>将
<code>Main class</code> 设置为
<code>org.apache.hugegraph.cmd.InitStore</code></li><li>设置运行参数为
<code>conf/rest-server.properties</code>,这里的路径是相对于工作路径的,需要将工作路径设置为
<code>path-to-your-directory</code></li></ul><blockquote><p>若在 <strong>Java
11</strong> 环境下为 HugeGraph-Serve [...]
-</span></span></code></pre></div><p>否则会报错:</p><div class=highlight><pre
tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-text data-lang=text><span
style=display:flex><span>java.lang.reflect.InaccessibleObjectException: Unable
to make public static synchronized void
jdk.internal.reflect.Reflection.registerFieldsToFilter(java.lang.Class,java.lang.String[])
accessible: module java.base does not "exports jdk.internal.reflect"
to [...]
+</span></span></code></pre></div><p>然后,打开 IntelliJ IDEA 的 <code>Run/Debug
Configurations</code> 面板,创建一个新的 Application 配置,按照以下步骤进行配置:</p><ul><li>在
<code>Use classpath of module</code> 中选择 <code>hugegraph-dist</code></li><li>将
<code>Main class</code> 设置为
<code>org.apache.hugegraph.cmd.InitStore</code></li><li>设置运行参数为
<code>conf/rest-server.properties</code>,这里的路径是相对于工作路径的,需要将工作路径设置为
<code>path-to-your-directory</code></li></ul><blockquote><p>若在 <strong>Java
11</strong> 环境下为 HugeGraph-Serve [...]
+</span></span></code></pre></div><p>否则会报错:</p><div class=highlight><pre
tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#000>java</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>lang</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>reflect</span><span
style=color:#ce5c00;font-weight:700>.</span><spa [...]
</span></span></code></pre></div></blockquote><p>配置完成后运行,如果运行成功,将会输出以下类似运行日志:</p><div
class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>37</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#ce5c00;font-weight:700>......</span>
@@ -182,8 +182,8 @@ LICENSE 是 Apache 2.0, 且对应的项目中包含了 NOTICE, 则还需要更
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>39</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>39</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>39</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
-</span></span></code></pre></div><h4 id=3-运行-hugegraphserver>3. 运行
<code>HugeGraphServer</code></h4><p>类似地,打开 IntelliJ IDEA 的 <code>Run/Debug
Configurations</code> 面板,创建一个新的 <code>Application</code>
配置,按照以下步骤进行配置:</p><ul><li>在 <code>Use classpath of module</code> 中选择
<code>hugegraph-dist</code></li><li>将 <code>Main class</code> 设置为
<code>org.apache.hugegraph.dist.HugeGraphServer</code></li><li>设置运行参数为
<code>conf/gremlin-server.yaml
conf/rest-server.properties</code>,同样地,这里的路径是相对于工作路径的,需要 [...]
-</span></span></code></pre></div><p>否则会报错:</p><div class=highlight><pre
tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-text data-lang=text><span
style=display:flex><span>java.lang.reflect.InaccessibleObjectException: Unable
to make public static synchronized void
jdk.internal.reflect.Reflection.registerFieldsToFilter(java.lang.Class,java.lang.String[])
accessible: module java.base does not "exports jdk.internal.reflect"
to [...]
+</span></span></code></pre></div><h4 id=3-运行-hugegraphserver>3. 运行
<code>HugeGraphServer</code></h4><p>类似地,打开 IntelliJ IDEA 的 <code>Run/Debug
Configurations</code> 面板,创建一个新的 <code>Application</code>
配置,按照以下步骤进行配置:</p><ul><li>在 <code>Use classpath of module</code> 中选择
<code>hugegraph-dist</code></li><li>将 <code>Main class</code> 设置为
<code>org.apache.hugegraph.dist.HugeGraphServer</code></li><li>设置运行参数为
<code>conf/gremlin-server.yaml
conf/rest-server.properties</code>,同样地,这里的路径是相对于工作路径的,需要 [...]
+</span></span></code></pre></div><p>否则会报错:</p><div class=highlight><pre
tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#000>java</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>lang</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>reflect</span><span
style=color:#ce5c00;font-weight:700>.</span><spa [...]
</span></span></code></pre></div></blockquote><p>配置完成后运行,如果看到以下类似日志,表示
<code>HugeGraphServer</code> 已经成功启动:</p><div class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#ce5c00;font-weight:700>......</span>
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>51</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>56</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>51</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>56</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
diff --git
a/cn/docs/contribution-guidelines/hugegraph-server-idea-setup/index.html
b/cn/docs/contribution-guidelines/hugegraph-server-idea-setup/index.html
index 8ec22570..ce9a988a 100644
--- a/cn/docs/contribution-guidelines/hugegraph-server-idea-setup/index.html
+++ b/cn/docs/contribution-guidelines/hugegraph-server-idea-setup/index.html
@@ -9,14 +9,14 @@
git clone https://github.com/apache/hugegraph.git 步骤 1. 配置文件拷贝 为了避免配置文件的更改影响
Git 的追踪,建议将所需的配置文件拷贝到一个单独的文件夹中:
cp -r hugegraph-dist/src/assembly/static/scripts
hugegraph-dist/src/assembly/static/conf path-to-your-directory 将
path-to-your-directory 替换为你创建的文件夹的路径。
2. InitStore 类初始化图 首先,需要在配置文件中配置数据库后端。以 RocksDB 为例,在
path-to-your-directory/conf/graphs/hugegraph.properties 文件中进行以下配置:
-backend=rocksdb serializer=binary rocksdb.data_path=. rocksdb.wal_path=. 然后,打开
IntelliJ IDEA 的 Run/Debug Configurations 面板,创建一个新的 Application
配置,按照以下步骤进行配置:"><meta property="og:type" content="article"><meta
property="og:url"
content="/cn/docs/contribution-guidelines/hugegraph-server-idea-setup/"><meta
property="article:section" content="docs"><meta
property="article:modified_time" content="2024-01-24T10:47:36+08:00"><meta
property="og:site_name" content="HugeGraph"><meta itemprop=name co [...]
+backend=rocksdb serializer=binary rocksdb.data_path=. rocksdb.wal_path=. 然后,打开
IntelliJ IDEA 的 Run/Debug Configurations 面板,创建一个新的 Application
配置,按照以下步骤进行配置:"><meta property="og:type" content="article"><meta
property="og:url"
content="/cn/docs/contribution-guidelines/hugegraph-server-idea-setup/"><meta
property="article:section" content="docs"><meta
property="article:modified_time" content="2024-01-24T12:55:14+08:00"><meta
property="og:site_name" content="HugeGraph"><meta itemprop=name co [...]
背景 在 Quick Start 部分已经介绍了使用脚本启停 HugeGraph-Server 的流程。下面以 Linux 平台为例,介绍使用
IntelliJ IDEA 运行与调试 HugeGraph-Server 的流程。
本地启动的核心与脚本启动是一样的:
初始化数据库后端,执行 InitStore 类初始化图 启动 HugeGraph-Server,执行 HugeGraphServer
类加载初始化的图信息启动 在执行下述流程之前,请确保已经克隆了 HugeGraph 的源代码,并且已经配置了 JDK 11 等开发环境。
git clone https://github.com/apache/hugegraph.git 步骤 1. 配置文件拷贝 为了避免配置文件的更改影响
Git 的追踪,建议将所需的配置文件拷贝到一个单独的文件夹中:
cp -r hugegraph-dist/src/assembly/static/scripts
hugegraph-dist/src/assembly/static/conf path-to-your-directory 将
path-to-your-directory 替换为你创建的文件夹的路径。
2. InitStore 类初始化图 首先,需要在配置文件中配置数据库后端。以 RocksDB 为例,在
path-to-your-directory/conf/graphs/hugegraph.properties 文件中进行以下配置:
-backend=rocksdb serializer=binary rocksdb.data_path=. rocksdb.wal_path=. 然后,打开
IntelliJ IDEA 的 Run/Debug Configurations 面板,创建一个新的 Application
配置,按照以下步骤进行配置:"><meta itemprop=dateModified
content="2024-01-24T10:47:36+08:00"><meta itemprop=wordCount
content="472"><meta itemprop=keywords content><meta name=twitter:card
content="summary"><meta name=twitter:title content="在 IDEA 中配置 Server
开发环境"><meta name=twitter:description content="注意:下述配置仅供参考,基于这个版本,在 Linux 和
macOS 平台下进行了测试。
+backend=rocksdb serializer=binary rocksdb.data_path=. rocksdb.wal_path=. 然后,打开
IntelliJ IDEA 的 Run/Debug Configurations 面板,创建一个新的 Application
配置,按照以下步骤进行配置:"><meta itemprop=dateModified
content="2024-01-24T12:55:14+08:00"><meta itemprop=wordCount
content="472"><meta itemprop=keywords content><meta name=twitter:card
content="summary"><meta name=twitter:title content="在 IDEA 中配置 Server
开发环境"><meta name=twitter:description content="注意:下述配置仅供参考,基于这个版本,在 Linux 和
macOS 平台下进行了测试。
背景 在 Quick Start 部分已经介绍了使用脚本启停 HugeGraph-Server 的流程。下面以 Linux 平台为例,介绍使用
IntelliJ IDEA 运行与调试 HugeGraph-Server 的流程。
本地启动的核心与脚本启动是一样的:
初始化数据库后端,执行 InitStore 类初始化图 启动 HugeGraph-Server,执行 HugeGraphServer
类加载初始化的图信息启动 在执行下述流程之前,请确保已经克隆了 HugeGraph 的源代码,并且已经配置了 JDK 11 等开发环境。
@@ -35,8 +35,8 @@ backend=rocksdb serializer=binary rocksdb.data_path=.
rocksdb.wal_path=. 然后
</span></span><span style=display:flex><span>serializer=binary
</span></span><span style=display:flex><span>rocksdb.data_path=.
</span></span><span style=display:flex><span>rocksdb.wal_path=.
-</span></span></code></pre></div><p>然后,打开 IntelliJ IDEA 的 <code>Run/Debug
Configurations</code> 面板,创建一个新的 Application 配置,按照以下步骤进行配置:</p><ul><li>在
<code>Use classpath of module</code> 中选择 <code>hugegraph-dist</code></li><li>将
<code>Main class</code> 设置为
<code>org.apache.hugegraph.cmd.InitStore</code></li><li>设置运行参数为
<code>conf/rest-server.properties</code>,这里的路径是相对于工作路径的,需要将工作路径设置为
<code>path-to-your-directory</code></li></ul><blockquote><p>若在 <strong>Java
11</strong> 环境下为 HugeGraph-Serve [...]
-</span></span></code></pre></div><p>否则会报错:</p><div class=highlight><pre
tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-text data-lang=text><span
style=display:flex><span>java.lang.reflect.InaccessibleObjectException: Unable
to make public static synchronized void
jdk.internal.reflect.Reflection.registerFieldsToFilter(java.lang.Class,java.lang.String[])
accessible: module java.base does not "exports jdk.internal.reflect"
to [...]
+</span></span></code></pre></div><p>然后,打开 IntelliJ IDEA 的 <code>Run/Debug
Configurations</code> 面板,创建一个新的 Application 配置,按照以下步骤进行配置:</p><ul><li>在
<code>Use classpath of module</code> 中选择 <code>hugegraph-dist</code></li><li>将
<code>Main class</code> 设置为
<code>org.apache.hugegraph.cmd.InitStore</code></li><li>设置运行参数为
<code>conf/rest-server.properties</code>,这里的路径是相对于工作路径的,需要将工作路径设置为
<code>path-to-your-directory</code></li></ul><blockquote><p>若在 <strong>Java
11</strong> 环境下为 HugeGraph-Serve [...]
+</span></span></code></pre></div><p>否则会报错:</p><div class=highlight><pre
tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#000>java</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>lang</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>reflect</span><span
style=color:#ce5c00;font-weight:700>.</span><spa [...]
</span></span></code></pre></div></blockquote><p>配置完成后运行,如果运行成功,将会输出以下类似运行日志:</p><div
class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>37</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#ce5c00;font-weight:700>......</span>
@@ -48,8 +48,8 @@ backend=rocksdb serializer=binary rocksdb.data_path=.
rocksdb.wal_path=. 然后
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>39</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>39</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>39</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
-</span></span></code></pre></div><h4 id=3-运行-hugegraphserver>3. 运行
<code>HugeGraphServer</code></h4><p>类似地,打开 IntelliJ IDEA 的 <code>Run/Debug
Configurations</code> 面板,创建一个新的 <code>Application</code>
配置,按照以下步骤进行配置:</p><ul><li>在 <code>Use classpath of module</code> 中选择
<code>hugegraph-dist</code></li><li>将 <code>Main class</code> 设置为
<code>org.apache.hugegraph.dist.HugeGraphServer</code></li><li>设置运行参数为
<code>conf/gremlin-server.yaml
conf/rest-server.properties</code>,同样地,这里的路径是相对于工作路径的,需要 [...]
-</span></span></code></pre></div><p>否则会报错:</p><div class=highlight><pre
tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-text data-lang=text><span
style=display:flex><span>java.lang.reflect.InaccessibleObjectException: Unable
to make public static synchronized void
jdk.internal.reflect.Reflection.registerFieldsToFilter(java.lang.Class,java.lang.String[])
accessible: module java.base does not "exports jdk.internal.reflect"
to [...]
+</span></span></code></pre></div><h4 id=3-运行-hugegraphserver>3. 运行
<code>HugeGraphServer</code></h4><p>类似地,打开 IntelliJ IDEA 的 <code>Run/Debug
Configurations</code> 面板,创建一个新的 <code>Application</code>
配置,按照以下步骤进行配置:</p><ul><li>在 <code>Use classpath of module</code> 中选择
<code>hugegraph-dist</code></li><li>将 <code>Main class</code> 设置为
<code>org.apache.hugegraph.dist.HugeGraphServer</code></li><li>设置运行参数为
<code>conf/gremlin-server.yaml
conf/rest-server.properties</code>,同样地,这里的路径是相对于工作路径的,需要 [...]
+</span></span></code></pre></div><p>否则会报错:</p><div class=highlight><pre
tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#000>java</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>lang</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>reflect</span><span
style=color:#ce5c00;font-weight:700>.</span><spa [...]
</span></span></code></pre></div></blockquote><p>配置完成后运行,如果看到以下类似日志,表示
<code>HugeGraphServer</code> 已经成功启动:</p><div class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#ce5c00;font-weight:700>......</span>
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>51</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>56</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>51</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>56</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
@@ -59,7 +59,7 @@ backend=rocksdb serializer=binary rocksdb.data_path=.
rocksdb.wal_path=. 然后
</span></span><span style=display:flex><span> <span
style=color:#8f5902;font-style:italic>// ignore log
</span></span></span><span style=display:flex><span><span
style=color:#8f5902;font-style:italic></span> <span
style=color:#000>Map</span><span
style=color:#ce5c00;font-weight:700><</span><span
style=color:#000>String</span><span
style=color:#ce5c00;font-weight:700>,</span> <span
style=color:#000>Object</span><span
style=color:#ce5c00;font-weight:700>></span> <span
style=color:#000>props</span> <span
style=color:#ce5c00;font-weight:700>=</span> <span
style=color:#000>parsePropert [...]
</span></span></code></pre></div><p>然后,使用 RESTful API 请求
<code>HugeGraphServer</code>:</p><div class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-bash data-lang=bash><span style=display:flex><span>curl <span
style=color:#4e9a06>"http://localhost:8080/graphs/hugegraph/graph/vertices"</span>
<span style=color:#000;font-weight:700>|</span> gunzip
-</span></span></code></pre></div><p>此时,可以在调试器中查看详细的变量信息。</p><h4
id=5-log4j2-日志配置>5. Log4j2 日志配置</h4><p>默认情况下,运行 <code>InitStore</code> 和
<code>HugeGraphServer</code> 时,读取的 Log4j2 配置文件路径为
<code>hugegraph-dist/src/main/resources/log4j2.xml</code>,而不是
<code>path-to-your-directory/conf/log4j2.xml</code>,这个配置文件是使用<strong>脚本</strong>启动
HugeGraph-Server 时读取的。</p><p>为了避免同时维护两份配置文件,可以考虑在 <strong>IntelliJ
IDEA</strong> 运行与调试 HugeGraph-Server 时,修改读取的 Log4j2 配置文件路径:</p><ol><li>打开之前创建的
<code>Applicat [...]
+</span></span></code></pre></div><p>此时,可以在调试器中查看详细的变量信息。</p><h4
id=5-log4j2-日志配置>5. Log4j2 日志配置</h4><p>默认情况下,运行 <code>InitStore</code> 和
<code>HugeGraphServer</code> 时,读取的 Log4j2 配置文件路径为
<code>hugegraph-dist/src/main/resources/log4j2.xml</code>,而不是
<code>path-to-your-directory/conf/log4j2.xml</code>,这个配置文件是使用<strong>脚本</strong>启动
HugeGraph-Server 时读取的。</p><p>为了避免同时维护两份配置文件,可以考虑在 <strong>IntelliJ
IDEA</strong> 运行与调试 HugeGraph-Server 时,修改读取的 Log4j2 配置文件路径:</p><ol><li>打开之前创建的
<code>Applicat [...]
<script
src=https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js
integrity="sha512-UR25UO94eTnCVwjbXozyeVd6ZqpaAE9naiEUBK/A+QDbfSTQFhPGj5lOR6d8tsgbBk84Ggb5A3EkjsOgPRPcKA=="
crossorigin=anonymous></script>
<script src=/js/tabpane-persist.js></script>
<script
src=/js/main.min.aa9f4c5dae6a98b2c46277f4c56f1673a2b000d1756ce4ffae93784cab25e6d5.js
integrity="sha256-qp9MXa5qmLLEYnf0xW8Wc6KwANF1bOT/rpN4TKsl5tU="
crossorigin=anonymous></script>
diff --git a/cn/docs/contribution-guidelines/index.xml
b/cn/docs/contribution-guidelines/index.xml
index b2bd0535..4205afe1 100644
--- a/cn/docs/contribution-guidelines/index.xml
+++ b/cn/docs/contribution-guidelines/index.xml
@@ -348,9 +348,9 @@ LICENSE 是 Apache 2.0, 且对应的项目中包含了 NOTICE, 则还需要更
</ul>
<blockquote>
<p>若在 <strong>Java 11</strong> 环境下为 HugeGraph-Server
配置了<strong>用户认证</strong> (authenticator),需要参考二进制包的脚本<a
href="https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-dist/src/assembly/static/bin/init-store.sh#L52">配置</a>,添加下述
<strong>VM options</strong>:</p>
-<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-text" data-lang="text"><span
style="display:flex;"><span>--add-exports=java.base/jdk.internal.reflect=ALL-UNNAMED
+<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-bash" data-lang="bash"><span
style="display:flex;"><span>--add-exports<span
style="color:#ce5c00;font-weight:bold">=</span>java.base/jdk.internal.reflect<span
style="color:#ce5c00;font-weight:bold">=</span>ALL-UNNAMED
</span></span></code></pre></div><p>否则会报错:</p>
-<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-text" data-lang="text"><span
style="display:flex;"><span>java.lang.reflect.InaccessibleObjectException:
Unable to make public static synchronized void
jdk.internal.reflect.Reflection.registerFieldsToFilter(java.lang.Class,java.lang.String[])
accessible: module java.base does not &#34;exports
jdk.internal.reflect&#34; to unnamed m [...]
+<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-java" data-lang="java"><span
style="display:flex;"><span><span
style="color:#000">java</span><span
style="color:#ce5c00;font-weight:bold">.</span><span
style="color:#c4a000">lang</span><span
style="color:#ce5c00;font-weight:bold">.</span><span
style="color:#c4a000">reflect</span><span style="color:#ce5c00 [...]
</span></span></code></pre></div></blockquote>
<p>配置完成后运行,如果运行成功,将会输出以下类似运行日志:</p>
<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-java" data-lang="java"><span
style="display:flex;"><span><span
style="color:#000">2023</span><span
style="color:#ce5c00;font-weight:bold">-</span><span
style="color:#000">06</span><span
style="color:#ce5c00;font-weight:bold">-</span><span
style="color:#000">05</span> <span style="color:#000">00</span>& [...]
@@ -373,9 +373,9 @@ LICENSE 是 Apache 2.0, 且对应的项目中包含了 NOTICE, 则还需要更
</ul>
<blockquote>
<p>类似的,若在 <strong>Java 11</strong> 环境下为 HugeGraph-Server
配置了<strong>用户认证</strong> (authenticator),同样需要参考二进制包的脚本<a
href="https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-dist/src/assembly/static/bin/hugegraph-server.sh#L124">配置</a>,添加下述
<strong>VM options</strong>:</p>
-<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-text" data-lang="text"><span
style="display:flex;"><span>--add-exports=java.base/jdk.internal.reflect=ALL-UNNAMED
--add-modules=jdk.unsupported --add-exports=java.base/sun.nio.ch=ALL-UNNAMED
+<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-bash" data-lang="bash"><span
style="display:flex;"><span>--add-exports<span
style="color:#ce5c00;font-weight:bold">=</span>java.base/jdk.internal.reflect<span
style="color:#ce5c00;font-weight:bold">=</span>ALL-UNNAMED
--add-modules<span
style="color:#ce5c00;font-weight:bold">=</span>jdk.unsupported
--add-exports<span [...]
</span></span></code></pre></div><p>否则会报错:</p>
-<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-text" data-lang="text"><span
style="display:flex;"><span>java.lang.reflect.InaccessibleObjectException:
Unable to make public static synchronized void
jdk.internal.reflect.Reflection.registerFieldsToFilter(java.lang.Class,java.lang.String[])
accessible: module java.base does not &#34;exports
jdk.internal.reflect&#34; to unnamed m [...]
+<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-java" data-lang="java"><span
style="display:flex;"><span><span
style="color:#000">java</span><span
style="color:#ce5c00;font-weight:bold">.</span><span
style="color:#c4a000">lang</span><span
style="color:#ce5c00;font-weight:bold">.</span><span
style="color:#c4a000">reflect</span><span style="color:#ce5c00 [...]
</span></span></code></pre></div></blockquote>
<p>配置完成后运行,如果看到以下类似日志,表示 <code>HugeGraphServer</code> 已经成功启动:</p>
<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-java" data-lang="java"><span
style="display:flex;"><span><span
style="color:#ce5c00;font-weight:bold">......</span>
diff --git a/cn/docs/index.xml b/cn/docs/index.xml
index d368943d..8fdaa178 100644
--- a/cn/docs/index.xml
+++ b/cn/docs/index.xml
@@ -9373,9 +9373,9 @@ LICENSE 是 Apache 2.0, 且对应的项目中包含了 NOTICE, 则还需要更
</ul>
<blockquote>
<p>若在 <strong>Java 11</strong> 环境下为 HugeGraph-Server
配置了<strong>用户认证</strong> (authenticator),需要参考二进制包的脚本<a
href="https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-dist/src/assembly/static/bin/init-store.sh#L52">配置</a>,添加下述
<strong>VM options</strong>:</p>
-<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-text" data-lang="text"><span
style="display:flex;"><span>--add-exports=java.base/jdk.internal.reflect=ALL-UNNAMED
+<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-bash" data-lang="bash"><span
style="display:flex;"><span>--add-exports<span
style="color:#ce5c00;font-weight:bold">=</span>java.base/jdk.internal.reflect<span
style="color:#ce5c00;font-weight:bold">=</span>ALL-UNNAMED
</span></span></code></pre></div><p>否则会报错:</p>
-<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-text" data-lang="text"><span
style="display:flex;"><span>java.lang.reflect.InaccessibleObjectException:
Unable to make public static synchronized void
jdk.internal.reflect.Reflection.registerFieldsToFilter(java.lang.Class,java.lang.String[])
accessible: module java.base does not &#34;exports
jdk.internal.reflect&#34; to unnamed m [...]
+<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-java" data-lang="java"><span
style="display:flex;"><span><span
style="color:#000">java</span><span
style="color:#ce5c00;font-weight:bold">.</span><span
style="color:#c4a000">lang</span><span
style="color:#ce5c00;font-weight:bold">.</span><span
style="color:#c4a000">reflect</span><span style="color:#ce5c00 [...]
</span></span></code></pre></div></blockquote>
<p>配置完成后运行,如果运行成功,将会输出以下类似运行日志:</p>
<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-java" data-lang="java"><span
style="display:flex;"><span><span
style="color:#000">2023</span><span
style="color:#ce5c00;font-weight:bold">-</span><span
style="color:#000">06</span><span
style="color:#ce5c00;font-weight:bold">-</span><span
style="color:#000">05</span> <span style="color:#000">00</span>& [...]
@@ -9398,9 +9398,9 @@ LICENSE 是 Apache 2.0, 且对应的项目中包含了 NOTICE, 则还需要更
</ul>
<blockquote>
<p>类似的,若在 <strong>Java 11</strong> 环境下为 HugeGraph-Server
配置了<strong>用户认证</strong> (authenticator),同样需要参考二进制包的脚本<a
href="https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-dist/src/assembly/static/bin/hugegraph-server.sh#L124">配置</a>,添加下述
<strong>VM options</strong>:</p>
-<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-text" data-lang="text"><span
style="display:flex;"><span>--add-exports=java.base/jdk.internal.reflect=ALL-UNNAMED
--add-modules=jdk.unsupported --add-exports=java.base/sun.nio.ch=ALL-UNNAMED
+<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-bash" data-lang="bash"><span
style="display:flex;"><span>--add-exports<span
style="color:#ce5c00;font-weight:bold">=</span>java.base/jdk.internal.reflect<span
style="color:#ce5c00;font-weight:bold">=</span>ALL-UNNAMED
--add-modules<span
style="color:#ce5c00;font-weight:bold">=</span>jdk.unsupported
--add-exports<span [...]
</span></span></code></pre></div><p>否则会报错:</p>
-<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-text" data-lang="text"><span
style="display:flex;"><span>java.lang.reflect.InaccessibleObjectException:
Unable to make public static synchronized void
jdk.internal.reflect.Reflection.registerFieldsToFilter(java.lang.Class,java.lang.String[])
accessible: module java.base does not &#34;exports
jdk.internal.reflect&#34; to unnamed m [...]
+<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-java" data-lang="java"><span
style="display:flex;"><span><span
style="color:#000">java</span><span
style="color:#ce5c00;font-weight:bold">.</span><span
style="color:#c4a000">lang</span><span
style="color:#ce5c00;font-weight:bold">.</span><span
style="color:#c4a000">reflect</span><span style="color:#ce5c00 [...]
</span></span></code></pre></div></blockquote>
<p>配置完成后运行,如果看到以下类似日志,表示 <code>HugeGraphServer</code> 已经成功启动:</p>
<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-java" data-lang="java"><span
style="display:flex;"><span><span
style="color:#ce5c00;font-weight:bold">......</span>
diff --git a/cn/sitemap.xml b/cn/sitemap.xml
index 33e7700c..76df657e 100644
--- a/cn/sitemap.xml
+++ b/cn/sitemap.xml
@@ -1 +1 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>/cn/docs/guides/architectural/</loc><lastmod>2023-06-25T21:06:07+08:00</lastmod><xhtml:link
rel="alternate" hreflang="en" href="/docs/guides/architectural/"/><xhtml:link
rel="alternate" hreflang="cn"
href="/cn/docs/guides/architectural/"/></url><url><loc>/cn/docs/config/config-guide/</loc><lastmod>2023-11-01T21:52:52+08:00
[...]
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>/cn/docs/guides/architectural/</loc><lastmod>2023-06-25T21:06:07+08:00</lastmod><xhtml:link
rel="alternate" hreflang="en" href="/docs/guides/architectural/"/><xhtml:link
rel="alternate" hreflang="cn"
href="/cn/docs/guides/architectural/"/></url><url><loc>/cn/docs/config/config-guide/</loc><lastmod>2023-11-01T21:52:52+08:00
[...]
\ No newline at end of file
diff --git a/docs/_print/index.html b/docs/_print/index.html
index 18291e8c..d7b466de 100644
--- a/docs/_print/index.html
+++ b/docs/_print/index.html
@@ -8022,13 +8022,15 @@ and no circular links, etc.</li><li>Update
<strong>download link</strong> and re
</span></span><span style=display:flex><span><span
style=color:#204a87;font-weight:700>8.</span> No empty file <span
style=color:#a40000>&</span> directory found
</span></span><span style=display:flex><span><span
style=color:#204a87;font-weight:700>9.</span> Test running XX process OK
</span></span><span style=display:flex><span><span
style=color:#204a87;font-weight:700>10.</span> ....
-</span></span></code></pre></div></div><div class=td-content
style=page-break-before:always><h1 id=pg-c89774a4e231af418639f53a926ea188>9.4 -
Setup Server in IDEA</h1><blockquote><p>NOTE: The following configuration is
for reference purposes only, and has been tested on Linux and macOS platforms
based on <a
href=https://github.com/apache/incubator-hugegraph/commit/a946ad1de4e8f922251a5241ffc957c33379677f>this
version</a>.</p></blockquote><h3 id=background>Background</h3><p>The <a
href=/do [...]
+</span></span></code></pre></div></div><div class=td-content
style=page-break-before:always><h1 id=pg-c89774a4e231af418639f53a926ea188>9.4 -
Setup Server in IDEA</h1><blockquote><p>NOTE: The following configuration is
for reference purposes only, and has been tested on Linux and macOS platforms
based on <a
href=https://github.com/apache/incubator-hugegraph/commit/a946ad1de4e8f922251a5241ffc957c33379677f>this
version</a>.</p></blockquote><h3 id=background>Background</h3><p>The <a
href=/do [...]
</span></span></code></pre></div><h3 id=steps>Steps</h3><h4
id=1-copy-configuration-files>1. Copy Configuration Files</h4><p>To avoid the
impact of configuration file changes on Git tracking, it is recommended to copy
the required configuration files to a separate folder. Run the following
command to copy the files:</p><div class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-bash data-lang=bash><span style=display:f [...]
</span></span></code></pre></div><p>Replace
<code>path-to-your-directory</code> with the path to the directory where you
want to copy the files.</p><h4
id=2-configure-initstore-to-initialize-the-graph>2. Configure
<code>InitStore</code> to initialize the graph</h4><p>First, you need to
configure the database backend in the configuration files. In this example, we
will use RocksDB. Open
<code>path-to-your-directory/conf/graphs/hugegraph.properties</code> and
configure it as follows:</p><d [...]
</span></span><span style=display:flex><span>serializer=binary
</span></span><span style=display:flex><span>rocksdb.data_path=.
</span></span><span style=display:flex><span>rocksdb.wal_path=.
-</span></span></code></pre></div><p>Next, open the <code>Run/Debug
Configurations</code> panel in IntelliJ IDEA and create a new Application
configuration. Follow these steps for the configuration:</p><ul><li>Select
<code>hugegraph-dist</code> as the <code>Use classpath of
module</code>.</li><li>Set the <code>Main class</code> to
<code>org.apache.hugegraph.cmd.InitStore</code>.</li><li>Set the program
arguments to <code>conf/rest-server.properties</code>. Note that the path here
is relat [...]
+</span></span></code></pre></div><p>Next, open the <code>Run/Debug
Configurations</code> panel in IntelliJ IDEA and create a new Application
configuration. Follow these steps for the configuration:</p><ul><li>Select
<code>hugegraph-dist</code> as the <code>Use classpath of
module</code>.</li><li>Set the <code>Main class</code> to
<code>org.apache.hugegraph.cmd.InitStore</code>.</li><li>Set the program
arguments to <code>conf/rest-server.properties</code>. Note that the path here
is relat [...]
+</span></span></code></pre></div><p>Otherwise, an error will occur:</p><div
class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#000>java</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>lang</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>reflect</span><span style=color:#ce5c00;fon [...]
+</span></span></code></pre></div></blockquote><p>Once the configuration is
completed, run it. If the execution is successful, the following runtime logs
will be displayed:</p><div class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span style=color:#c [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>37</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#ce5c00;font-weight:700>......</span>
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>39</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
@@ -8039,7 +8041,9 @@ and no circular links, etc.</li><li>Update
<strong>download link</strong> and re
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>39</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>39</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>39</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
-</span></span></code></pre></div><h4 id=3-running-hugegraphserver>3. Running
<code>HugeGraphServer</code></h4><p>Similarly, open the <code>Run/Debug
Configurations</code> panel in IntelliJ IDEA and create a new
<code>Application</code> configuration. Follow these steps for the
configuration:</p><ul><li>Select <code>hugegraph-dist</code> as the <code>Use
classpath of module</code>.</li><li>Set the <code>Main class</code> to
<code>org.apache.hugegraph.dist.HugeGraphServer</code>.</li><li>S [...]
+</span></span></code></pre></div><h4 id=3-running-hugegraphserver>3. Running
<code>HugeGraphServer</code></h4><p>Similarly, open the <code>Run/Debug
Configurations</code> panel in IntelliJ IDEA and create a new
<code>Application</code> configuration. Follow these steps for the
configuration:</p><ul><li>Select <code>hugegraph-dist</code> as the <code>Use
classpath of module</code>.</li><li>Set the <code>Main class</code> to
<code>org.apache.hugegraph.dist.HugeGraphServer</code>.</li><li>S [...]
+</span></span></code></pre></div><p>Otherwise, an error will occur:</p><div
class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#000>java</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>lang</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>reflect</span><span style=color:#ce5c00;fon [...]
+</span></span></code></pre></div></blockquote><p>Once the configuration is
completed, run it. If you see the following logs, it means that
<code>HugeGraphServer</code> has been successfully started:</p><div
class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#ce5c00;font-weight:700>......</span>
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>51</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>56</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>51</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>56</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span></code></pre></div><h4
id=4-debugging-hugegraphserver-optional>4. Debugging
<code>HugeGraphServer</code> (optional)</h4><p>After completing the above
configuration, you can try debugging <code>HugeGraphServer</code>. Run
<code>HugeGraphServer</code> in debug mode and set a breakpoint at the
following <a
href=https://github.com/apache/hugegraph/blob/a946ad1de4e8f922251a5241ffc957c33379677f/hugegraph-api/src/main/java/org/apache/hugegraph/api/graph/VertexAPI.java#L238>locatio
[...]
@@ -8048,7 +8052,7 @@ and no circular links, etc.</li><li>Update
<strong>download link</strong> and re
</span></span><span style=display:flex><span> <span
style=color:#8f5902;font-style:italic>// ignore log
</span></span></span><span style=display:flex><span><span
style=color:#8f5902;font-style:italic></span> <span
style=color:#000>Map</span><span
style=color:#ce5c00;font-weight:700><</span><span
style=color:#000>String</span><span
style=color:#ce5c00;font-weight:700>,</span> <span
style=color:#000>Object</span><span
style=color:#ce5c00;font-weight:700>></span> <span
style=color:#000>props</span> <span
style=color:#ce5c00;font-weight:700>=</span> <span
style=color:#000>parsePropert [...]
</span></span></code></pre></div><p>Then use the RESTful API to request
<code>HugeGraphServer</code>:</p><div class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-bash data-lang=bash><span style=display:flex><span>curl <span
style=color:#4e9a06>"http://localhost:8080/graphs/hugegraph/graph/vertices"</span>
<span style=color:#000;font-weight:700>|</span> gunzip
-</span></span></code></pre></div><p>At this point, you can view detailed
variable information in the debugger.</p><h4 id=5-log4j2-configuration>5.
Log4j2 Configuration</h4><p>By default, when running <code>InitStore</code> and
<code>HugeGraphServer</code>, the Log4j2 configuration file path read is
<code>hugegraph-dist/src/main/resources/log4j2.xml</code>, not
<code>path-to-your-directory/conf/log4j2.xml</code>. This configuration file is
read when starting HugeGraphServer using the <str [...]
+</span></span></code></pre></div><p>At this point, you can view detailed
variable information in the debugger.</p><h4 id=5-log4j2-configuration>5.
Log4j2 Configuration</h4><p>By default, when running <code>InitStore</code> and
<code>HugeGraphServer</code>, the Log4j2 configuration file path read is
<code>hugegraph-dist/src/main/resources/log4j2.xml</code>, not
<code>path-to-your-directory/conf/log4j2.xml</code>. This configuration file is
read when starting HugeGraph-Server using the <st [...]
<script
src=https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js
integrity="sha512-UR25UO94eTnCVwjbXozyeVd6ZqpaAE9naiEUBK/A+QDbfSTQFhPGj5lOR6d8tsgbBk84Ggb5A3EkjsOgPRPcKA=="
crossorigin=anonymous></script>
<script src=/js/tabpane-persist.js></script>
<script
src=/js/main.min.aa9f4c5dae6a98b2c46277f4c56f1673a2b000d1756ce4ffae93784cab25e6d5.js
integrity="sha256-qp9MXa5qmLLEYnf0xW8Wc6KwANF1bOT/rpN4TKsl5tU="
crossorigin=anonymous></script>
diff --git a/docs/contribution-guidelines/_print/index.html
b/docs/contribution-guidelines/_print/index.html
index 546caa7d..8d1c8668 100644
--- a/docs/contribution-guidelines/_print/index.html
+++ b/docs/contribution-guidelines/_print/index.html
@@ -175,13 +175,15 @@ and no circular links, etc.</li><li>Update
<strong>download link</strong> and re
</span></span><span style=display:flex><span><span
style=color:#204a87;font-weight:700>8.</span> No empty file <span
style=color:#a40000>&</span> directory found
</span></span><span style=display:flex><span><span
style=color:#204a87;font-weight:700>9.</span> Test running XX process OK
</span></span><span style=display:flex><span><span
style=color:#204a87;font-weight:700>10.</span> ....
-</span></span></code></pre></div></div><div class=td-content
style=page-break-before:always><h1 id=pg-c89774a4e231af418639f53a926ea188>4 -
Setup Server in IDEA</h1><blockquote><p>NOTE: The following configuration is
for reference purposes only, and has been tested on Linux and macOS platforms
based on <a
href=https://github.com/apache/incubator-hugegraph/commit/a946ad1de4e8f922251a5241ffc957c33379677f>this
version</a>.</p></blockquote><h3 id=background>Background</h3><p>The <a
href=/docs [...]
+</span></span></code></pre></div></div><div class=td-content
style=page-break-before:always><h1 id=pg-c89774a4e231af418639f53a926ea188>4 -
Setup Server in IDEA</h1><blockquote><p>NOTE: The following configuration is
for reference purposes only, and has been tested on Linux and macOS platforms
based on <a
href=https://github.com/apache/incubator-hugegraph/commit/a946ad1de4e8f922251a5241ffc957c33379677f>this
version</a>.</p></blockquote><h3 id=background>Background</h3><p>The <a
href=/docs [...]
</span></span></code></pre></div><h3 id=steps>Steps</h3><h4
id=1-copy-configuration-files>1. Copy Configuration Files</h4><p>To avoid the
impact of configuration file changes on Git tracking, it is recommended to copy
the required configuration files to a separate folder. Run the following
command to copy the files:</p><div class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-bash data-lang=bash><span style=display:f [...]
</span></span></code></pre></div><p>Replace
<code>path-to-your-directory</code> with the path to the directory where you
want to copy the files.</p><h4
id=2-configure-initstore-to-initialize-the-graph>2. Configure
<code>InitStore</code> to initialize the graph</h4><p>First, you need to
configure the database backend in the configuration files. In this example, we
will use RocksDB. Open
<code>path-to-your-directory/conf/graphs/hugegraph.properties</code> and
configure it as follows:</p><d [...]
</span></span><span style=display:flex><span>serializer=binary
</span></span><span style=display:flex><span>rocksdb.data_path=.
</span></span><span style=display:flex><span>rocksdb.wal_path=.
-</span></span></code></pre></div><p>Next, open the <code>Run/Debug
Configurations</code> panel in IntelliJ IDEA and create a new Application
configuration. Follow these steps for the configuration:</p><ul><li>Select
<code>hugegraph-dist</code> as the <code>Use classpath of
module</code>.</li><li>Set the <code>Main class</code> to
<code>org.apache.hugegraph.cmd.InitStore</code>.</li><li>Set the program
arguments to <code>conf/rest-server.properties</code>. Note that the path here
is relat [...]
+</span></span></code></pre></div><p>Next, open the <code>Run/Debug
Configurations</code> panel in IntelliJ IDEA and create a new Application
configuration. Follow these steps for the configuration:</p><ul><li>Select
<code>hugegraph-dist</code> as the <code>Use classpath of
module</code>.</li><li>Set the <code>Main class</code> to
<code>org.apache.hugegraph.cmd.InitStore</code>.</li><li>Set the program
arguments to <code>conf/rest-server.properties</code>. Note that the path here
is relat [...]
+</span></span></code></pre></div><p>Otherwise, an error will occur:</p><div
class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#000>java</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>lang</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>reflect</span><span style=color:#ce5c00;fon [...]
+</span></span></code></pre></div></blockquote><p>Once the configuration is
completed, run it. If the execution is successful, the following runtime logs
will be displayed:</p><div class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span style=color:#c [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>37</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#ce5c00;font-weight:700>......</span>
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>39</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
@@ -192,7 +194,9 @@ and no circular links, etc.</li><li>Update <strong>download
link</strong> and re
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>39</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>39</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>39</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
-</span></span></code></pre></div><h4 id=3-running-hugegraphserver>3. Running
<code>HugeGraphServer</code></h4><p>Similarly, open the <code>Run/Debug
Configurations</code> panel in IntelliJ IDEA and create a new
<code>Application</code> configuration. Follow these steps for the
configuration:</p><ul><li>Select <code>hugegraph-dist</code> as the <code>Use
classpath of module</code>.</li><li>Set the <code>Main class</code> to
<code>org.apache.hugegraph.dist.HugeGraphServer</code>.</li><li>S [...]
+</span></span></code></pre></div><h4 id=3-running-hugegraphserver>3. Running
<code>HugeGraphServer</code></h4><p>Similarly, open the <code>Run/Debug
Configurations</code> panel in IntelliJ IDEA and create a new
<code>Application</code> configuration. Follow these steps for the
configuration:</p><ul><li>Select <code>hugegraph-dist</code> as the <code>Use
classpath of module</code>.</li><li>Set the <code>Main class</code> to
<code>org.apache.hugegraph.dist.HugeGraphServer</code>.</li><li>S [...]
+</span></span></code></pre></div><p>Otherwise, an error will occur:</p><div
class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#000>java</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>lang</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>reflect</span><span style=color:#ce5c00;fon [...]
+</span></span></code></pre></div></blockquote><p>Once the configuration is
completed, run it. If you see the following logs, it means that
<code>HugeGraphServer</code> has been successfully started:</p><div
class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#ce5c00;font-weight:700>......</span>
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>51</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>56</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>51</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>56</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span></code></pre></div><h4
id=4-debugging-hugegraphserver-optional>4. Debugging
<code>HugeGraphServer</code> (optional)</h4><p>After completing the above
configuration, you can try debugging <code>HugeGraphServer</code>. Run
<code>HugeGraphServer</code> in debug mode and set a breakpoint at the
following <a
href=https://github.com/apache/hugegraph/blob/a946ad1de4e8f922251a5241ffc957c33379677f/hugegraph-api/src/main/java/org/apache/hugegraph/api/graph/VertexAPI.java#L238>locatio
[...]
@@ -201,7 +205,7 @@ and no circular links, etc.</li><li>Update <strong>download
link</strong> and re
</span></span><span style=display:flex><span> <span
style=color:#8f5902;font-style:italic>// ignore log
</span></span></span><span style=display:flex><span><span
style=color:#8f5902;font-style:italic></span> <span
style=color:#000>Map</span><span
style=color:#ce5c00;font-weight:700><</span><span
style=color:#000>String</span><span
style=color:#ce5c00;font-weight:700>,</span> <span
style=color:#000>Object</span><span
style=color:#ce5c00;font-weight:700>></span> <span
style=color:#000>props</span> <span
style=color:#ce5c00;font-weight:700>=</span> <span
style=color:#000>parsePropert [...]
</span></span></code></pre></div><p>Then use the RESTful API to request
<code>HugeGraphServer</code>:</p><div class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-bash data-lang=bash><span style=display:flex><span>curl <span
style=color:#4e9a06>"http://localhost:8080/graphs/hugegraph/graph/vertices"</span>
<span style=color:#000;font-weight:700>|</span> gunzip
-</span></span></code></pre></div><p>At this point, you can view detailed
variable information in the debugger.</p><h4 id=5-log4j2-configuration>5.
Log4j2 Configuration</h4><p>By default, when running <code>InitStore</code> and
<code>HugeGraphServer</code>, the Log4j2 configuration file path read is
<code>hugegraph-dist/src/main/resources/log4j2.xml</code>, not
<code>path-to-your-directory/conf/log4j2.xml</code>. This configuration file is
read when starting HugeGraphServer using the <str [...]
+</span></span></code></pre></div><p>At this point, you can view detailed
variable information in the debugger.</p><h4 id=5-log4j2-configuration>5.
Log4j2 Configuration</h4><p>By default, when running <code>InitStore</code> and
<code>HugeGraphServer</code>, the Log4j2 configuration file path read is
<code>hugegraph-dist/src/main/resources/log4j2.xml</code>, not
<code>path-to-your-directory/conf/log4j2.xml</code>. This configuration file is
read when starting HugeGraph-Server using the <st [...]
<script
src=https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js
integrity="sha512-UR25UO94eTnCVwjbXozyeVd6ZqpaAE9naiEUBK/A+QDbfSTQFhPGj5lOR6d8tsgbBk84Ggb5A3EkjsOgPRPcKA=="
crossorigin=anonymous></script>
<script src=/js/tabpane-persist.js></script>
<script
src=/js/main.min.aa9f4c5dae6a98b2c46277f4c56f1673a2b000d1756ce4ffae93784cab25e6d5.js
integrity="sha256-qp9MXa5qmLLEYnf0xW8Wc6KwANF1bOT/rpN4TKsl5tU="
crossorigin=anonymous></script>
diff --git
a/docs/contribution-guidelines/hugegraph-server-idea-setup/index.html
b/docs/contribution-guidelines/hugegraph-server-idea-setup/index.html
index 89d2565f..73b695ea 100644
--- a/docs/contribution-guidelines/hugegraph-server-idea-setup/index.html
+++ b/docs/contribution-guidelines/hugegraph-server-idea-setup/index.html
@@ -2,24 +2,26 @@
NOTE: The following configuration is for reference purposes only, and has been
tested on Linux and macOS platforms based on this version.
Background …"><meta property="og:title" content="Setup Server in IDEA"><meta
property="og:description" content="NOTE: The following configuration is for
reference purposes only, and has been tested on Linux and macOS platforms based
on this version.
-Background The Quick Start section provides instructions on how to start and
stop HugeGraphServer using scripts. In this guide, we will explain how to run
and debug HugeGraph-Server on the Linux platform using IntelliJ IDEA.
-The core steps for local startup are the same as starting with scripts:"><meta
property="og:type" content="article"><meta property="og:url"
content="/docs/contribution-guidelines/hugegraph-server-idea-setup/"><meta
property="article:section" content="docs"><meta
property="article:modified_time" content="2023-06-25T21:06:07+08:00"><meta
property="og:site_name" content="HugeGraph"><meta itemprop=name content="Setup
Server in IDEA"><meta itemprop=description content="NOTE: The following con
[...]
-Background The Quick Start section provides instructions on how to start and
stop HugeGraphServer using scripts. In this guide, we will explain how to run
and debug HugeGraph-Server on the Linux platform using IntelliJ IDEA.
-The core steps for local startup are the same as starting with scripts:"><meta
itemprop=dateModified content="2023-06-25T21:06:07+08:00"><meta
itemprop=wordCount content="806"><meta itemprop=keywords content><meta
name=twitter:card content="summary"><meta name=twitter:title content="Setup
Server in IDEA"><meta name=twitter:description content="NOTE: The following
configuration is for reference purposes only, and has been tested on Linux and
macOS platforms based on this version.
-Background The Quick Start section provides instructions on how to start and
stop HugeGraphServer using scripts. In this guide, we will explain how to run
and debug HugeGraph-Server on the Linux platform using IntelliJ IDEA.
+Background The Quick Start section provides instructions on how to start and
stop HugeGraph-Server using scripts. In this guide, we will explain how to run
and debug HugeGraph-Server on the Linux platform using IntelliJ IDEA.
+The core steps for local startup are the same as starting with scripts:"><meta
property="og:type" content="article"><meta property="og:url"
content="/docs/contribution-guidelines/hugegraph-server-idea-setup/"><meta
property="article:section" content="docs"><meta
property="article:modified_time" content="2024-01-24T12:55:14+08:00"><meta
property="og:site_name" content="HugeGraph"><meta itemprop=name content="Setup
Server in IDEA"><meta itemprop=description content="NOTE: The following con
[...]
+Background The Quick Start section provides instructions on how to start and
stop HugeGraph-Server using scripts. In this guide, we will explain how to run
and debug HugeGraph-Server on the Linux platform using IntelliJ IDEA.
+The core steps for local startup are the same as starting with scripts:"><meta
itemprop=dateModified content="2024-01-24T12:55:14+08:00"><meta
itemprop=wordCount content="925"><meta itemprop=keywords content><meta
name=twitter:card content="summary"><meta name=twitter:title content="Setup
Server in IDEA"><meta name=twitter:description content="NOTE: The following
configuration is for reference purposes only, and has been tested on Linux and
macOS platforms based on this version.
+Background The Quick Start section provides instructions on how to start and
stop HugeGraph-Server using scripts. In this guide, we will explain how to run
and debug HugeGraph-Server on the Linux platform using IntelliJ IDEA.
The core steps for local startup are the same as starting with scripts:"><link
rel=preload
href=/scss/main.min.1764bdd1b00b15c82ea08e6a847f47114a8787b9770c047a8c6082457466ce2b.css
as=style><link
href=/scss/main.min.1764bdd1b00b15c82ea08e6a847f47114a8787b9770c047a8c6082457466ce2b.css
rel=stylesheet integrity><script
src=https://code.jquery.com/jquery-3.5.1.min.js
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
crossorigin=anonymous></script>
<link rel=stylesheet href=/css/prism.css><script
type=application/javascript>var
doNotTrack=!1;doNotTrack||(window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new
Date,ga("create","UA-00000000-0","auto"),ga("send","pageview"))</script><script
async src=https://www.google-analytics.com/analytics.js></script></head><body
class=td-page><header><nav class="js-navbar-scroll navbar navbar-expand
navbar-dark flex-column flex-md-row td-navbar"><a class=navbar-brand href=/><sp
[...]
<a
href=https://github.com/apache/incubator-hugegraph-doc/edit/master/content/en/docs/contribution-guidelines/hugegraph-server-idea-setup.md
class=td-page-meta--edit target=_blank rel=noopener><i class="fa fa-edit
fa-fw"></i> Edit this page</a>
<a
href="https://github.com/apache/incubator-hugegraph-doc/new/master/content/en/docs/contribution-guidelines/hugegraph-server-idea-setup.md?filename=change-me.md&value=---%0Atitle%3A+%22Long+Page+Title%22%0AlinkTitle%3A+%22Short+Nav+Title%22%0Aweight%3A+100%0Adescription%3A+%3E-%0A+++++Page+description+for+heading+and+indexes.%0A---%0A%0A%23%23+Heading%0A%0AEdit+this+template+to+create+your+new+page.%0A%0A%2A+Give+it+a+good+name%2C+ending+in+%60.md%60+-+e.g.+%60getting-started.md%60%0A%
[...]
<a
href="https://github.com/apache/incubator-hugegraph-doc/issues/new?title=Setup%20Server%20in%20IDEA"
class=td-page-meta--issue target=_blank rel=noopener><i class="fab fa-github
fa-fw"></i> Create documentation issue</a>
<a href=https://github.com/apache/incubator-hugegraph/issues/new
class=td-page-meta--project-issue target=_blank rel=noopener><i class="fas
fa-tasks fa-fw"></i> Create project issue</a>
-<a id=print href=/docs/contribution-guidelines/_print/><i class="fa fa-print
fa-fw"></i> Print entire section</a></div><div class=td-toc><nav
id=TableOfContents><ul><li><ul><li><a
href=#background>Background</a></li><li><a href=#steps>Steps</a></li><li><a
href=#possible-issues>Possible Issues</a></li><li><a
href=#references>References</a></li></ul></li></ul></nav></div></aside><main
class="col-12 col-md-9 col-xl-8 pl-md-5" role=main><nav aria-label=breadcrumb
class=td-breadcrumbs><ol cla [...]
+<a id=print href=/docs/contribution-guidelines/_print/><i class="fa fa-print
fa-fw"></i> Print entire section</a></div><div class=td-toc><nav
id=TableOfContents><ul><li><ul><li><a
href=#background>Background</a></li><li><a href=#steps>Steps</a></li><li><a
href=#possible-issues>Possible Issues</a></li><li><a
href=#references>References</a></li></ul></li></ul></nav></div></aside><main
class="col-12 col-md-9 col-xl-8 pl-md-5" role=main><nav aria-label=breadcrumb
class=td-breadcrumbs><ol cla [...]
</span></span></code></pre></div><h3 id=steps>Steps</h3><h4
id=1-copy-configuration-files>1. Copy Configuration Files</h4><p>To avoid the
impact of configuration file changes on Git tracking, it is recommended to copy
the required configuration files to a separate folder. Run the following
command to copy the files:</p><div class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-bash data-lang=bash><span style=display:f [...]
</span></span></code></pre></div><p>Replace
<code>path-to-your-directory</code> with the path to the directory where you
want to copy the files.</p><h4
id=2-configure-initstore-to-initialize-the-graph>2. Configure
<code>InitStore</code> to initialize the graph</h4><p>First, you need to
configure the database backend in the configuration files. In this example, we
will use RocksDB. Open
<code>path-to-your-directory/conf/graphs/hugegraph.properties</code> and
configure it as follows:</p><d [...]
</span></span><span style=display:flex><span>serializer=binary
</span></span><span style=display:flex><span>rocksdb.data_path=.
</span></span><span style=display:flex><span>rocksdb.wal_path=.
-</span></span></code></pre></div><p>Next, open the <code>Run/Debug
Configurations</code> panel in IntelliJ IDEA and create a new Application
configuration. Follow these steps for the configuration:</p><ul><li>Select
<code>hugegraph-dist</code> as the <code>Use classpath of
module</code>.</li><li>Set the <code>Main class</code> to
<code>org.apache.hugegraph.cmd.InitStore</code>.</li><li>Set the program
arguments to <code>conf/rest-server.properties</code>. Note that the path here
is relat [...]
+</span></span></code></pre></div><p>Next, open the <code>Run/Debug
Configurations</code> panel in IntelliJ IDEA and create a new Application
configuration. Follow these steps for the configuration:</p><ul><li>Select
<code>hugegraph-dist</code> as the <code>Use classpath of
module</code>.</li><li>Set the <code>Main class</code> to
<code>org.apache.hugegraph.cmd.InitStore</code>.</li><li>Set the program
arguments to <code>conf/rest-server.properties</code>. Note that the path here
is relat [...]
+</span></span></code></pre></div><p>Otherwise, an error will occur:</p><div
class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#000>java</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>lang</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>reflect</span><span style=color:#ce5c00;fon [...]
+</span></span></code></pre></div></blockquote><p>Once the configuration is
completed, run it. If the execution is successful, the following runtime logs
will be displayed:</p><div class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span style=color:#c [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>37</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#ce5c00;font-weight:700>......</span>
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>39</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
@@ -30,7 +32,9 @@ The core steps for local startup are the same as starting
with scripts:"><link r
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>39</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>39</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>43</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>39</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
-</span></span></code></pre></div><h4 id=3-running-hugegraphserver>3. Running
<code>HugeGraphServer</code></h4><p>Similarly, open the <code>Run/Debug
Configurations</code> panel in IntelliJ IDEA and create a new
<code>Application</code> configuration. Follow these steps for the
configuration:</p><ul><li>Select <code>hugegraph-dist</code> as the <code>Use
classpath of module</code>.</li><li>Set the <code>Main class</code> to
<code>org.apache.hugegraph.dist.HugeGraphServer</code>.</li><li>S [...]
+</span></span></code></pre></div><h4 id=3-running-hugegraphserver>3. Running
<code>HugeGraphServer</code></h4><p>Similarly, open the <code>Run/Debug
Configurations</code> panel in IntelliJ IDEA and create a new
<code>Application</code> configuration. Follow these steps for the
configuration:</p><ul><li>Select <code>hugegraph-dist</code> as the <code>Use
classpath of module</code>.</li><li>Set the <code>Main class</code> to
<code>org.apache.hugegraph.dist.HugeGraphServer</code>.</li><li>S [...]
+</span></span></code></pre></div><p>Otherwise, an error will occur:</p><div
class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#000>java</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>lang</span><span
style=color:#ce5c00;font-weight:700>.</span><span
style=color:#c4a000>reflect</span><span style=color:#ce5c00;fon [...]
+</span></span></code></pre></div></blockquote><p>Once the configuration is
completed, run it. If you see the following logs, it means that
<code>HugeGraphServer</code> has been successfully started:</p><div
class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-java data-lang=java><span style=display:flex><span><span
style=color:#ce5c00;font-weight:700>......</span>
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>51</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>56</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span><span style=display:flex><span><span
style=color:#000>2023</span><span
style=color:#ce5c00;font-weight:700>-</span><span
style=color:#000>06</span><span
style=color:#ce5c00;font-weight:700>-</span><span style=color:#000>05</span>
<span style=color:#000>00</span><span
style=color:#ce5c00;font-weight:700>:</span><span
style=color:#000>51</span><span
style=color:#ce5c00;font-weight:700>:</span><span style=color:#000>56</span>
<span style=color:#ce5c00;font-weight:700>[</span>< [...]
</span></span></code></pre></div><h4
id=4-debugging-hugegraphserver-optional>4. Debugging
<code>HugeGraphServer</code> (optional)</h4><p>After completing the above
configuration, you can try debugging <code>HugeGraphServer</code>. Run
<code>HugeGraphServer</code> in debug mode and set a breakpoint at the
following <a
href=https://github.com/apache/hugegraph/blob/a946ad1de4e8f922251a5241ffc957c33379677f/hugegraph-api/src/main/java/org/apache/hugegraph/api/graph/VertexAPI.java#L238>locatio
[...]
@@ -39,7 +43,7 @@ The core steps for local startup are the same as starting
with scripts:"><link r
</span></span><span style=display:flex><span> <span
style=color:#8f5902;font-style:italic>// ignore log
</span></span></span><span style=display:flex><span><span
style=color:#8f5902;font-style:italic></span> <span
style=color:#000>Map</span><span
style=color:#ce5c00;font-weight:700><</span><span
style=color:#000>String</span><span
style=color:#ce5c00;font-weight:700>,</span> <span
style=color:#000>Object</span><span
style=color:#ce5c00;font-weight:700>></span> <span
style=color:#000>props</span> <span
style=color:#ce5c00;font-weight:700>=</span> <span
style=color:#000>parsePropert [...]
</span></span></code></pre></div><p>Then use the RESTful API to request
<code>HugeGraphServer</code>:</p><div class=highlight><pre tabindex=0
style=background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code
class=language-bash data-lang=bash><span style=display:flex><span>curl <span
style=color:#4e9a06>"http://localhost:8080/graphs/hugegraph/graph/vertices"</span>
<span style=color:#000;font-weight:700>|</span> gunzip
-</span></span></code></pre></div><p>At this point, you can view detailed
variable information in the debugger.</p><h4 id=5-log4j2-configuration>5.
Log4j2 Configuration</h4><p>By default, when running <code>InitStore</code> and
<code>HugeGraphServer</code>, the Log4j2 configuration file path read is
<code>hugegraph-dist/src/main/resources/log4j2.xml</code>, not
<code>path-to-your-directory/conf/log4j2.xml</code>. This configuration file is
read when starting HugeGraphServer using the <str [...]
+</span></span></code></pre></div><p>At this point, you can view detailed
variable information in the debugger.</p><h4 id=5-log4j2-configuration>5.
Log4j2 Configuration</h4><p>By default, when running <code>InitStore</code> and
<code>HugeGraphServer</code>, the Log4j2 configuration file path read is
<code>hugegraph-dist/src/main/resources/log4j2.xml</code>, not
<code>path-to-your-directory/conf/log4j2.xml</code>. This configuration file is
read when starting HugeGraph-Server using the <st [...]
<script
src=https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js
integrity="sha512-UR25UO94eTnCVwjbXozyeVd6ZqpaAE9naiEUBK/A+QDbfSTQFhPGj5lOR6d8tsgbBk84Ggb5A3EkjsOgPRPcKA=="
crossorigin=anonymous></script>
<script src=/js/tabpane-persist.js></script>
<script
src=/js/main.min.aa9f4c5dae6a98b2c46277f4c56f1673a2b000d1756ce4ffae93784cab25e6d5.js
integrity="sha256-qp9MXa5qmLLEYnf0xW8Wc6KwANF1bOT/rpN4TKsl5tU="
crossorigin=anonymous></script>
diff --git a/docs/contribution-guidelines/index.xml
b/docs/contribution-guidelines/index.xml
index 89d9e4b8..c37bf929 100644
--- a/docs/contribution-guidelines/index.xml
+++ b/docs/contribution-guidelines/index.xml
@@ -331,11 +331,11 @@ and no circular links, etc.</li>
<p>NOTE: The following configuration is for reference purposes only, and
has been tested on Linux and macOS platforms based on <a
href="https://github.com/apache/incubator-hugegraph/commit/a946ad1de4e8f922251a5241ffc957c33379677f">this
version</a>.</p>
</blockquote>
<h3 id="background">Background</h3>
-<p>The <a href="/docs/quickstart/hugegraph-server/">Quick Start</a>
section provides instructions on how to start and stop HugeGraphServer using
<strong>scripts</strong>. In this guide, we will explain how to run and
debug HugeGraph-Server on the Linux platform using <strong>IntelliJ
IDEA</strong>.</p>
+<p>The <a href="/docs/quickstart/hugegraph-server/">Quick Start</a>
section provides instructions on how to start and stop HugeGraph-Server using
<strong>scripts</strong>. In this guide, we will explain how to run and
debug HugeGraph-Server on the Linux platform using <strong>IntelliJ
IDEA</strong>.</p>
<p>The core steps for local startup are the same as starting with
<strong>scripts</strong>:</p>
<ol>
<li>Initialize the database backend by executing the
<code>InitStore</code> class to initialize the graph.</li>
-<li>Start HugeGraphServer by executing the
<code>HugeGraphServer</code> class to load the initialized graph
information and start the server.</li>
+<li>Start HugeGraph-Server by executing the
<code>HugeGraphServer</code> class to load the initialized graph
information and start the server.</li>
</ol>
<p>Before proceeding with the following process, make sure that you have
cloned the source code of HugeGraph and have configured the development
environment, such as JDK 11.</p>
<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-bash" data-lang="bash"><span
style="display:flex;"><span>git clone https://github.com/apache/hugegraph.git
@@ -356,6 +356,12 @@ and no circular links, etc.</li>
<li>Set the <code>Main class</code> to
<code>org.apache.hugegraph.cmd.InitStore</code>.</li>
<li>Set the program arguments to
<code>conf/rest-server.properties</code>. Note that the path here is
relative to the working directory, so make sure to set the working directory to
<code>path-to-your-directory</code>.</li>
</ul>
+<blockquote>
+<p>If <strong>user authentication</strong> (authenticator) is
configured for HugeGraph-Server in the <strong>Java 11</strong>
environment, you need to refer to the script <a
href="https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-dist/src/assembly/static/bin/init-store.sh#L52">configuration</a>
in the binary package and add the following <strong>VM
options</strong>:</p>
+<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-bash" data-lang="bash"><span
style="display:flex;"><span>--add-exports<span
style="color:#ce5c00;font-weight:bold">=</span>java.base/jdk.internal.reflect<span
style="color:#ce5c00;font-weight:bold">=</span>ALL-UNNAMED
+</span></span></code></pre></div><p>Otherwise, an error will
occur:</p>
+<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-java" data-lang="java"><span
style="display:flex;"><span><span
style="color:#000">java</span><span
style="color:#ce5c00;font-weight:bold">.</span><span
style="color:#c4a000">lang</span><span
style="color:#ce5c00;font-weight:bold">.</span><span
style="color:#c4a000">reflect</span><span style="color:#ce5c00 [...]
+</span></span></code></pre></div></blockquote>
<p>Once the configuration is completed, run it. If the execution is
successful, the following runtime logs will be displayed:</p>
<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-java" data-lang="java"><span
style="display:flex;"><span><span
style="color:#000">2023</span><span
style="color:#ce5c00;font-weight:bold">-</span><span
style="color:#000">06</span><span
style="color:#ce5c00;font-weight:bold">-</span><span
style="color:#000">05</span> <span style="color:#000">00</span>& [...]
</span></span><span style="display:flex;"><span><span
style="color:#000">2023</span><span
style="color:#ce5c00;font-weight:bold">-</span><span
style="color:#000">06</span><span
style="color:#ce5c00;font-weight:bold">-</span><span
style="color:#000">05</span> <span
style="color:#000">00</span><span
style="color:#ce5c00;font-weight:bold">:</span><span
style="color:#000">43</span><span
style="color:#ce5c00;font-weight:bold">:< [...]
@@ -375,6 +381,12 @@ and no circular links, etc.</li>
<li>Set the <code>Main class</code> to
<code>org.apache.hugegraph.dist.HugeGraphServer</code>.</li>
<li>Set the program arguments to <code>conf/gremlin-server.yaml
conf/rest-server.properties</code>. Similarly, note that the path here is
relative to the working directory, so make sure to set the working directory to
<code>path-to-your-directory</code>.</li>
</ul>
+<blockquote>
+<p>Similarly, if <strong>user authentication</strong> (authenticator)
is configured for HugeGraph-Server in the <strong>Java 11</strong>
environment, you need to refer to the script <a
href="https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-dist/src/assembly/static/bin/hugegraph-server.sh#L124">configuration</a>
in the binary package and add the following <strong>VM
options</strong>:</p>
+<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-bash" data-lang="bash"><span
style="display:flex;"><span>--add-exports<span
style="color:#ce5c00;font-weight:bold">=</span>java.base/jdk.internal.reflect<span
style="color:#ce5c00;font-weight:bold">=</span>ALL-UNNAMED
--add-modules<span
style="color:#ce5c00;font-weight:bold">=</span>jdk.unsupported
--add-exports<span [...]
+</span></span></code></pre></div><p>Otherwise, an error will
occur:</p>
+<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-java" data-lang="java"><span
style="display:flex;"><span><span
style="color:#000">java</span><span
style="color:#ce5c00;font-weight:bold">.</span><span
style="color:#c4a000">lang</span><span
style="color:#ce5c00;font-weight:bold">.</span><span
style="color:#c4a000">reflect</span><span style="color:#ce5c00 [...]
+</span></span></code></pre></div></blockquote>
<p>Once the configuration is completed, run it. If you see the following
logs, it means that <code>HugeGraphServer</code> has been successfully
started:</p>
<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-java" data-lang="java"><span
style="display:flex;"><span><span
style="color:#ce5c00;font-weight:bold">......</span>
</span></span><span style="display:flex;"><span><span
style="color:#000">2023</span><span
style="color:#ce5c00;font-weight:bold">-</span><span
style="color:#000">06</span><span
style="color:#ce5c00;font-weight:bold">-</span><span
style="color:#000">05</span> <span
style="color:#000">00</span><span
style="color:#ce5c00;font-weight:bold">:</span><span
style="color:#000">51</span><span
style="color:#ce5c00;font-weight:bold">:< [...]
@@ -390,8 +402,8 @@ and no circular links, etc.</li>
<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-bash" data-lang="bash"><span
style="display:flex;"><span>curl <span
style="color:#4e9a06">&#34;http://localhost:8080/graphs/hugegraph/graph/vertices&#34;</span>
<span style="color:#000;font-weight:bold">|</span> gunzip
</span></span></code></pre></div><p>At this point, you can
view detailed variable information in the debugger.</p>
<h4 id="5-log4j2-configuration">5. Log4j2 Configuration</h4>
-<p>By default, when running <code>InitStore</code> and
<code>HugeGraphServer</code>, the Log4j2 configuration file path read is
<code>hugegraph-dist/src/main/resources/log4j2.xml</code>, not
<code>path-to-your-directory/conf/log4j2.xml</code>. This configuration
file is read when starting HugeGraphServer using the
<strong>script</strong>.</p>
-<p>To avoid maintaining two separate configuration files, you can modify
the Log4j2 configuration file path when running and debugging HugeGraphServer
in <strong>IntelliJ IDEA</strong>:</p>
+<p>By default, when running <code>InitStore</code> and
<code>HugeGraphServer</code>, the Log4j2 configuration file path read is
<code>hugegraph-dist/src/main/resources/log4j2.xml</code>, not
<code>path-to-your-directory/conf/log4j2.xml</code>. This configuration
file is read when starting HugeGraph-Server using the
<strong>script</strong>.</p>
+<p>To avoid maintaining two separate configuration files, you can modify
the Log4j2 configuration file path when running and debugging HugeGraph-Server
in <strong>IntelliJ IDEA</strong>:</p>
<ol>
<li>Open the previously created <code>Application</code>
configuration.</li>
<li>Click on <code>Modify options</code> - <code>Add VM
options</code>.</li>
@@ -402,7 +414,7 @@ and no circular links, etc.</li>
<p>The reason may be that cross-compilation is triggered when using Java 11
to compile, causing the symbol of <code>sun.misc.Unsafe</code> used in
the project to not be found. There are two possible solutions:</p>
<ol>
<li>In IntelliJ IDEA, go to <code>Preferences/Settings</code> and
find the <code>Java Compiler</code> panel. Then, disable the
<code>--release</code> option (recommended).</li>
-<li>Set the Project SDK to 8.</li>
+<li>Set the Project SDK to 8 (Deprecated soon).</li>
</ol>
<h4 id="2-unable-to-print-location-information-l-in-log4j2">2. Unable to
Print Location Information (%l) in Log4j2</h4>
<p>This is because Log4j2 uses asynchronous loggers. You can refer to the
<a
href="https://logging.apache.org/log4j/2.x/manual/layouts.html#LocationInformation">official
documentation</a> for configuration details.</p>
diff --git a/docs/index.xml b/docs/index.xml
index f1b29175..d6a7cdc1 100644
--- a/docs/index.xml
+++ b/docs/index.xml
@@ -8970,11 +8970,11 @@ Merging mode as needed, and when the Restore is
completed, restore the graph mod
<p>NOTE: The following configuration is for reference purposes only, and
has been tested on Linux and macOS platforms based on <a
href="https://github.com/apache/incubator-hugegraph/commit/a946ad1de4e8f922251a5241ffc957c33379677f">this
version</a>.</p>
</blockquote>
<h3 id="background">Background</h3>
-<p>The <a href="/docs/quickstart/hugegraph-server/">Quick Start</a>
section provides instructions on how to start and stop HugeGraphServer using
<strong>scripts</strong>. In this guide, we will explain how to run and
debug HugeGraph-Server on the Linux platform using <strong>IntelliJ
IDEA</strong>.</p>
+<p>The <a href="/docs/quickstart/hugegraph-server/">Quick Start</a>
section provides instructions on how to start and stop HugeGraph-Server using
<strong>scripts</strong>. In this guide, we will explain how to run and
debug HugeGraph-Server on the Linux platform using <strong>IntelliJ
IDEA</strong>.</p>
<p>The core steps for local startup are the same as starting with
<strong>scripts</strong>:</p>
<ol>
<li>Initialize the database backend by executing the
<code>InitStore</code> class to initialize the graph.</li>
-<li>Start HugeGraphServer by executing the
<code>HugeGraphServer</code> class to load the initialized graph
information and start the server.</li>
+<li>Start HugeGraph-Server by executing the
<code>HugeGraphServer</code> class to load the initialized graph
information and start the server.</li>
</ol>
<p>Before proceeding with the following process, make sure that you have
cloned the source code of HugeGraph and have configured the development
environment, such as JDK 11.</p>
<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-bash" data-lang="bash"><span
style="display:flex;"><span>git clone https://github.com/apache/hugegraph.git
@@ -8995,6 +8995,12 @@ Merging mode as needed, and when the Restore is
completed, restore the graph mod
<li>Set the <code>Main class</code> to
<code>org.apache.hugegraph.cmd.InitStore</code>.</li>
<li>Set the program arguments to
<code>conf/rest-server.properties</code>. Note that the path here is
relative to the working directory, so make sure to set the working directory to
<code>path-to-your-directory</code>.</li>
</ul>
+<blockquote>
+<p>If <strong>user authentication</strong> (authenticator) is
configured for HugeGraph-Server in the <strong>Java 11</strong>
environment, you need to refer to the script <a
href="https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-dist/src/assembly/static/bin/init-store.sh#L52">configuration</a>
in the binary package and add the following <strong>VM
options</strong>:</p>
+<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-bash" data-lang="bash"><span
style="display:flex;"><span>--add-exports<span
style="color:#ce5c00;font-weight:bold">=</span>java.base/jdk.internal.reflect<span
style="color:#ce5c00;font-weight:bold">=</span>ALL-UNNAMED
+</span></span></code></pre></div><p>Otherwise, an error will
occur:</p>
+<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-java" data-lang="java"><span
style="display:flex;"><span><span
style="color:#000">java</span><span
style="color:#ce5c00;font-weight:bold">.</span><span
style="color:#c4a000">lang</span><span
style="color:#ce5c00;font-weight:bold">.</span><span
style="color:#c4a000">reflect</span><span style="color:#ce5c00 [...]
+</span></span></code></pre></div></blockquote>
<p>Once the configuration is completed, run it. If the execution is
successful, the following runtime logs will be displayed:</p>
<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-java" data-lang="java"><span
style="display:flex;"><span><span
style="color:#000">2023</span><span
style="color:#ce5c00;font-weight:bold">-</span><span
style="color:#000">06</span><span
style="color:#ce5c00;font-weight:bold">-</span><span
style="color:#000">05</span> <span style="color:#000">00</span>& [...]
</span></span><span style="display:flex;"><span><span
style="color:#000">2023</span><span
style="color:#ce5c00;font-weight:bold">-</span><span
style="color:#000">06</span><span
style="color:#ce5c00;font-weight:bold">-</span><span
style="color:#000">05</span> <span
style="color:#000">00</span><span
style="color:#ce5c00;font-weight:bold">:</span><span
style="color:#000">43</span><span
style="color:#ce5c00;font-weight:bold">:< [...]
@@ -9014,6 +9020,12 @@ Merging mode as needed, and when the Restore is
completed, restore the graph mod
<li>Set the <code>Main class</code> to
<code>org.apache.hugegraph.dist.HugeGraphServer</code>.</li>
<li>Set the program arguments to <code>conf/gremlin-server.yaml
conf/rest-server.properties</code>. Similarly, note that the path here is
relative to the working directory, so make sure to set the working directory to
<code>path-to-your-directory</code>.</li>
</ul>
+<blockquote>
+<p>Similarly, if <strong>user authentication</strong> (authenticator)
is configured for HugeGraph-Server in the <strong>Java 11</strong>
environment, you need to refer to the script <a
href="https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-server/hugegraph-dist/src/assembly/static/bin/hugegraph-server.sh#L124">configuration</a>
in the binary package and add the following <strong>VM
options</strong>:</p>
+<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-bash" data-lang="bash"><span
style="display:flex;"><span>--add-exports<span
style="color:#ce5c00;font-weight:bold">=</span>java.base/jdk.internal.reflect<span
style="color:#ce5c00;font-weight:bold">=</span>ALL-UNNAMED
--add-modules<span
style="color:#ce5c00;font-weight:bold">=</span>jdk.unsupported
--add-exports<span [...]
+</span></span></code></pre></div><p>Otherwise, an error will
occur:</p>
+<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-java" data-lang="java"><span
style="display:flex;"><span><span
style="color:#000">java</span><span
style="color:#ce5c00;font-weight:bold">.</span><span
style="color:#c4a000">lang</span><span
style="color:#ce5c00;font-weight:bold">.</span><span
style="color:#c4a000">reflect</span><span style="color:#ce5c00 [...]
+</span></span></code></pre></div></blockquote>
<p>Once the configuration is completed, run it. If you see the following
logs, it means that <code>HugeGraphServer</code> has been successfully
started:</p>
<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-java" data-lang="java"><span
style="display:flex;"><span><span
style="color:#ce5c00;font-weight:bold">......</span>
</span></span><span style="display:flex;"><span><span
style="color:#000">2023</span><span
style="color:#ce5c00;font-weight:bold">-</span><span
style="color:#000">06</span><span
style="color:#ce5c00;font-weight:bold">-</span><span
style="color:#000">05</span> <span
style="color:#000">00</span><span
style="color:#ce5c00;font-weight:bold">:</span><span
style="color:#000">51</span><span
style="color:#ce5c00;font-weight:bold">:< [...]
@@ -9029,8 +9041,8 @@ Merging mode as needed, and when the Restore is
completed, restore the graph mod
<div class="highlight"><pre tabindex="0"
style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code
class="language-bash" data-lang="bash"><span
style="display:flex;"><span>curl <span
style="color:#4e9a06">&#34;http://localhost:8080/graphs/hugegraph/graph/vertices&#34;</span>
<span style="color:#000;font-weight:bold">|</span> gunzip
</span></span></code></pre></div><p>At this point, you can
view detailed variable information in the debugger.</p>
<h4 id="5-log4j2-configuration">5. Log4j2 Configuration</h4>
-<p>By default, when running <code>InitStore</code> and
<code>HugeGraphServer</code>, the Log4j2 configuration file path read is
<code>hugegraph-dist/src/main/resources/log4j2.xml</code>, not
<code>path-to-your-directory/conf/log4j2.xml</code>. This configuration
file is read when starting HugeGraphServer using the
<strong>script</strong>.</p>
-<p>To avoid maintaining two separate configuration files, you can modify
the Log4j2 configuration file path when running and debugging HugeGraphServer
in <strong>IntelliJ IDEA</strong>:</p>
+<p>By default, when running <code>InitStore</code> and
<code>HugeGraphServer</code>, the Log4j2 configuration file path read is
<code>hugegraph-dist/src/main/resources/log4j2.xml</code>, not
<code>path-to-your-directory/conf/log4j2.xml</code>. This configuration
file is read when starting HugeGraph-Server using the
<strong>script</strong>.</p>
+<p>To avoid maintaining two separate configuration files, you can modify
the Log4j2 configuration file path when running and debugging HugeGraph-Server
in <strong>IntelliJ IDEA</strong>:</p>
<ol>
<li>Open the previously created <code>Application</code>
configuration.</li>
<li>Click on <code>Modify options</code> - <code>Add VM
options</code>.</li>
@@ -9041,7 +9053,7 @@ Merging mode as needed, and when the Restore is
completed, restore the graph mod
<p>The reason may be that cross-compilation is triggered when using Java 11
to compile, causing the symbol of <code>sun.misc.Unsafe</code> used in
the project to not be found. There are two possible solutions:</p>
<ol>
<li>In IntelliJ IDEA, go to <code>Preferences/Settings</code> and
find the <code>Java Compiler</code> panel. Then, disable the
<code>--release</code> option (recommended).</li>
-<li>Set the Project SDK to 8.</li>
+<li>Set the Project SDK to 8 (Deprecated soon).</li>
</ol>
<h4 id="2-unable-to-print-location-information-l-in-log4j2">2. Unable to
Print Location Information (%l) in Log4j2</h4>
<p>This is because Log4j2 uses asynchronous loggers. You can refer to the
<a
href="https://logging.apache.org/log4j/2.x/manual/layouts.html#LocationInformation">official
documentation</a> for configuration details.</p>
diff --git a/en/sitemap.xml b/en/sitemap.xml
index 0d365a6b..00c587f3 100644
--- a/en/sitemap.xml
+++ b/en/sitemap.xml
@@ -1 +1 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>/docs/guides/architectural/</loc><lastmod>2023-06-25T21:06:07+08:00</lastmod><xhtml:link
rel="alternate" hreflang="cn"
href="/cn/docs/guides/architectural/"/><xhtml:link rel="alternate"
hreflang="en"
href="/docs/guides/architectural/"/></url><url><loc>/docs/config/config-guide/</loc><lastmod>2023-11-01T21:52:52+08:00</last
[...]
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8" standalone="yes"?><urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml"><url><loc>/docs/guides/architectural/</loc><lastmod>2023-06-25T21:06:07+08:00</lastmod><xhtml:link
rel="alternate" hreflang="cn"
href="/cn/docs/guides/architectural/"/><xhtml:link rel="alternate"
hreflang="en"
href="/docs/guides/architectural/"/></url><url><loc>/docs/config/config-guide/</loc><lastmod>2023-11-01T21:52:52+08:00</last
[...]
\ No newline at end of file
diff --git a/sitemap.xml b/sitemap.xml
index e3d1834e..94a119d6 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -1 +1 @@
-<?xml version="1.0" encoding="utf-8" standalone="yes"?><sitemapindex
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>/en/sitemap.xml</loc><lastmod>2024-01-22T10:39:24+08:00</lastmod></sitemap><sitemap><loc>/cn/sitemap.xml</loc><lastmod>2024-01-24T10:47:36+08:00</lastmod></sitemap></sitemapindex>
\ No newline at end of file
+<?xml version="1.0" encoding="utf-8" standalone="yes"?><sitemapindex
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>/en/sitemap.xml</loc><lastmod>2024-01-24T12:55:14+08:00</lastmod></sitemap><sitemap><loc>/cn/sitemap.xml</loc><lastmod>2024-01-24T12:55:14+08:00</lastmod></sitemap></sitemapindex>
\ No newline at end of file