mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Fix librdkafka/hdfs that depends on sasl2/krb5
This commit is contained in:
parent
97f9cf939e
commit
78858f9ba9
10
contrib/CMakeLists.txt
vendored
10
contrib/CMakeLists.txt
vendored
@ -85,10 +85,6 @@ add_contrib (thrift-cmake thrift)
|
|||||||
add_contrib (arrow-cmake arrow) # requires: snappy, thrift, double-conversion
|
add_contrib (arrow-cmake arrow) # requires: snappy, thrift, double-conversion
|
||||||
add_contrib (avro-cmake avro) # requires: snappy
|
add_contrib (avro-cmake avro) # requires: snappy
|
||||||
add_contrib (protobuf-cmake protobuf)
|
add_contrib (protobuf-cmake protobuf)
|
||||||
add_contrib (libhdfs3-cmake libhdfs3) # requires: protobuf
|
|
||||||
add_contrib (hive-metastore-cmake hive-metastore) # requires: thrift/avro/arrow/libhdfs3
|
|
||||||
add_contrib (librdkafka-cmake librdkafka)
|
|
||||||
add_contrib (cppkafka-cmake cppkafka)
|
|
||||||
add_contrib (openldap-cmake openldap)
|
add_contrib (openldap-cmake openldap)
|
||||||
add_contrib (grpc-cmake grpc)
|
add_contrib (grpc-cmake grpc)
|
||||||
add_contrib (msgpack-c-cmake msgpack-c)
|
add_contrib (msgpack-c-cmake msgpack-c)
|
||||||
@ -108,7 +104,6 @@ if (ENABLE_TESTS)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_contrib (llvm-cmake llvm)
|
add_contrib (llvm-cmake llvm)
|
||||||
add_contrib (libgsasl-cmake libgsasl)
|
|
||||||
add_contrib (libxml2-cmake libxml2)
|
add_contrib (libxml2-cmake libxml2)
|
||||||
add_contrib (aws-s3-cmake
|
add_contrib (aws-s3-cmake
|
||||||
aws
|
aws
|
||||||
@ -129,6 +124,11 @@ add_contrib (sentry-native-cmake sentry-native) # requires: curl
|
|||||||
add_contrib (fmtlib-cmake fmtlib)
|
add_contrib (fmtlib-cmake fmtlib)
|
||||||
add_contrib (krb5-cmake krb5)
|
add_contrib (krb5-cmake krb5)
|
||||||
add_contrib (cyrus-sasl-cmake cyrus-sasl) # for krb5
|
add_contrib (cyrus-sasl-cmake cyrus-sasl) # for krb5
|
||||||
|
add_contrib (libgsasl-cmake libgsasl) # requires krb5
|
||||||
|
add_contrib (librdkafka-cmake librdkafka) # requires: libgsasl
|
||||||
|
add_contrib (libhdfs3-cmake libhdfs3) # requires: protobuf, krb5
|
||||||
|
add_contrib (hive-metastore-cmake hive-metastore) # requires: thrift/avro/arrow/libhdfs3
|
||||||
|
add_contrib (cppkafka-cmake cppkafka)
|
||||||
add_contrib (libpqxx-cmake libpqxx)
|
add_contrib (libpqxx-cmake libpqxx)
|
||||||
add_contrib (libpq-cmake libpq)
|
add_contrib (libpq-cmake libpq)
|
||||||
add_contrib (nuraft-cmake NuRaft)
|
add_contrib (nuraft-cmake NuRaft)
|
||||||
|
@ -9,7 +9,8 @@ if(NOT ENABLE_HDFS)
|
|||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (${ENABLE_KRB5})
|
if (TARGET ch_contrib::krb5)
|
||||||
|
message(STATUS "Enable kerberos for HDFS")
|
||||||
SET(WITH_KERBEROS 1)
|
SET(WITH_KERBEROS 1)
|
||||||
else()
|
else()
|
||||||
SET(WITH_KERBEROS 0)
|
SET(WITH_KERBEROS 0)
|
||||||
|
@ -87,14 +87,14 @@ set(SRCS
|
|||||||
"${RDKAFKA_SOURCE_DIR}/tinycthread_extra.c"
|
"${RDKAFKA_SOURCE_DIR}/tinycthread_extra.c"
|
||||||
)
|
)
|
||||||
|
|
||||||
if(${ENABLE_CYRUS_SASL})
|
if(TARGET ch_contrib::sasl2)
|
||||||
message (STATUS "librdkafka with SASL support")
|
message (STATUS "librdkafka with SASL support")
|
||||||
set(WITH_SASL_CYRUS 1)
|
set(WITH_SASL_CYRUS 1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
message (STATUS "librdkafka with SSL support")
|
message (STATUS "librdkafka with SSL support")
|
||||||
set(WITH_SSL 1)
|
set(WITH_SSL 1)
|
||||||
if(${ENABLE_CYRUS_SASL})
|
if(WITH_SASL_CYRUS)
|
||||||
set(WITH_SASL_SCRAM 1)
|
set(WITH_SASL_SCRAM 1)
|
||||||
set(WITH_SASL_OAUTHBEARER 1)
|
set(WITH_SASL_OAUTHBEARER 1)
|
||||||
endif()
|
endif()
|
||||||
@ -127,7 +127,7 @@ target_link_libraries(_rdkafka
|
|||||||
ch_contrib::zstd
|
ch_contrib::zstd
|
||||||
OpenSSL::Crypto OpenSSL::SSL
|
OpenSSL::Crypto OpenSSL::SSL
|
||||||
)
|
)
|
||||||
if(${ENABLE_CYRUS_SASL})
|
if(WITH_SASL_CYRUS)
|
||||||
target_link_libraries(_rdkafka PRIVATE ch_contrib::sasl2)
|
target_link_libraries(_rdkafka PRIVATE ch_contrib::sasl2)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user