Fork me on GitHub
#jackdaw
<
2019-06-07
>
dangercoder07:06:08

There seems to be a breaking change from io.confluent

[io.confluent/kafka-schema-registry-client "5.1.2"
                  :exclusions [com.fasterxml.jackson.core/jackson-databind]]
                 [io.confluent/kafka-avro-serializer "5.1.2"]
is invalid in jackdaws project.clj since 5.1.2 does not exist on maven central anymore? I can't install Jackdaw anymore.

dangercoder07:06:58

Looks like they decided to change the version number to "3.3.1"

cddr07:06:18

wtf?! that would be a new and fun way of breaking users' applications. Looking into it. How did you determine 5.1.2 had changed to 3.3.1?

cddr07:06:29

I think it can't be deliberate. The docs still reference 5.1.2

dangercoder07:06:38

I looked at maven central

cddr07:06:28

I wonder how that is populated. curl > /tmp/kafka-schema-registry-client-5.1.2.jar seems to work fine.

dangercoder07:06:43

Hmm. wierd, I got Error building classpath. Could not find artifact io.confluent:kafka-schema-registry-client:jar:5.1.2 in central () when trying to fetch jackdaw with deps.edn

cddr07:06:02

Do you have their repo in your project.clj? :repositories [["confluent" {:url ""}]]

cddr07:06:36

Ah sorry, you're using deps

cddr07:06:56

I think deps has it's own way of doing this.

cddr07:06:22

:mvn/repos
 {"confluent" {:url ""}}

dangercoder07:06:03

Ah, very sorry if I gave you an heart attack. False alarm 😣

dangercoder07:06:16

(Playing around with deps.edn for the first time.)

dharrigan07:06:33

Yes, I use deps, you have to put the confluent repo in 😉

dangercoder08:06:33

I figured something out. If I want to see some nice examples of using jackdaw I can always look at the tests 😁

dangercoder08:06:42

Has anyone gotten headers working in the produce! function? in the test-code there's an empty map as headers but if I pass in a non-empty map I get exceptions.

dangercoder08:06:01

class clojure.lang.MapEntry cannot be cast to class org.apache.kafka.common.header.Header

dangercoder09:06:49

I found a solution