2.0.5版本,下载apache-doris-2.0.5-bin-x64.tar.gz,解压后对be目录打包
利用如下dockfile文件生成镜像:
FROM openjdk:8u342-jdk
# 设置环境变量
ENV JAVA_HOME="/usr/local/openjdk-8/" \
PATH="/opt/apache-doris/be/bin:$PATH" \
DORIS_HOME="/apache-doris/be"
# 下载软件至镜像内,可根据需要替换
ADD ./resource/apache-doris-be-2.0.5-bin-x64.tar.gz /opt/
ADD ./resource/mysql-connector-java-8.0.25.jar /opt/
ADD ./resource/postgresql-42.2.9.jar /opt/
RUN apt-get update && \
apt-get install -y default-mysql-client && \
apt-get clean && \
mkdir /opt/apache-doris && \
cd /opt && \
mv be /opt/apache-doris/be
ADD ./resource/register_be2fe.sh /opt/apache-doris/be/bin
RUN chmod 755 /opt/apache-doris/be/bin/register_be2fe.sh
RUN echo 'vm.max_map_count=2000000'>> /etc/sysctl.conf
CMD ["tail -f /dev/null"]
启动docke镜像,be启动报如下错误,fe启动正常
INFO: java_cmd /usr/local/openjdk-8//bin/java
INFO: jdk_version 8
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/apache-doris/be/lib/java_extensions/preload-extensions/preload-extensions-jar-with-dependencies.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/apache-doris/be/lib/java_extensions/java-udf/java-udf-jar-with-dependencies.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/apache-doris/be/lib/hadoop_hdfs/common/lib/slf4j-reload4j-1.7.36.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Reload4jLoggerFactory]
WARNING: Logging before InitGoogleLogging() is written to STDERR
W0307 06:10:13.307907 563 jni-util.cpp:241] java.lang.RuntimeException: error in opening zip file
at org.apache.doris.common.classloader.ScannerLoader.lambda$loadJarClassFromDir$1(ScannerLoader.java:128)
at java.util.ArrayList.forEach(ArrayList.java:1259)
at org.apache.doris.common.classloader.ScannerLoader.loadJarClassFromDir(ScannerLoader.java:105)
at org.apache.doris.common.classloader.ScannerLoader.lambda$loadAllScannerJars$0(ScannerLoader.java:58)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:485)
at org.apache.doris.common.classloader.ScannerLoader.loadAllScannerJars(ScannerLoader.java:54)
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:228)
at java.util.zip.ZipFile.<init>(ZipFile.java:157)
at java.util.jar.JarFile.<init>(JarFile.java:171)
at java.util.jar.JarFile.<init>(JarFile.java:135)
at org.apache.doris.common.classloader.ScannerLoader.lambda$loadJarClassFromDir$1(ScannerLoader.java:109)
... 13 more
W0307 06:10:13.591763 563 status.h:395] meet error status: [INTERNAL_ERROR]RuntimeException: error in opening zip file
CAUSED BY: ZipException: error in opening zip file
0# doris::JniUtil::GetJniExceptionMsg(JNIEnv_*, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) at /home/zcp/repo_center/doris_release/doris/be/src/util/jni-util.h:110
1# doris::JniUtil::init_jni_scanner_loader(JNIEnv_*) at /var/local/ldb_toolchain/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/basic_string.h:187
2# doris::JniUtil::Init() at /home/zcp/repo_center/doris_release/doris/be/src/common/status.h:445
3# main at /home/zcp/repo_center/doris_release/doris/be/src/common/status.h:356
4# __libc_start_main
5# _start
请问是什么原因?