最近在整理impala编译的东西,简单记录几个要点:
根据官网的信息(https://github.com/cloudera/Impala/wiki/How-to-build-Impala):
1. 首次编译impala,推荐使用命令:
${IMPALA_HOME}/buildall.sh -skiptests -build_shared_libs -format
2.仅编译BE
${IMPALA_HOME}/bin/make_debug.sh [-notests] -build_shared_libs
编译后的文件在 be/bulid里面,编译出来的东西有200MB+,和官方的比20MB差距较大;
执行strip --strip-debug impalad|catalogd|statestored 会变成30MB+
3. 仅编译FE
cd ${IMPALA_HOME}/fe && mvn clean package dependency:copy-dependencies -DskipTests=true
参考:
http://fatkun.com/2014/12/compile-impala.html