-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ZEPPELIN-1618] [WIP] Support ElasticSearch 5.0 #1598
Conversation
16ae06b
to
73375b9
Compare
Ref - https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_50_java_api_changes.html
2 APIs make little difficult to finish this PR. They are incompatible at all :( But 2.x is broadly used at this point, I think we have to support 2.x in zeppelin 0.7 at least public boolean isFound() { ... }
// should be
RestStatus.NOT_FOUND != response.status())
public WriteRequestBuilder setRefresh(true) { ... }
// should be
setRefreshPolicy(WriteRequest.RefreshPolicy.IMMEDIATE)
Caused by: java.lang.ClassNotFoundException: org.apache.logging.log4j.Logger
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 25 more
|
2+ Solutions. 1. Use just reflection
2. Create
|
4f7031e
to
9585b56
Compare
9585b56
to
260fb6b
Compare
Blocked until 5.1 release due to too many undocumented breaking changes |
I have just one comment: it's about some duplicate lines of codes. I think some lines that we can find in both ElasticSearchXConnectors could be put in the base class, in order to keep only the specific part ES v2 and V5 in the sub-classes. An example is the method |
@bbonnin Thanks for the quick review :) 1. Duplicated code in
|
@1ambda were you still working through this one? I was going to give it a test run if this is something that might be getting in. Noticed it hasn't been updated with master in a while, so just wanted to check to see if it might be worthwhile to give it a try. Thanks! |
@stevenmccord Hi :) I am trying to fix other urgent issue. So it's ok to close this PR if you want to implement. |
Is it live? Does zeppelin support elasricsearch 5.0 ??? |
\cc @1ambda |
@jaspinderdineout Hi :) Zeppelin doesn't support es 5.0 currently as i know. |
@1ambda recently elastico deprecated http and requires https now, is there any plan to upgraded this connector? |
What is this PR for?
ElasticSearch was released in Oct 26 and It requires 5.x client driver but zeppelin currently use 2.x only.
What type of PR is it?
Improvement
Todos
elasticsearch.version
to 2.4.x (the most recent for 2.x)What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-1618
How should this be tested?
Some tests will be included.
mvn clean test -pl 'elasticsearch' -Pelasticsearch-2
mvn clean test -pl 'elasticsearch' -Pelasticsearch-5
Screenshots (if appropriate)
Questions: