Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kafka-plugin Writer failed to start: undefined symbol: rd_kafka_conf_set_log_cb #91

Closed
eurekaeru opened this issue Jan 6, 2017 · 2 comments
Labels

Comments

@eurekaeru
Copy link

Hi,

I'm using sfacct to export flows to kafka. I noticed that the latest version of sfacctd didn't work with kafka plugin with this message:
undefined symbol: rd_kafka_conf_set_log_cb
I'm trying to solve this issue.

ENV:

# sfacctd -V
sFlow Accounting Daemon, sfacctd 1.6.2-git (20170106-00)
 '--enable-rabbitmq' '--enable-kafka' '--enable-jansson'

For suggestions, critics, bugs, contact me: Paolo Lucente <paolo@pmacct.net>.
# cat /etc/sfacctd.conf 
aggregate: src_mac, dst_mac, vlan, cos, etype, src_as, dst_as, peer_src_ip, peer_dst_ip, in_iface, out_iface, src_host, src_net, dst_host, dst_net, src_mask, dst_mask, src_port, dst_port, tcpflags, proto, tos, sampling_rate, timestamp_start, timestamp_end, timestamp_arrival

plugins: kafka
kafka_output: json
kafka_topic: pmacct.test
kafka_refresh_time: 60
kafka_history: 1m
kafka_history_roundoff: m
kafka_broker_host: <IP>
kafka_broker_port: 9092

# sfacctd -f /etc/sfacctd.conf 
INFO ( default/core ): sFlow Accounting Daemon, sfacctd 1.6.2-git (20170106-00)
INFO ( default/core ):  '--enable-rabbitmq' '--enable-kafka' '--enable-jansson'
INFO ( default/core ): Reading configuration file '/etc/sfacctd.conf'.
INFO ( default/core ): waiting for sFlow data on 0.0.0.0:6343
INFO ( default/kafka ): cache entries=16411 base cache memory=44769208 bytes
sfacctd: kafka Plugin -- Writer [default]: symbol lookup error: sfacctd: kafka Plugin -- Writer [default]: undefined symbol: rd_kafka_conf_set_log_cb
sfacctd: kafka Plugin -- Writer [default]: symbol lookup error: sfacctd: kafka Plugin -- Writer [default]: undefined symbol: rd_kafka_conf_set_log_cb
sfacctd: kafka Plugin -- Writer [default]: symbol lookup error: sfacctd: kafka Plugin -- Writer [default]: undefined symbol: rd_kafka_conf_set_log_cb
@paololucente
Copy link
Member

Dear Kaname-san,

Can you please try compiling from sources latest librdkafka code from GitHub or 0.9.1 / 0.9.2 release from GitHub? I ask because doing any of this i'm unable to reproduce your issue.

Regards,
Paolo

@eurekaeru
Copy link
Author

Dear Paolo-san,

I tried the latest version of librdkafka with the latest pmacct both on Github.
It worked!! Thank you so much.

Thank you for your help. I really appreciate your efforts on this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants