Java 8, elasticsearch, and MVEL

I've been testing ES with java 8, and everything is working fantastic, with
the exception of MVEL, which is fairly broken. I've looked on the MVEL
mailing lists, and on github issues, and there's not a lot of activity. I'm
trying to decide if I should just migrate my MVEL scripts to a different
language, which seems like the easiest path. Any thoughts? Have others
moved ES installs to java 8 successfully?

--paul

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a0f5a4a0-3a22-42c4-a4ee-be4b9d7b9734%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

it seems I'm the only one with this problem. perhaps I will migrate our
scripts to javascript. I'll post back to the group with results.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No, you are not the only one. MVEL breaks under Java 8 here. I use Java 8
with ES without scripting right now. For doc boosting, I will need
scripting desperately.

I also want to migrate away from MVEL. My favorite is Nashorn because it is
part of Java 8 JDK, but I'm wrestling with thread safety issues - and my
tests show low performance to my surprise.

So I have tried to implement some other script languages as a plugin with
focus on JSR 223 (dynjs, jav8, luaj) but I'm stuck in the middle of getting
them to run and sorting out what script language implementation give best
performance and smartest resource usage behavior under ES.

Jörg

On Fri, Apr 4, 2014 at 9:11 PM, Paul Sanwald paul@redowlanalytics.comwrote:

it seems I'm the only one with this problem. perhaps I will migrate our
scripts to javascript. I'll post back to the group with results.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

We are planning to address this on Elasticsearch itself. The tricky bit is the fact that we want to have a highly optimized concurrent scripting engine. You can install the Rhino one which should work for now, its pretty fast, and it allows for the type of execution we are after.

We will report back with findings and progress.

On Apr 6, 2014, at 14:29, joergprante@gmail.com wrote:

No, you are not the only one. MVEL breaks under Java 8 here. I use Java 8 with ES without scripting right now. For doc boosting, I will need scripting desperately.

I also want to migrate away from MVEL. My favorite is Nashorn because it is part of Java 8 JDK, but I'm wrestling with thread safety issues - and my tests show low performance to my surprise.

So I have tried to implement some other script languages as a plugin with focus on JSR 223 (dynjs, jav8, luaj) but I'm stuck in the middle of getting them to run and sorting out what script language implementation give best performance and smartest resource usage behavior under ES.

Jörg

On Fri, Apr 4, 2014 at 9:11 PM, Paul Sanwald paul@redowlanalytics.com wrote:
it seems I'm the only one with this problem. perhaps I will migrate our scripts to javascript. I'll post back to the group with results.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4A347467-FEEB-4685-BB57-850D031A808F%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Thanks, Shay. If there's anything I can do to help with the effort, please
do let me know.

On Sunday, April 6, 2014 7:12:39 PM UTC-4, kimchy wrote:

We are planning to address this on Elasticsearch itself. The tricky bit is
the fact that we want to have a highly optimized concurrent scripting
engine. You can install the Rhino one which should work for now, its pretty
fast, and it allows for the type of execution we are after.

We will report back with findings and progress.

On Apr 6, 2014, at 14:29, joerg...@gmail.com <javascript:> wrote:

No, you are not the only one. MVEL breaks under Java 8 here. I use Java 8
with ES without scripting right now. For doc boosting, I will need
scripting desperately.

I also want to migrate away from MVEL. My favorite is Nashorn because it
is part of Java 8 JDK, but I'm wrestling with thread safety issues - and my
tests show low performance to my surprise.

So I have tried to implement some other script languages as a plugin with
focus on JSR 223 (dynjs, jav8, luaj) but I'm stuck in the middle of getting
them to run and sorting out what script language implementation give best
performance and smartest resource usage behavior under ES.

Jörg

On Fri, Apr 4, 2014 at 9:11 PM, Paul Sanwald <pa...@redowlanalytics.com<javascript:>

wrote:

it seems I'm the only one with this problem. perhaps I will migrate our
scripts to javascript. I'll post back to the group with results.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.comhttps://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/54edc661-2525-4ea8-b9e1-f83e733401e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

You should take a look at mirah.

On Monday, April 7, 2014 11:12:39 AM UTC+12, kimchy wrote:

We are planning to address this on Elasticsearch itself. The tricky bit is
the fact that we want to have a highly optimized concurrent scripting
engine. You can install the Rhino one which should work for now, its pretty
fast, and it allows for the type of execution we are after.

We will report back with findings and progress.

On Apr 6, 2014, at 14:29, joerg...@gmail.com <javascript:> wrote:

No, you are not the only one. MVEL breaks under Java 8 here. I use Java 8
with ES without scripting right now. For doc boosting, I will need
scripting desperately.

I also want to migrate away from MVEL. My favorite is Nashorn because it
is part of Java 8 JDK, but I'm wrestling with thread safety issues - and my
tests show low performance to my surprise.

So I have tried to implement some other script languages as a plugin with
focus on JSR 223 (dynjs, jav8, luaj) but I'm stuck in the middle of getting
them to run and sorting out what script language implementation give best
performance and smartest resource usage behavior under ES.

Jörg

On Fri, Apr 4, 2014 at 9:11 PM, Paul Sanwald <pa...@redowlanalytics.com<javascript:>

wrote:

it seems I'm the only one with this problem. perhaps I will migrate our
scripts to javascript. I'll post back to the group with results.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.comhttps://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/76e763bb-5dcc-40b6-a4ed-c08a0659d603%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Is there an open issue so that I can watch the progress for this bug? I
cannot find any issue for this on GitHub.

Am 07.04.2014 01:12, schrieb Shay Banon:

We will report back with findings and progress.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/534CFEA8.9060100%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Hey,

this commits upgrades mvel, that seems to have fixed the java8 issues
(still requires more testing on our side though):

IIRC this bug has also been fixed in the new MVEL version:

--Alex

On Tue, Apr 15, 2014 at 11:40 AM, Bernhard Berger <
bernhardberger3456@gmail.com> wrote:

Is there an open issue so that I can watch the progress for this bug? I
cannot find any issue for this on GitHub.

Am 07.04.2014 01:12, schrieb Shay Banon:

We will report back with findings and progress.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/534CFEA8.9060100%40gmail.comhttps://groups.google.com/d/msgid/elasticsearch/534CFEA8.9060100%40gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGCwEM_afA7BVFCM4jSEwmqTVr%3DJgXhEU0a9PLx%2BzGtpf%3DpYDg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

It's a little hard to tell between the mvel es commit histories and the
github issue.

It looks like this isn't fixed, and isn't going to get fixed in MVEL? Am I
misreading something?

--paul

On Monday, April 21, 2014 8:39:43 AM UTC-4, Alexander Reelsen wrote:

Hey,

this commits upgrades mvel, that seems to have fixed the java8 issues
(still requires more testing on our side though):
Upgrade to mvel 2.2.0.Final · elastic/elasticsearch@21a3667 · GitHub

IIRC this bug has also been fixed in the new MVEL version:
Unexpected mvel update NullPointerException · Issue #5483 · elastic/elasticsearch · GitHub

--Alex

On Tue, Apr 15, 2014 at 11:40 AM, Bernhard Berger <bernhardb...@gmail.com<javascript:>

wrote:

Is there an open issue so that I can watch the progress for this bug? I
cannot find any issue for this on GitHub.

Am 07.04.2014 01:12, schrieb Shay Banon:

We will report back with findings and progress.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/534CFEA8.9060100%40gmail.comhttps://groups.google.com/d/msgid/elasticsearch/534CFEA8.9060100%40gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
Important Notice: The information contained in or attached to this email
message is confidential and proprietary information of RedOwl Analytics,
Inc., and by opening this email or any attachment the recipient agrees to
keep such information strictly confidential and not to use or disclose the
information other than as expressly authorized by RedOwl Analytics, Inc.
If you are not the intended recipient, please be aware that any use,
printing, copying, disclosure, dissemination, or the taking of any act in
reliance on this communication or the information contained herein is
strictly prohibited. If you think that you have received this email message
in error, please delete it and notify the sender.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/e4717341-fc95-4ca0-badf-50b38e6df5d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

MVEL 2.2.0 fixes Java 8 compilation issue
http://jira.codehaus.org/browse/MVEL-299

Jörg

On Fri, May 16, 2014 at 5:45 PM, Paul Sanwald paul@redowlanalytics.comwrote:

It's a little hard to tell between the mvel es commit histories and the
github issue.

It looks like this isn't fixed, and isn't going to get fixed in MVEL? Am I
misreading something?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoETutbGnKOT72psnAsZiUrMNomGyNmtwKLzVrmYcNF1XA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.