onyx

FYI: alternative Onyx :onyx: chat is at <https://gitter.im/onyx-platform/onyx> ; log can be found at <https://clojurians-log.clojureverse.org/onyx/index.html>
sreekanth 2018-01-10T12:25:11.000059Z

i’m trying upgrade to onyx-0.12.x, getting this exception when trying to read from kafka using kafka plugin. scala.collection.immutable.Map$Map1 cannot be cast to scala.collection.Seq Caught exception inside task lifecycle :lifecycle/initializing. Rebooting the task. -> Exception type: java.lang.ClassCastException. Exception message: scala.collection.immutable.Map$Map1 cannot be cast to scala.collection.Seq Any help?

gklijs 2018-01-10T12:39:29.000100Z

Coming from someone who has experience with kafka, but none with onyx yet, is it possible the kafka client has a higher version then the broker/server?

2018-01-10T12:52:51.000155Z

kafka breaking changes is notorious inded

jasonbell 2018-01-10T14:14:24.000072Z

@sreekanth What Kafka version are you using and what’s the Kafka plugin version?

jasonbell 2018-01-10T14:14:56.000262Z

I’ve not done any updating since 0.10 so I’d need to spend some time having a look. Need to get up to speed on the newer versions.

sreekanth 2018-01-10T14:15:22.000225Z

@jasonbell 0.11.0.1

sreekanth 2018-01-10T14:15:52.000592Z

[org.apache.kafka/kafka_2.11 “0.10.1.1”]

jasonbell 2018-01-10T14:18:40.000034Z

And the Onyx Kafka plugin version?

sreekanth 2018-01-10T14:20:18.000033Z

[org.onyxplatform/onyx-kafka "0.12.2.0"]

sreekanth 2018-01-10T14:20:42.000069Z

before was using 0.10.beta-x

jasonbell 2018-01-10T14:38:42.000345Z

I’ll try and find some time and have a play later on. Nothing springs to mind apart from agreeing with @gklijs and @lmergen

sreekanth 2018-01-10T14:40:31.000426Z

thanks @jasonbell

gklijs 2018-01-10T14:44:21.000266Z

I’ll be starting to prepare some hands-on tonight (CET), using latest server, and the kafka endpoint. Hoping it ‘just works’ but if not I’ll let it know here.

michaeldrogalis 2018-01-10T16:01:48.000368Z

@sreekanth Onyx-kafka is using [org.apache.kafka/kafka_2.11 "0.11.0.0"]

danielcompton 2018-01-10T20:06:09.000228Z

Is there a way with metamorphic to set a match to a prior event? I'm parsing an event stream or re-frame actions, and I know that a match has finished when an event happens, but I actually want the end of the match to be the event one-prior

danielcompton 2018-01-10T20:06:27.000506Z

Kind of a look-back and say "Oh, know I know what I know here, the match actually finished back there"

danielcompton 2018-01-10T20:06:43.000089Z

I'm guessing it's not possible to do this efficiently

michaeldrogalis 2018-01-10T20:12:58.000645Z

@danielcompton Can you simply axe off the last event from the returned match?

danielcompton 2018-01-10T20:13:32.000673Z

That was my plan, but I need to then grab the n-1 and add that to the match

danielcompton 2018-01-10T20:14:08.000577Z

I think I know what the event preceding the finish would be, so I could optionally match on that, but I don't know if I've covered all of the edge cases

danielcompton 2018-01-10T20:14:54.000178Z

That's probably the best option, and having a fixup path if I don't have id=n-1 and id=n as the last two events in a match

michaeldrogalis 2018-01-10T20:22:35.000332Z

It's a tricky problem domain. I don't think the algorithm can express what you're asking it to directly because it needs to keep all of the events in its tracking path linked together.

danielcompton 2018-01-10T20:30:24.000625Z

Yeah, I think the real answer is to figure out what the preceding events could be. My use for metamorphic is more for slicing an event stream, rather than parsing it

2018-01-10T20:35:58.000107Z

does anyone know if there is an easy way to see consumer offsets via 0.9.x onyx?

2018-01-10T20:44:08.000424Z

^ sorry, kafka consumer offsets. we're having a bit of trouble gauging whether we are keeping pace or not

danielcompton 2018-01-10T20:50:24.000117Z

Also on metamorphic, what is the cost of getting the history in an event match influenced by? Is it number of events that were matched, or in-flight matches, or number of total events?

danielcompton 2018-01-10T20:50:52.000185Z

I need to look back at history to detect the start of a match, and am just trying to figure out how big a deal derefing history is

danielcompton 2018-01-10T20:51:25.000784Z

Not that it hugely matters cause it's a dev tool operating on 100's to 1,000's of traces, but good to know what influences that cost

michaeldrogalis 2018-01-10T20:57:14.000218Z

@djjolicoeur It's stored in ZooKeeper for <= 0.9

michaeldrogalis 2018-01-10T20:58:22.000529Z

@danielcompton Number of actual matched events.

🙏 1
2018-01-10T20:58:32.000570Z

do you happen to know where in ZK. we've been poking around trying to find it with no luck

michaeldrogalis 2018-01-10T20:58:38.000133Z

It discards non-matches immediately

danielcompton 2018-01-10T20:59:10.000181Z

Great, thanks!

sreekanth 2018-01-10T21:00:02.000480Z

it did work after changing to 0.11.0.0. thanks @michaeldrogalis

2018-01-10T21:02:39.000739Z

damnnit. I looked right past it. thanks appreciate it.

michaeldrogalis 2018-01-10T21:06:20.000433Z

Np