This is an automated email from the ASF dual-hosted git repository.

jiafengzheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 86f3432  [Doc]Doris compile and install JDK version incompatibility 
problem (#7797)
86f3432 is described below

commit 86f34323a8185a3732d8199e534a47ebd256e0fd
Author: jiafeng.zhang <[email protected]>
AuthorDate: Mon Jan 24 13:57:18 2022 +0800

    [Doc]Doris compile and install JDK version incompatibility problem (#7797)
    
    * Doris compile and install JDK version incompatibility problem
---
 docs/en/faq/error.md    | 4 ++++
 docs/zh-CN/faq/error.md | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/docs/en/faq/error.md b/docs/en/faq/error.md
index 0bc6c06..216e06a 100644
--- a/docs/en/faq/error.md
+++ b/docs/en/faq/error.md
@@ -147,3 +147,7 @@ The second is that the packet size of rpc exceeds 
`max_body_size`. This problem
 Sometimes when restarting the Fe, the above error will occur (usually only in 
the case of multiple followers), and the difference between the two values in 
the error is 2. As a result, the Fe startup fails.
 
 This is a bug in bdbje that has not been resolved. In this case, metadata can 
only be recovered through fault recovery in [metadata operation and maintenance 
manual](../administrator-guide/operation/metadata-operation.md).
+
+### E12.Doris compile and install JDK version incompatibility problem
+
+When I use Docker to compile Doris myself, start FE after compiling and 
installing, ```java.lang.Suchmethoderror: java.nio.ByteBuffer.limit 
(I)Ljava/nio/ByteBuffer; ``` exception information, this is because the default 
in Docker is JDK 11. If your installation environment is using JDK8, you need 
to switch the JDK environment to JDK8 in Docker. For the specific switching 
method, refer to 
[Compilation](https://doris.apache.org/installing/compilation.html)
diff --git a/docs/zh-CN/faq/error.md b/docs/zh-CN/faq/error.md
index 5c9e668..8b66d95 100644
--- a/docs/zh-CN/faq/error.md
+++ b/docs/zh-CN/faq/error.md
@@ -145,3 +145,7 @@ failed to initialize storage reader. 
tablet=63416.1050661139.aa4d304e7a7aff9c-f0
 有时重启 FE,会出现如上错误(通常只会出现在多 Follower 的情况下)。并且错误中的两个数值相差2。导致 FE 启动失败。
 
 这是 bdbje 的一个 bug,尚未解决。遇到这种情况,只能通过 
[元数据运维手册](../administrator-guide/operation/metadata-operation.md) 中的 故障恢复 
进行操作来恢复元数据了。
+
+### E12.Doris编译安装JDK版本不兼容问题
+
+在自己使用 Docker 编译 Doris 的时候,编译完成安装以后启动FE,出现 ```java.lang.Suchmethoderror: 
java.nio. ByteBuffer. limit (I)Ljava/nio/ByteBuffer;``` 异常信息,这是因为Docker里默认是JDK 
11,如果你的安装环境是使用JDK8 ,需要在 Docker 里 JDK 环境切换成 
JDK8,具体切换方法参照[编译](https://doris.apache.org/zh-CN/installing/compilation.html)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to