Cascading support for groovy

11 views
Skip to first unread message

chaitanya ekre

unread,
Sep 15, 2017, 1:37:08 AM9/15/17
to cascading-user
Hi,
I wish to know that if groovy is supported by cascading API. I want to evaluate expressions using groovy script engine, but dont know whether cascading has inbuilt support for groovy.
Thanks in advance.

- Chaitanya

Chris K Wensel

unread,
Sep 15, 2017, 11:04:40 AM9/15/17
to cascadi...@googlegroups.com
Sorry, Cascading doesn’t ship with a Groovy operation evaluator, but it wouldn’t be hard to build one.

You can use Groovy (Jython etc) to assemble Cascading flows out of the box, but it won’t execute groovy code cluster side. this is useful if you want to remove the compile phase when launching adhoc flows.

Cascading does ship with a set of Java expression evaluator operations that can take a single java line or a whole block of code. See the user-guide. This relies on the Janino expression evaluator.

If your Hadoop cluster runs Java 8, it also shouldn't be too difficult to add support for Lambdas as operations. This is something that will likely be added to Cascading 4 at some point.

ckw

--
You received this message because you are subscribed to the Google Groups "cascading-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cascading-use...@googlegroups.com.
To post to this group, send email to cascadi...@googlegroups.com.
Visit this group at https://groups.google.com/group/cascading-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/cascading-user/18a558fd-65d4-4749-a7d4-85509802ce6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Reply all
Reply to author
Forward
0 new messages