edenhill / kcat

Generic command line non-JVM Apache Kafka producer and consumer
Other
5.46k stars 484 forks source link

JSON, Avro and Schema Registry support for Windows solution #304

Open whatsupbros opened 3 years ago

whatsupbros commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

Possible duplicate for #297

62mkv commented 2 years ago

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)
DefinitelyNotANugget commented 2 years ago

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 ?

jeffkni commented 10 months ago

+1 for

This build of kcat lacks Avro/Schema-Registry support