Impala lzo編譯(CentOS 7 && Kylin X86)報(bào)錯(cuò)記錄

編譯步驟:

yum install lzo-devel 
source /opt/gitcode/kdp-impala/bin/impala-config.sh
git clone --branch master https://github.com/chufucun/impala-lzo.git
 cd $IMPALA_LZO_HOME 
./build.sh release &IMPALA_HOME 

報(bào)錯(cuò)一:

CMake Error at CMakeLists.txt:115 (find_package):
  By not providing "FindThrift.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Thrift", but
  CMake did not find one.

  Could not find a package configuration file provided by "Thrift" with any
  of the following names:

    ThriftConfig.cmake
    thrift-config.cmake

  Add the installation prefix of "Thrift" to CMAKE_PREFIX_PATH or set
  "Thrift_DIR" to a directory containing one of the above files.  If "Thrift"
  provides a separate development package or SDK, be sure it has been
  installed.

修改CMakeLists.txt中:

find_package(Thrift REQUIRED)

修改為:

find_package(ThriftJava REQUIRED)

報(bào)錯(cuò)二:

In file included from /data/keendata/kdp-package/impala-lzo/hdfs-lzo-text-scanner.cc:22:
/data/keendata/kdp-package/impala-lzo/hdfs-lzo-text-scanner.h:9:10: fatal error: exec/hdfs-text-scanner.h: 沒(méi)有那個(gè)文件或目錄
    9 | #include "exec/hdfs-text-scanner.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~

解決辦法:修改 #include "exec/hdfs-text-scanner.h" 為 #include "exec/text/hdfs-text-scanner.h"

報(bào)錯(cuò)三:

/data/keendata/kdp-package/kdp-impala/be/src/util/in-list-filter.h:21:10: fatal error: orc/sargs/Literal.hh: 沒(méi)有那個(gè)文件或目錄
   21 | #include <orc/sargs/Literal.hh>
      |          ^~~~~~~~~~~~~~~~~~~~~~

解決辦法:修改CMakeLists.txt中,添加


# 4.3+ contains orc file
# find ORC headers and libs
#find_package(Orc REQUIRED)
#IMPALA_ADD_THIRDPARTY_LIB(orc ${ORC_INCLUDE_DIR} ${ORC_STATIC_LIB} "")
include_directories("${impala toochain orc  include 路徑}")
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容