confluentinc/examples

On a Mac Once built, I get an SASL_SSL Invalid Value error

krishna-prasad-s opened this issue · 0 comments

Description
When the producer is run with the SASL_SSL config I get an error that says Invalid Value

called as
./producer --config ./librdkafka.config --topic test
response
Error: KafkaError (Client config error: Invalid value "SASL_SSL" for configuration property "security.protocol" security.protocol SASL_SSL)

** Config**
bootstrap.servers=host9093
security.protocol=SASL_SSL
sasl.mechanisms=PLAIN
sasl.username="something"
sasl.password="somethingelse"

Environment

  • GitHub branch: main
  • Operating System: macos

Build Log
cargo build Compiling libc v0.2.54 Compiling cc v1.0.36 Compiling memchr v2.2.0 Compiling unicode-xid v0.1.0 Compiling pkg-config v0.3.14 Compiling version_check v0.1.5 Compiling glob v0.2.11 Compiling ucd-util v0.1.3 Compiling regex v1.1.6 Compiling utf8-ranges v1.0.2 Compiling quick-error v1.2.2 Compiling bindgen v0.42.3 Compiling proc-macro2 v0.4.29 Compiling termcolor v1.0.4 Compiling peeking_take_while v0.1.2 Compiling serde v1.0.90 Compiling syn v0.15.33 Compiling log v0.4.6 Compiling thread_local v0.3.6 Compiling proc-macro2 v0.3.5 Compiling regex-syntax v0.6.6 Compiling humantime v1.2.0 Compiling nom v4.2.3 Compiling rust-kafka-client-example v0.1.0 (/examples/clients/cloud/rust) Compiling clang-sys v0.26.4 Compiling log v0.3.9 Compiling quote v0.5.2 Compiling libloading v0.5.0 Compiling libz-sys v1.0.25 Compiling openssl-sys v0.9.47 Compiling iovec v0.1.2 Compiling rand_jitter v0.1.4 Compiling rand_os v0.1.3 Compiling atty v0.2.11 Compiling net2 v0.2.33 Compiling num_cpus v1.10.0 Compiling which v1.0.5 Compiling num_cpus v0.2.13 Compiling aho-corasick v0.7.3 Compiling bytes v0.4.12 Compiling rand v0.6.5 Compiling clap v2.33.0 Compiling mio v0.6.19 Compiling tokio-io v0.1.12 Compiling parking_lot_core v0.4.0 Compiling tokio-threadpool v0.1.14 Compiling quote v0.6.12 Compiling mio-uds v0.6.7 Compiling tokio-codec v0.1.1 Compiling parking_lot v0.7.1 Compiling tokio-fs v0.1.6 Compiling tokio-reactor v0.1.9 Compiling env_logger v0.5.13 Compiling tokio-tcp v0.1.3 Compiling tokio-udp v0.1.3 Compiling tokio-uds v0.2.5 Compiling cexpr v0.3.5 Compiling tokio v0.1.21 Compiling serde_json v1.0.39 Compiling serde_derive v1.0.90 Compiling rdkafka-sys v1.0.0 Compiling rdkafka v0.21.0 warning: trait objects without an explicit dynare deprecated --> src/utils.rs:23:59 | 23 | pub fn get_config() -> Result<(String, ClientConfig), Box<std::error::Error>> { | ^^^^^^^^^^^^^^^^^ | = note:#[warn(bare_trait_objects)]on by default = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> help: usedyn`
|
23 - pub fn get_config() -> Result<(String, ClientConfig), Boxstd::error::Error> {
23 + pub fn get_config() -> Result<(String, ClientConfig), Box> {
|

warning: rust-kafka-client-example (bin "producer") generated 1 warning
warning: rust-kafka-client-example (bin "consumer") generated 1 warning (1 duplicate)
Finished dev [unoptimized + debuginfo] target(s) in 23.47s
`