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>
kenny 2017-11-28T03:43:48.000145Z

I think the docs on onyx-kafka should mention which keys are required. I just ran into a NPE due to not having set :onyx/n-peers or :onyx/max-peers caused by https://github.com/onyx-platform/onyx-kafka/blob/86f422389d32d9feb526355954ec4ffa08638df5/src/onyx/plugin/kafka.clj#L80. It would've been helpful to have known I need to specify one of those.

lucasbradstreet 2017-11-28T03:49:17.000066Z

@kenny thanks. Could you please open an issue? That should have been detected much earlier.

kenny 2017-11-28T03:49:27.000084Z

Sure

lucasbradstreet 2017-11-28T03:51:22.000081Z

Thanks. I think we assumed a max is enforced by the onyx schema, but that’s not true.

lucasbradstreet 2017-11-28T03:52:03.000152Z

Either way, it should never NPE

kenny 2017-11-28T03:52:25.000157Z

Agreed 🙂

kenny 2017-11-28T20:47:26.000452Z

When using the Kafka output task, do you guys usually attach an :onyx/fn to transform your segment into the format :onyx.plugin.kafka/write-messages expects?

lucasbradstreet 2017-11-28T20:49:34.000598Z

It depends on whether data comes from multiple tasks. If so you may need to do it on the previous tasks, as the format may differ.

kenny 2017-11-28T20:50:35.000157Z

Not sure what you mean. I assume you mean the format of my segment?

lucasbradstreet 2017-11-28T20:51:02.000540Z

Yeah.

lucasbradstreet 2017-11-28T20:51:29.000091Z

Main point is you can do it on either the writer task or the previous task. Which is best depends on your job.

lucasbradstreet 2017-11-28T20:51:42.000498Z

I’d prefer to put it closer to the output task in general though.

kenny 2017-11-28T20:51:55.000140Z

Right, makes sense. Thanks!