Comments (4)
Can you reproduce this failure by compiling a open source project? Then we can reproduce it and analyze the root cause.
from juicefs.
Reproduce it is not very easy and quickly.
But I'll paste all steps here.
- Setup Minio, Redis, JuiceFs ....。 Mount JuiceFs to /data/test
- Setup a docker for build env.
# image name: buildenv
FROM centos:centos7.9.2009
MAINTAINER [email protected]
# Install os packages with local repo
RUN cd /etc/yum.repos.d/ && rename .repo .repo.bak *
COPY CentOS-Base.repo /etc/yum.repos.d/
RUN yum clean all
RUN yum makecache
RUN yum install -y wget openssl openssl-devel python3 sshpass sudo nfs-utils rsync
RUN yum install -y centos-release-scl
RUN yum install -y devtoolset-11*
RUN source /opt/rh/devtoolset-11/enable
# Install c++ compiler
RUN mv /usr/bin/gcc /usr/bin/gcc-4.8.5
RUN mv /usr/bin/g++ /usr/bin/g++-4.8.5
RUN mv /usr/bin/c++ /usr/bin/c++-4.8.5
RUN ln -s /opt/rh/devtoolset-11/root/bin/gcc /usr/bin/gcc
RUN ln -s /opt/rh/devtoolset-11/root/bin/g++ /usr/bin/g++
RUN ln -s /opt/rh/devtoolset-11/root/bin/c++ /usr/bin/c++
RUN ln -s /opt/rh/devtoolset-11/root/lib/gcc/x86_64-redhat-linux/11 /usr/lib/gcc/x86_64-redhat-linux/11
ADD jdk1.8.0_291.tar.gz /opt/
ADD apache-maven-3.6.3.tar.gz /opt/
ADD git-2.29.2.tar.gz /opt
ADD cmake-3.16.6-Linux-x86_64.tar.gz /usr/local/
RUN rm -f /usr/bin/git
RUN alternatives --install /usr/bin/java java /opt/jdk1.8.0_291/bin/java 500
RUN alternatives --install /usr/bin/mvn mvn /opt/apache-maven-3.6.3/bin/mvn 500
RUN alternatives --install /usr/bin/git git /opt/git-2.29.2/bin/git 500
RUN alternatives --install /usr/bin/cmake cmake /usr/local/cmake-3.16.6-Linux-x86_64/bin/cmake 500
ADD ninja-1.10.1.tar.gz /tmp
RUN cd /tmp/ninja-1.10.1 && cmake -Bbuild-cmake -H. && cmake --build build-cmake && cp build-cmake/ninja /usr/local/bin/ninja
RUN ninja --version
RUN rm -f -r /tmp/ninja-1.10.1
ADD llvm-project-15.0.7.src.tar.gz /tmp
RUN cd /tmp/llvm-project-15.0.7.src/ && cmake -S llvm -B build_release -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local/llvm -G "Ninja" -DLLVM_USE_LINKER="gold" -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;lld;lldb" -DLLVM_ENABLE_RUNTIMES="libc;compiler-rt;libcxx;libcxxabi;libunwind" -DCMAKE_C_COMPILER=/opt/rh/devtoolset-11/root/usr/bin/gcc -DCMAKE_CXX_COMPILER=/opt/rh/devtoolset-11/root/usr/bin/g++
RUN cd /tmp/llvm-project-15.0.7.src/build_release/ && ninja -j 12 && ninja install
RUN rm -f -r /tmp/llvm-project-15.0.7.src
RUN /usr/local/llvm/bin/clang --version
ENV JAVA_HOME /opt/jdk1.8.0_291
ENV MAVEN_HOME /opt/apache-maven-3.6.3
ENV PATH $PATH:$JAVA_HOME/bin
ENV MAVEN_CUSTOM_LOCAL /home/jenkins
- Compile clickhouse with docker
# 打包构建到临时目录
SNAPSHOT_TMPDIR=/data/test
docker run \
-v /home/jenkins/build:/home/jenkins/script \
-v ${SNAPSHOT_TMPDIR}:/home/jenkins/build/src \
--privileged \
<your build docker> \
sh /home/jenkins/script/build.sh
build.sh:
cd /home/jenkins/build/src/
git clone --branch v22.8.4.7-lts https://github.com/ClickHouse/ClickHouse.git
cd ClickHouse
git submodule update --init --recursive --jobs 6
WORKSPACE=$(git rev-parse --show-toplevel)
echo 代码工作空间[${WORKSPACE}].
cd ${WORKSPACE}
echo 清理之前的构建目录...
BUILD_DIR=${BUILD_DIR:-$WORKSPACE/build}
rm -rf ${BUILD_DIR}
mkdir -p ${BUILD_DIR}
echo 更新SubModule...
git submodule update --init --recursive --jobs 6
echo 开始构建代码...
cd ${BUILD_DIR}
cmake -DENABLE_TESTS=OFF -DBENCHMARK_ENABLE_TESTING=OFF -DENABLE_S3=OFF \
-DENABLE_CLICKHOUSE_ALL=OFF \
-DENABLE_CLICKHOUSE_SERVER=ON -DENABLE_CLICKHOUSE_CLIENT=ON \
-DENABLE_CLICKHOUSE_PONTUS_TOOL=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_COMPILER=/usr/local/llvm/bin/clang \
-DCMAKE_CXX_COMPILER=/usr/local/llvm/bin/clang++ \
-DENABLE_CCACHE=0 ${WORKSPACE}
ninja
from juicefs.
maybe upload docker image and clickhouse source code to "百度网盘" can help you?
I'll upload them later.
from juicefs.
The docker image should be helpful.
from juicefs.
Related Issues (20)
- expect .minio.sys has a protection mechanism and cannot be deleted by users
- inode used is incorrect with mysql meta engine. HOT 1
- doc: add info to mount juicefs on boot with cache HOT 3
- If the mount point is abnormal, the debug command cannot obtain the config file HOT 1
- mount process does not exit when mount failed. HOT 1
- do not remove broken cache disk on writeback mode.
- After the cache disk is recovered, write data times out for 5 minutes HOT 1
- S3 Gateway Cannot Be Started by Non-root Users HOT 1
- Make hardcoded fetch 100 each worker user configurable HOT 1
- Size error in fsx test. HOT 2
- fslock test failed. HOT 5
- .minio.sys should be skipped on rm HOT 1
- Can't delete or switch recursive symbolic link HOT 3
- gateway CVE-2021-21287 SSRF漏洞 HOT 4
- [BUG] `juicefs sync` cmd running in k8s pod doesn't output fetch status in stdout/stderr HOT 1
- There are some problems with sync when there is a symlink under the directory HOT 1
- juicefs gc fails because of timeout at ListAll objects HOT 5
- After changing the hive location address from hdfs to jfs, an error will be reported when running the MapReduce task HOT 1
- Support for creating temporary files with O_TMPFILE flag
- juicefs sync error:juicefs sync --dirs -f --threads 10 /mnt/kkk/1.txt nfs://10.200.88.213:/mnt/hhh/1.txt --debug HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from juicefs.