Open gastonmuijtjens opened 12 months ago
@jainharsh98 Can you please take a look?
@jainharsh98 / @lpapudippu Can you help with this?
Any update on this on how to solve the issue?
This has been a problem for so long. To work around it, everyone in my team installed librdkafka from brew into /usr/local/Cellar/librdkafka Then copy the files over to /usr/local/lib where the Azure function is looking for these files
Now why is this librdkafka not included in the dependency for KafkaTrigger? Also the set up is confusing, there is the extensionBundle, there is the azure function core tools plugin, and the maven plugin, hard to tell what does what and which is responsible to load librdkafka
When running an out-of-process isolated Azure Function v4 in .NET 6.0 using a Kafka Trigger (
Microsoft.Azure.Functions.Worker.Extensions.Kafka
) on macOS ARM64 (M1/M2/M3) the following error is encountered on startup:It looks like the native
librdkafka
binaries are not copied to the build output folder (i.e.bin/Debug/net6.0
) on macOS ARM64.To workaround this issue:
librdkafka
manually, for instance with Homebrew:brew install librdkafka
/opt/homebrew/Cellar/librdkafka/<version_number>/lib
to the build output folder of the Function project (bin/Debug/net6.0
):librdkafka-static.a
librdkafka.1.dylib
librdkafka.a
librdkafka.dylib
librdkafka++.1.dylib
librdkafka++.a
librdkafka++.dylib
Note that you have to follow the above steps again if you rebuild the Function project.
See also
OS Information
dotnet-isolated
)