Quantcast

java 8, elasticsearch, and MVEL

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

java 8, elasticsearch, and MVEL

Paul Sanwald-2
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java 8, elasticsearch, and MVEL

Paul Sanwald-2
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java 8, elasticsearch, and MVEL

joergprante@gmail.com
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 <[hidden email]> 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 [hidden email].
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java 8, elasticsearch, and MVEL

kimchy
Administrator
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, [hidden email] 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 <[hidden email]> 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 [hidden email].
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 [hidden email].
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java 8, elasticsearch, and MVEL

Paul Sanwald-2
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, <a href="javascript:" target="_blank" gdf-obfuscated-mailto="2SVOTpq3TV4J" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">joerg...@... 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 <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="2SVOTpq3TV4J" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">pa...@...> 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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="2SVOTpq3TV4J" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">elasticsearc...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com?utm_medium\75email\46utm_source\75footer';return true;" onclick="this.href='https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com?utm_medium\75email\46utm_source\75footer';return true;">https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com.

For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="2SVOTpq3TV4J" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">elasticsearc...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com?utm_medium\75email\46utm_source\75footer';return true;" onclick="this.href='https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com?utm_medium\75email\46utm_source\75footer';return true;">https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java 8, elasticsearch, and MVEL

Tim Uckun
In reply to this post by kimchy
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, <a href="javascript:" target="_blank" gdf-obfuscated-mailto="2SVOTpq3TV4J" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">joerg...@... 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 <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="2SVOTpq3TV4J" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">pa...@...> 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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="2SVOTpq3TV4J" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">elasticsearc...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com?utm_medium\75email\46utm_source\75footer';return true;" onclick="this.href='https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com?utm_medium\75email\46utm_source\75footer';return true;">https://groups.google.com/d/msgid/elasticsearch/d92ffdc0-63b5-440f-86b4-fe055b709858%40googlegroups.com.

For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="2SVOTpq3TV4J" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">elasticsearc...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com?utm_medium\75email\46utm_source\75footer';return true;" onclick="this.href='https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com?utm_medium\75email\46utm_source\75footer';return true;">https://groups.google.com/d/msgid/elasticsearch/CAKdsXoG2S2Oufs1Dm26-nT4QuT17H2zdZY2JWRkFSUpd%2Butomw%40mail.gmail.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java 8, elasticsearch, and MVEL

Bernhard Berger
In reply to this post by kimchy
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java 8, elasticsearch, and MVEL

Alexander Reelsen-2
Hey,

this commits upgrades mvel, that seems to have fixed the java8 issues (still requires more testing on our side though): https://github.com/elasticsearch/elasticsearch/commit/21a36678883c159e50a03b76309d3da2a8e5d7b4

IIRC this bug has also been fixed in the new MVEL version: https://github.com/elasticsearch/elasticsearch/issues/5483


--Alex


On Tue, Apr 15, 2014 at 11:40 AM, Bernhard Berger <[hidden email]> 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 [hidden email].
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.

--
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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java 8, elasticsearch, and MVEL

Paul Sanwald-2
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): <a href="https://github.com/elasticsearch/elasticsearch/commit/21a36678883c159e50a03b76309d3da2a8e5d7b4" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Felasticsearch%2Felasticsearch%2Fcommit%2F21a36678883c159e50a03b76309d3da2a8e5d7b4\46sa\75D\46sntz\0751\46usg\75AFQjCNG4Ms0ZYTGG3wseJ1t_lLkmKTOhtg';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Felasticsearch%2Felasticsearch%2Fcommit%2F21a36678883c159e50a03b76309d3da2a8e5d7b4\46sa\75D\46sntz\0751\46usg\75AFQjCNG4Ms0ZYTGG3wseJ1t_lLkmKTOhtg';return true;">https://github.com/elasticsearch/elasticsearch/commit/21a36678883c159e50a03b76309d3da2a8e5d7b4

IIRC this bug has also been fixed in the new MVEL version: <a href="https://github.com/elasticsearch/elasticsearch/issues/5483" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Felasticsearch%2Felasticsearch%2Fissues%2F5483\46sa\75D\46sntz\0751\46usg\75AFQjCNFsqK4ecsChUS26H7Fr_uBBZpmkTg';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Felasticsearch%2Felasticsearch%2Fissues%2F5483\46sa\75D\46sntz\0751\46usg\75AFQjCNFsqK4ecsChUS26H7Fr_uBBZpmkTg';return true;">https://github.com/elasticsearch/elasticsearch/issues/5483


--Alex


On Tue, Apr 15, 2014 at 11:40 AM, Bernhard Berger <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="DVtf60PkhPcJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">bernhardb...@...> 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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="DVtf60PkhPcJ" onmousedown="this.href='javascript:';return true;" onclick="this.href='javascript:';return true;">elasticsearc...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/elasticsearch/534CFEA8.9060100%40gmail.com?utm_medium=email&amp;utm_source=footer" target="_blank" onmousedown="this.href='https://groups.google.com/d/msgid/elasticsearch/534CFEA8.9060100%40gmail.com?utm_medium\75email\46utm_source\75footer';return true;" onclick="this.href='https://groups.google.com/d/msgid/elasticsearch/534CFEA8.9060100%40gmail.com?utm_medium\75email\46utm_source\75footer';return true;">https://groups.google.com/d/msgid/elasticsearch/534CFEA8.9060100%40gmail.com.

For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" onmousedown="this.href='https://groups.google.com/d/optout';return true;" onclick="this.href='https://groups.google.com/d/optout';return true;">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 [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: java 8, elasticsearch, and MVEL

joergprante@gmail.com
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 <[hidden email]> wrote:
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 [hidden email].
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.
Loading...