2018-12-05 13:24:45 +00:00
|
|
|
if (NOT ARCH_ARM)
|
|
|
|
option (ENABLE_HDFS "Enable HDFS" ${NOT_UNBUNDLED})
|
|
|
|
endif ()
|
|
|
|
|
2018-12-07 15:13:16 +00:00
|
|
|
if (ENABLE_HDFS AND NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/libhdfs3/include/hdfs/hdfs.h")
|
|
|
|
message (WARNING "submodule contrib/libhdfs3 is missing. to fix try run: \n git submodule update --init --recursive")
|
|
|
|
set (ENABLE_HDFS 0)
|
|
|
|
endif ()
|
|
|
|
|
2018-12-05 13:24:45 +00:00
|
|
|
if (ENABLE_HDFS)
|
2018-11-19 08:17:09 +00:00
|
|
|
option (USE_INTERNAL_HDFS3_LIBRARY "Set to FALSE to use system HDFS3 instead of bundled" ON)
|
|
|
|
|
|
|
|
if (NOT USE_INTERNAL_HDFS3_LIBRARY)
|
|
|
|
find_package(hdfs3)
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
if (HDFS3_LIBRARY AND HDFS3_INCLUDE_DIR)
|
|
|
|
else ()
|
2018-12-04 13:19:00 +00:00
|
|
|
set(HDFS3_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/libhdfs3/include")
|
2018-11-19 08:17:09 +00:00
|
|
|
set(HDFS3_LIBRARY hdfs3)
|
|
|
|
endif()
|
2018-12-05 13:24:45 +00:00
|
|
|
set (USE_HDFS 1)
|
|
|
|
|
|
|
|
endif()
|
2018-11-19 08:17:09 +00:00
|
|
|
|
|
|
|
message (STATUS "Using hdfs3: ${HDFS3_INCLUDE_DIR} : ${HDFS3_LIBRARY}")
|