Hi wangtie.

Running and compiling Doris JDK must be consistent.

You can reference the compile doc[1] to change the JDK version while
compiling.

[1]
https://doris.apache.org/master/zh-CN/installing/compilation.html#%E4%BD%BF%E7%94%A8-docker-%E5%BC%80%E5%8F%91%E9%95%9C%E5%83%8F%E7%BC%96%E8%AF%91-%E6%8E%A8%E8%8D%90

On Mon, Dec 13, 2021 at 4:17 PM 王 铁 <wangtie_...@outlook.com> wrote:

> Hi
>
> I have compiled source code with using docker image, and I have started fe
> progress on one server
>
> when I tried to connect use : ./mysql-client -h host -P port -uroot
>
> there is an error shown on screen : ERROR 2013 (HY000): Lost connection to
> MySQL server at 'reading initial communication packet', system error: 0
>
> and in the same time , there are some warn infomation which is printed in
> fe.warn.log like this
>
> ERROR (doris-mysql-nio-pool-8|143)
> [AcceptListener.lambda$handleEvent$1():86] connect processor exception
> because
> java.lang.NoSuchMethodError:
> java.nio.ByteBuffer.limit(I)Ljava/nio/ByteBuffer;
> at
> org.apache.doris.mysql.MysqlChannel.sendOnePacket(MysqlChannel.java:259)
> ~[palo-fe.jar:3.4.0]
> at org.apache.doris.mysql.MysqlChannel.sendAndFlush(MysqlChannel.java:265)
> ~[palo-fe.jar:3.4.0]
> at org.apache.doris.mysql.MysqlProto.negotiate(MysqlProto.java:169)
> ~[palo-fe.jar:3.4.0]
> at
> org.apache.doris.mysql.nio.AcceptListener.lambda$handleEvent$1(AcceptListener.java:63)
> ~[palo-fe.jar:3.4.0]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [?:1.8.0_121]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [?:1.8.0_121]
> at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]
>
> is this an issue or my mistake ?
>
> thank you guys.
>

Reply via email to