Fork me on GitHub
#onyx
<
2015-12-29
>
michaeldrogalis00:12:21

@aaelony: We haven't used Onyx to read data out of S3 in a serious manner. I really cant speak to that. The plugin is defunct for the mean time though

aaelony00:12:16

@michaeldrogalis: okay, thank-you. would that mean that bringing down an s3 file locally then using onyx-seq is the way to go for now?

michaeldrogalis00:12:20

@aaelony: That would work great, yes. simple_smile

aaelony01:12:33

super awesome simple_smile

michaeldrogalis01:12:16

No prob. Let us know if you need anything. 😄

defclass09:12:59

Hello everyone, I am new to using http://onyx.It seems it seems i have misunderstood something , I found if functions which defined in catalog at :onyx/fn key raise any exception , job would stop. Is there one entry can caught all of Exceptions in the job? thanks

defclass09:12:46

@lucasbradstreet: thanks for your help , it seems just can catch the exceptions in the defined workflow. Is there one entry to caught all ?

lucasbradstreet12:12:50

@michael.wong You can use flow condition from :all to whatever task you want to handle your exceptions

defclass12:12:39

thanks , @lucasbradstreet: this remind me : ) and I will try whether it is possible to use from :all to :all

lucasbradstreet12:12:52

Why would you want all to all? There might be something I'm missing

defclass13:12:05

that is this , I figure out that once any of my tasks in a job raise a exception, the job will stop. I wonder this is onyx normal behavior ? And I guess if I can catch every exception at upstream in the job , it would not crash.

lucasbradstreet13:12:36

That is normal onyx behaviour, but flow conditions all to a task or many tasks will allow you to send the segments causing exceptions on to another task. All to all would mean sending all exceptions and corresponding exceptions to all tasks, which wouldn't make much sense.

lucasbradstreet13:12:20

Hmm, what I've said isn't so clear

lucasbradstreet13:12:58

It won't kill the job if you use flow conditions exception handling in all your tasks

defclass13:12:15

comm on scene if raise a exception , I just want to send to me log (eg: send email etc) and ignore,not crash.

defclass13:12:28

if I use flow condition exception handing , I think I have to write handle in every flow.

defclass13:12:07

This why I want handle exception in one place : )

lucasbradstreet13:12:47

That's what flow/from :all is for.

defclass13:12:43

Oh thanks for you great help , I will try in my project : )

lucasbradstreet13:12:55

Then use flow/to :none to send them nowhere :)

defclass13:12:10

thanks for bring us this great project !

genRaiy14:12:14

guys - are there any plans to enable Onyx beyond CLojure?

genRaiy14:12:48

we are looking at hooking together Docker processes and this looks like a very similar problem

lucasbradstreet15:12:06

@raymcdermott: Absolutely. We’re iterating a bit on onyx-java which will provide a more natural interface for Java (and other JVM languages). Internally we support java plugin implementations and function implementations, but we want to make sure the API is right

genRaiy15:12:04

ideally we would like a stackless approach where we can just send data around (via Kafka)

lucasbradstreet15:12:36

@michael.wong: hmm, that might be a bug

genRaiy15:12:36

but great that you are looking at Java … if you also did JS I would pretty much be sold at this point 😉

lucasbradstreet15:12:18

@raymcdermott: ultimately converting some json to clojure data should be pretty easy, so that’s something we will definitely have some libraries around in the future

genRaiy15:12:46

ok, the other aspect is how to call into node.js modules, yes?

defclass15:12:35

@lucasbradstreet: you mean probably bug in my code or in onyx ?

lucasbradstreet15:12:07

Yeah that part is going to be super tricky. It’d be easier to use something like nashorn to evaluate, but I hear there are some issues there too

genRaiy15:12:50

maybe via CLJS?

lucasbradstreet15:12:49

You still need the onyx/fns to evaluate within the context of the distributed environment, which is going to be JVM based for the forseeable future.

michaeldrogalis15:12:51

@raymcdermott: I'm interested in pursuing it earlier than expected if someone wants to help out. It'd be a good foil to AWS Lambda.

michaeldrogalis15:12:03

@michael.wong: That might be an exception in Onyx. I'll take a look in a few minutes.

genRaiy15:12:36

ha - that’s right Michael - that’s the exact model that we were thinking around

genRaiy15:12:48

@michaeldrogalis: where could I start (I also have a few buddies at work who could be willing to join in)

michaeldrogalis15:12:29

@raymcdermott: Let me put a plan together and I'll ping you on Monday. Step 1 is going to be some sort of a design proposal. It'd be great having ya'll helping with this part, I'm out of my league with Javascript engines.

genRaiy15:12:28

ok - we’re not mega deep on the internals but know enough node.js to be dangerous!

michaeldrogalis15:12:03

Excellent. Even something we can just play around with and explore would be a great step.

genRaiy15:12:09

@michaeldrogalis: super… I will let you have some holiday and we can chat again on Monday! It’s a great validation of our thinking to be honest that you quickly brought up AWS Lambda, so I’m sure our thinking is aligned

michaeldrogalis15:12:08

@raymcdermott: I look forward to it. simple_smile Gotta run, have a good Tuesday everyone!

defclass15:12:43

@michaeldrogalis: great ,excellence work : )

defclass15:12:27

good night, everyone

genRaiy19:12:38

@lucasbradstreet: @michaeldrogalis just jumped on the clojurescript channel and one call call node programs from CLJS quite easily, so I guess the ‘problem’ is a provisioning issue for node.js programs?

genRaiy19:12:53

the nodyn project suggests that this can be done on the JVM simple_smile http://nodyn.io

genRaiy19:12:30

oops http://nodyn.io is dead 😞

genRaiy19:12:00

bad idea anyway to host node.js on a JVM - probably just done to prove a point

lucasbradstreet19:12:56

@raymcdermott: off the top there are a number of difficulties. We could probably spin up / manage node processes but we'd likely still need messaging between the JVM and node or some kind of way to use Aeron directly from node

lucasbradstreet19:12:19

With the new C++ Aeron implementation that may be possible to do in the future. It'll likely be way too much work to be feasible for us to work on though. @michaeldrogalis may have other ideas about how this could be done though.

lucasbradstreet19:12:19

Nashorn JS functions are probably the easiest short term bet but compatibility with node may be a bit hit and miss.

genRaiy19:12:03

I didn’t realise that you had such a strong dependency on Aeron

genRaiy19:12:41

ok, let’s see if Michael has some other ideas as you say

michaeldrogalis19:12:18

@lucasbradstreet: I dont want to go so far as reimplementing Onyx in JavaScript. In that respect, there will always be a JVM in the equation.

michaeldrogalis19:12:19

It would be enough, in my mind, to be able to call JS functions where we currently either call Clj or Java functions. Coupling that with first class lifecycles and plugins would do the trick. Not to say that that's easy, but it's about as far as I think we should take it.

genRaiy19:12:02

@michaeldrogalis: @lucasbradstreet would be nice to understand what the functions need to support in terms of in / out params and error handling

michaeldrogalis19:12:37

Yeah, this is where more planning is needed. I can't name everything off the top of my head. Ideally, you'd be able to write everything you could in Clojure but in JavaScript, and still rely on the Onyx Clojure implementation to do all the heavy lifting. So I guess that's the goal.

lucasbradstreet19:12:17

I agree with all of this. Re-implementation is definitely not a priority. In practice I think this approach limits us to Nashorn, but if anyone has ideas later I’m all ears

michaeldrogalis19:12:09

Yeah, I was wondering if that's the case. This is where my JS knowledge runneth dry.