This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-08
Channels
- # architecture (8)
- # boot (18)
- # cider (33)
- # cljs-dev (35)
- # cljsrn (3)
- # clojure (77)
- # clojure-dev (6)
- # clojure-dusseldorf (1)
- # clojure-russia (1)
- # clojure-spec (4)
- # clojurescript (40)
- # cryogen (1)
- # cursive (4)
- # dirac (2)
- # emacs (1)
- # figwheel (10)
- # funcool (2)
- # hoplon (21)
- # incanter (2)
- # leiningen (1)
- # lumo (44)
- # off-topic (2)
- # onyx (53)
- # overtone (5)
- # pedestal (8)
- # re-frame (9)
- # reagent (37)
- # rum (9)
- # spacemacs (16)
- # sql (2)
- # testing (1)
- # unrepl (4)
- # untangled (4)
- # yada (16)
Can kubernetes and mesos+marathon work together in some way? In the docs you recommend both so I wonder if I'm missing something.
hey, i know this is actually off-topic for this channel, but since there’s a big overlap, i’m asking the question in here anyway if that’s okay
so, i downloaded the onyx-commander-example and everything seems to be working fine — tests pass, so my setup works
i saw that the project was using gregor, so i decided to try that out myself… but i’m getting completely weird errors with this code:
(ns kafka-test
(:require [gregor.core :as g]))
(def kafka-zookeeper "127.0.0.1:2181")
(println "topics = " (pr-str (g/topics {:connection-string kafka-zookeeper})))
(g/create-topic {:connection-string kafka-zookeeper} "foobar-wombat" {})
@yonatanel Kubernetes can run on Mesos, however last time I checked the Kubernetes-Mesos version was pretty far behind upstream Kubernetes. Onyx can run on both platforms.
@lmergen hmm what kind of errors?
baiscally, the create-topic
is breaking over some SINGLETON field not being recognized: https://glot.io/snippets/eoqy6ebx6d
Can you provide a gist of the error?
Make sure your Kafka client and server versions match, I've seen some pretty ambiguous errors when they don't match.
Looks like the latest Gregor is running 0.10.0.1
perhaps my library include order is not the same, causing some different versions to be chosen… hmz
Sorry mobile right now, the above was a typo heh. Gregor is on [org.apache.kafka/kafka_2.11 "0.10.1.1"]
perhaps i should just be using franzy, since that seems to be working for onyx-kafka
…
Are you using the docker compose from the Onyx-commander repo?
Yea hmm, it's very odd that the tests pass in Onyx-commander but not for you locally.
I can try and reproduce this error if you can publish a minimal failing case.
ERROR in (end-to-end-test) (MarkerFactory.java:52)
Uncaught exception, not in assertion.
expected: nil
actual: java.lang.NoSuchFieldError: SINGLETON
at org.slf4j.MarkerFactory.<clinit> (MarkerFactory.java:52)
org.apache.log4j.Category.<clinit> (Category.java:53)
org.I0Itec.zkclient.ZkConnection.<clinit> (ZkConnection.java:40)
franzy.admin.zookeeper.client$make_zk_connection.invokeStatic (client.clj:11)
franzy.admin.zookeeper.client$make_zk_connection.invoke (client.clj:8)
franzy.admin.zookeeper.client$make_zk_utils.invokeStatic (client.clj:29)
franzy.admin.zookeeper.client$make_zk_utils.invoke (client.clj:25)
@gardnervickers thanks for your support! 😉
Huh that's incredibly strange. Welp glad to hear you're sorted now
fwiw, i always include these libraries in my projects when using timbre:
[com.taoensso/timbre "4.8.0"]
[com.fzakaria/slf4j-timbre "0.3.2"]
[org.slf4j/log4j-over-slf4j "1.7.21"]
[org.slf4j/jul-to-slf4j "1.7.21"]
[org.slf4j/jcl-over-slf4j "1.7.21"]
i believe they do some funky things, like monkey patching log4j functions or something@lmergen Only here for a sec, then I gotta run. Only reason I used Gregor here was to make it easier for the direct audience of that example. 99% of the time I use the Kafka bindings directly now to avoid indirect version mismatches. Which, as you’ve found, is super annoying.
@lmergen my guess is it was an issue with SLF4j versioning.
yes, it’s probably something like that. well, another afternoon ruined, another lesson learned 🙂
This can likely be resolved with the right :exclusions