Blizzard / node-rdkafka

Node.js bindings for librdkafka
MIT License
2.11k stars 396 forks source link

"Segmentation fault" error when connecting kafka client with aws ec2 and msk #983

Open cr-urra opened 2 years ago

cr-urra commented 2 years ago

Hello,

I am developing a consumer and producer client for Kafka in an EC2 instance and using AWS MSK as a cluster service, with SASL/SCRAM authentication, however with the node-rdkafka library, still entering the corresponding parameters in the file. properties, it gives me the error message "Segmentation fault", looking for information I found that it could be the version of openssl used by Node and the one I have installed on my EC2 instance, but I'm not sure, they will know where the problem could be for research? Here is some useful information:

KafkaClientEC2Instance2 [ec2-user@ip-10-159-62-88 nodeKafkaSasl$ npm run dev:producer

nodekafkasasl@1.0.0 dev:producer node src/producer.js client.properties

Segmentation fault

bootstrap.servers=[urlHost]:9096,[urlHost]:9096 sasl.username=user sasl.password=usertest security.protocol=SASL_SSL sasl.mechanisms=SCRAM-SHA-512

Node: 1.1.1q+quic openSSL on EC2 instance: 1.0.2k-fips

Thank you

jun0tpyrc commented 1 year ago

Got same combintion but different problem ,similar settings of

security.protocol=SASL_SSL
sasl.mechanisms=SCRAM-SHA-512
Broker did not provide a certificate

already installed ca-certificates

mreouven commented 11 months ago

i have the same probleme