Hi ningtao, Sorry to be late. It's really a bug and I can reproduce it by setting IMPALA_BUILD_THREADS=1 when building. Created a JIRA for it: https://issues.apache.org/jira/browse/IMPALA-8642 It's a race condition in compiling that the krpc part in Impala depends on the thrift-generated c++ sources. So a dependency should be added in the CMakeLists.txt of be/src/kudu/rpc. Usually we build impala in parallel so it's rare to happen.
Currently, you can work around it by allocating more cpu cores to your docker container. So the build script will use more threads in compiling. BTW, build in more threads can save more time :) Thanks, Quanlong On Thu, Jun 6, 2019 at 12:13 AM ningtao <bobni...@163.com> wrote: > Hi, > > I have tried running `source ~/Impala/bin/bootstrap_development.sh` > several times but the build exits with an error. > I followed the instruction from here > < > https://cwiki.apache.org/confluence/display/IMPALA/Impala+Development+Environment+inside+Docker > >. > > > > > Have tried both ubuntu:16.04 and ubuntu:18.04 images in a AWS EC2 Host > machine(CentOS 7.6, docker-ce-18.09.6-3.el7.x86_64) > > last section with the error is pasted below. > > > [ 13%] Building CXX object > be/src/kudu/util/CMakeFiles/kudu_util.dir/version_util.cc.o > [ 13%] Building CXX object > be/src/kudu/util/CMakeFiles/kudu_util.dir/website_util.cc.o > [ 13%] Building CXX object > be/src/kudu/util/CMakeFiles/kudu_util.dir/zlib.cc.o > [ 14%] Linking CXX static library > ../../../build/debug/kudu_util/libkudu_util.a > [ 14%] Built target kudu_util > Scanning dependencies of target protoc-gen-krpc > [ 14%] Building CXX object > be/src/kudu/rpc/CMakeFiles/protoc-gen-krpc.dir/protoc-gen-krpc.cc.o > [ 14%] Building CXX object > be/src/kudu/rpc/CMakeFiles/protoc-gen-krpc.dir/__/__/common/kudu_version.cc.o > In file included from > /home/impdev/Impala/be/src/common/kudu_version.cc:20:0: > /home/impdev/Impala/be/src/common/status.h:28:50: fatal error: > gen-cpp/Status_types.h: No such file or directory > #include "gen-cpp/Status_types.h" // for TStatus > ^ > compilation terminated. > be/src/kudu/rpc/CMakeFiles/protoc-gen-krpc.dir/build.make:75: recipe for > target > 'be/src/kudu/rpc/CMakeFiles/protoc-gen-krpc.dir/__/__/common/kudu_version.cc.o' > failed > make[2]: *** > [be/src/kudu/rpc/CMakeFiles/protoc-gen-krpc.dir/__/__/common/kudu_version.cc.o] > Error 1 > CMakeFiles/Makefile2:4059: recipe for target > 'be/src/kudu/rpc/CMakeFiles/protoc-gen-krpc.dir/all' failed > make[1]: *** [be/src/kudu/rpc/CMakeFiles/protoc-gen-krpc.dir/all] Error 2 > Makefile:94: recipe for target 'all' failed > make: *** [all] Error 2 > > > Many thanks > ningtao