azure-functions-kafka-extension icon indicating copy to clipboard operation
azure-functions-kafka-extension copied to clipboard

manual installation of kafka extension failed

Open nachoge opened this issue 4 years ago • 6 comments

Hi, I'm following your docs on how to install the kafka extension but nothing happends...

following: https://github.com/Azure/azure-functions-kafka-extension/tree/master/samples

I'm working with centos 8 anf java 11 right now having installed azure-cli-2.16.0-1.el7.x86_64 dotnet-sdk-5.0-5.0.100_rc.2.20479.15-1.x86_64 dotnet-runtime-5.0-5.0.0-0.8.0201202git337413b.el8_3.x86_64 dotnet-host-5.0.0-0.8.0201202git337413b.el8_3.x86_64 dotnet-runtime-deps-5.0-5.0.0-0.1.rc.2.20475.5.x86_64 dotnet-targeting-pack-5.0-5.0.0-0.1.rc.2.20475.5.x86_64 dotnet-hostfxr-5.0-5.0.0-0.8.0201202git337413b.el8_3.x86_64 dotnet-apphost-pack-5.0-5.0.0-0.1.rc.2.20475.5.x86_64

aspnetcore-runtime-5.0-5.0.0-0.8.0201202git337413b.el8_3.x86_64 aspnetcore-targeting-pack-5.0-5.0.0-0.1.rc.2.20475.17.x86_64

when I issue this command: func extensions install --package Microsoft.Azure.WebJobs.Extensions.Kafka --version 3.2.1

this is the output No action performed. Extension bundle is configured in /home/igarcia....../host.json

the host.json remains the same { "version": "2.0", "extensionBundle": { "id": "Microsoft.Azure.Functions.ExtensionBundle", "version": "[1.*, 2.0.0)" } }

and no librdkafka exists

any help appreciate

thanks

nachoge avatar Dec 22 '20 14:12 nachoge

Hello @nachoge Could you try to remove "extensionBundle" part? then try func install again? Kafka extension is not included by the extension bundle.

This is an example (this is for Debian/Ubuntu based, however, you can refer the host.json.

Readme

https://github.com/Azure/azure-functions-kafka-extension/tree/dev/samples/java

host.json

https://github.com/Azure/azure-functions-kafka-extension/blob/dev/samples/java/local/host.json

TsuyoshiUshio avatar Dec 22 '20 21:12 TsuyoshiUshio

Hi, I've also tried it and a error message happend

host.json { "version": "2.0" }

result

Could not execute because the application was not found or a compatible .NET SDK is not installed. Could not execute because the application was not found or a compatible .NET SDK is not installed.

Possible reasons for this include: Possible reasons for this include:

  • You intended to execute a .NET program:
  • You intended to execute a .NET program: The application 'add' does not exist. The application 'build' does not exist.
  • You intended to execute a .NET SDK command:
  • You intended to execute a .NET SDK command: It was not possible to find any installed .NET SDKs. It was not possible to find any installed .NET SDKs. Install a .NET SDK from: Install a .NET SDK from: https://aka.ms/dotnet-download https://aka.ms/dotnet-download

and same with host.json {}

nachoge avatar Dec 24 '20 11:12 nachoge

Hi @nachoge You look using .net 5 sdk. However, Azure Functions doesn't support it (currently). Could you try 3.1 instead? Also you can refer the Dockerfile (for Debian) in case you've got other errors.

These Dockerfile might be a good example.

  • java11-appservice.Dockerfile
  • java11-core-tools.Dockerfile

https://github.com/Azure/azure-functions-docker/tree/master/host/3.0/buster/amd64/java/java11

TsuyoshiUshio avatar Jan 04 '21 17:01 TsuyoshiUshio

Hi @TsuyoshiUshio,

Thanks I will give you a feedback as soon as possible!

nachoge avatar Jan 04 '21 17:01 nachoge

@TsuyoshiUshio Is .NET 5 supported by this library now since AF support it? Is there a sample?

smitty-codes avatar Nov 24 '21 01:11 smitty-codes

Yeah. Looks so. https://github.com/Azure/azure-functions-dotnet-worker/blob/main/samples/Extensions/Kafka/KafkaFunction.cs

TsuyoshiUshio avatar Nov 24 '21 05:11 TsuyoshiUshio

Looks like this issue is more related to .Net version support so closing this issue for now as Az Func doesn't support .Net5 version

shrohilla avatar Dec 14 '22 04:12 shrohilla