[ 
https://issues.apache.org/jira/browse/PIO-49?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15876710#comment-15876710
 ] 

ASF GitHub Bot commented on PIO-49:
-----------------------------------

Github user pferrel commented on the issue:

    https://github.com/apache/incubator-predictionio/pull/336
  
    This may be ok to stage to the feature/es5 branch but IMO should not be 
merged with master for release yet.
    
    The technique of linking and creating an assembly with both es1 and es5 is 
IMO not ideal. The reasoning is that ES refactored es-hadoop-mr and es-spark at 
some time between the 2 so if you pull them into a Template (the UR does this) 
you get duplicate classes. It is not clear yet how to solve this but it is 
highly unlikely that if we had 2 PIO build profiles, one for ES1 and one for 
ES5 as well as 2 for any template using the ES Spark integration, this would go 
away and would be cleaner.
    
    Another reason to do this is that the pio-env.sh would be simplified to 
only configure ELASTICSEARCH, not different named stores. 
    
    Most of this is fine and though it would require a non-trivial change to 
the UR, I think this is doable and would commit to supporting it if the above 
issues can be solved. So to summarize I suggest we:
    
    1) create the equivalent of a Maven build profile for ES5 and leave the 
default ES1 for now with a warning that ES5 will be the default in some future 
release.
    2) leave pio-env.sh with only the ES config for whatever version is 
installed with the name ELASTICSEARCH. If the scheme needs to be there for both 
that's ok with me.
    
    This will make any Template that uses ES directly just work with ES1 and 
the default build and it will leave the Template work to move to ES5 using the 
new build profile for PIO with ES5.
    
    If this pushes the ES5 build profile to 0.12.0, I personally am ok with 
that. I it delay 0.11.0 I'm also ok with that.


> Add support for Elasticsearch 5.x
> ---------------------------------
>
>                 Key: PIO-49
>                 URL: https://issues.apache.org/jira/browse/PIO-49
>             Project: PredictionIO
>          Issue Type: Improvement
>            Reporter: Shinsuke Sugaya
>
> We work on meta/event storage support for Elasticsearch 5.x.
> Although Elasticsearch 2.x does not allow dots in field names,
> Elasticsearch 5.x supports it. So, it's better to upgrade to ES 5.x release.
> Since ES 5.x provides Java Rest API client, we replaced
> Transport communication with HTTP one. Therefore, our fix
> uses HTTP(9200 port) only.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to