Open cshimegi opened 1 year ago
First guess: this one could be implemented just with enabling gssapi
feature in rdkafka
dependency.
Indeed, it looks like we currently only enable GSSAPI for GNU x86_64 builds but not for aarch64 or musl builds. I assume there was some build issue blocking enabling on these other platforms, but I'm not sure what it might be. I'll open a PR adding the feature to the other platforms and see if it fails and, if so, why.
Opened a draft PR, https://github.com/vectordotdev/vector/pull/16738, to see what happens.
Welp, it looks like every build except x86_64-unknown-linux-gnu
fails. Including the log files here for posterity since GHA will delete them after some time period.
x86_64-unknown-linux-musl
seems to fail due to undefined symbols. x86_64-unknown-linux-musl.logaarch64-unknown-linux-gnu
seems to fail because libsasl2_sys
is not correctly building for aarch64, but is instead still building for x86_64. aarch64-unknown-linux-gnu.logaarch64-unknown-linux-musl
fails for both the arch and musl reasons. aarch64-unknown-linux-musl.logarmv7-unknown-linux-gnueabihf
fails for same reason the aarch64 gnu build fails. armv7-unknown-linux-gnueabihf.logarmv7-unknown-linux-musleabihf
fails for the same reason the aarch64 musl build fails. armv7-unknown-linux-musleabihf.logIf anyone digs into this, I think the place to start is with investigating why the sasl2_sys
crate doesn't correctly cross-compile on other architectures than x86_64. It seems to be due to https://github.com/MaterializeInc/rust-sasl/issues/46 which does actually have a PR already so we may just need to have that be merged in.
try complie librdkafka (with ssl and sasl)
export CC=aarch64-linux-gnu-gcc export CXX=aarch64-linux-gnu-g++ ./configure --arch=aarch64 --prefix=/usr/aarch64-linux-gnu --enable-ssl --enable-sasl
please see: https://github.com/confluentinc/librdkafka/wiki/Using-SSL-with-librdkafka https://github.com/confluentinc/librdkafka/wiki/Using-SASL-with-librdkafka
A note for the community
Problem
I'm trying to use Kafka component GSSAPI authentication which is supported according to the librdkafka document. However, I get an error message saying that it is unsupported.
sasl.mechanism document
Error message
Configuration
Version
vector 0.28.1 (aarch64-unknown-linux-musl ff15924 2023-03-06)
Debug Output
No response
Example Data
No response
Additional Context
No response
References
No response