kcat icon indicating copy to clipboard operation
kcat copied to clipboard

JSON, Avro and Schema Registry support for Windows solution

Open whatsupbros opened this issue 3 years ago • 5 comments

I built the project from win32 directory using the official instruction, and got the application of only version 1.4.0:

C:\kafkacat\kafkacat-1.6.0\win32\x64\Debug>kafkacat.exe -V
kafkacat - Apache Kafka producer and consumer tool
https://github.com/edenhill/kafkacat
Copyright (c) 2014-2019, Magnus Edenhill
Version 1.4.0 (Transactions, librdkafka 1.5.0 builtin.features=gzip,snappy,ssl,sasl,regex,lz4,sasl_gssapi,sasl_plain,sasl_scram,plugins,zstd,sasl_oauthbearer)

Windows users lack support for Avro and Schema Registry now, is it possible to update the windows project?

Alternatively, it would be nice to have just a maintained CMake project, so that kafkacat is buildable on all platforms supported by CMake

whatsupbros avatar Mar 07 '21 11:03 whatsupbros

I got that I had to manually specify version 1.6.0 in win32\win32_config.h file.

After re-build:

C:\kafkacat\kafkacat-1.6.0\win32\x64\Debug>kafkacat.exe -V
kafkacat - Apache Kafka producer and consumer tool
https://github.com/edenhill/kafkacat
Copyright (c) 2014-2019, Magnus Edenhill
Version 1.6.0 (Transactions, librdkafka 1.5.0 builtin.features=gzip,snappy,ssl,sasl,regex,lz4,sasl_gssapi,sasl_plain,sasl_scram,plugins,zstd,sasl_oauthbearer)

However, this build still lacks support of JSON, Avro and Schema Registry (I will re-focus this issue then on this aspect). How to instruct the build tools to include support of those for Windows?

whatsupbros avatar Mar 07 '21 23:03 whatsupbros

Possible duplicate for #297

whatsupbros avatar Mar 07 '21 23:03 whatsupbros

I've tried to run kcat on Windows with -s value=avro option and it says:

% ERROR: This build of kcat lacks Avro/Schema-Registry support

should I have built it differently? are there any plans to support Avro/Schema-Registry on Windows?

UPD: -V output:

kcat - Apache Kafka producer and consumer tool
https://github.com/edenhill/kcat
Copyright (c) 2014-2021, Magnus Edenhill
Version 1.7.1 (Transactions, IncrementalAssign, librdkafka 1.8.2 builtin.features=gzip,snappy,ssl,sasl,regex,lz4,sasl_gssapi,sasl_plain,sasl_scram,plugins,zstd,sasl_oauthbearer)

62mkv avatar Feb 07 '22 10:02 62mkv

Hello,

I've been trying to build kcat with the yajl library on Windows in order to be able to use the "-J" command.

Looking at this thread, it seems like it is just not possible at all for now. Am I right ?

DefinitelyNotANugget avatar Oct 21 '22 15:10 DefinitelyNotANugget

+1 for

This build of kcat lacks Avro/Schema-Registry support

jeffkni avatar Feb 02 '24 01:02 jeffkni