This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-08-03
Channels
- # announcements (5)
- # babashka (7)
- # beginners (119)
- # biff (4)
- # cider (7)
- # clj-kondo (26)
- # cljfx (3)
- # cljs-dev (2)
- # clojure (28)
- # clojure-austin (18)
- # clojure-europe (9)
- # clojure-france (6)
- # clojure-norway (4)
- # clojure-uk (3)
- # clojurescript (6)
- # community-development (1)
- # core-async (4)
- # cursive (9)
- # data-science (12)
- # datomic (13)
- # duct (18)
- # emacs (15)
- # etaoin (5)
- # events (13)
- # honeysql (46)
- # hyperfiddle (9)
- # jackdaw (5)
- # jobs (13)
- # keechma (4)
- # lsp (37)
- # malli (32)
- # nbb (14)
- # off-topic (10)
- # other-languages (2)
- # polylith (4)
- # programming-beginners (3)
- # reagent (27)
- # reitit (1)
- # shadow-cljs (32)
- # sql (11)
- # tools-build (5)
- # tools-deps (3)
- # vim (14)
- # xtdb (11)
Hey folks I’m looking to change my kafka streams application to use a custom partitioner on the https://kafka.apache.org/21/javadoc/org/apache/kafka/streams/kstream/KStream.html#to-java.lang.String-org.apache.kafka.streams.kstream.Produced- method of my topology. When I try and implement this using jackdaw I get this error
Uncaught exception, not in assertion
error: clojure.lang.ArityException: Wrong number of args (3) passed to: jackdaw.streams/to
Currently the jackdaw.streams/to
doesn’t accept a https://kafka.apache.org/23/javadoc/index.html?org/apache/kafka/streams/kstream/Produced.html interface. I’ve tried to do some java interop but because Jackdaw refactors the methods into functions I end up with the wrong args passed in this way as well. Is there a way of blending java interop with a jackdaw topology to get around this?Unfortunately the API docs seem to have been broken for a while, I’m not sure if there would be some answers there https://cljdoc.org/builds/60148
This project seems rather quiet these days alas
I’m using an older version of Jackdaw 0.7.6 and have found the kstream*
fn which does return the underlying object https://cljdoc.org/d/fundingcircle/jackdaw/0.7.6/api/jackdaw.streams#kstream*
Ah good spot, that sounds promising