Discussion:
Issue with elasticsearch bundles
smanish
2017-08-02 06:26:35 UTC
Permalink
Following two bundle are there to work with elasticsearch 5.x database.But
both bundle seems not usable due to following issue.

1 . Elasticsearch-Bundle
http://mvnrepository.com/artifact/org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch/5.4.3_1

2. Elasticsearch-Client Bundle
https://mvnrepository.com/artifact/org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch-client/5.4.3_1

In order to work with elasticsearch 5 you need TransportClient as mentioned
in
https://www.elastic.co/guide/en/elasticsearch/client/java-api/5.5/transport-client.html
which is available in Elasticsearch bundle

To get the TransportClient for first step you need to use
PreBuiltTransportClient which is available in Elasticsearch-Client bundle.

Now the problem is that Elasticsearch-Client which is expected to return
TransportClient does not have it and also not importing it and gives class
not found exception " Caused by: java.lang.ClassNotFoundException:
org.elasticsearch.client.transport.TransportClient not found by
org.apache.servicemix.bundles.elasticsearch-client [127]"

So the question is how it is expected to work?




--
View this message in context: http://servicemix.396122.n5.nabble.com/Issue-with-elasticsearch-bundles-tp5724767.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Jean-Baptiste Onofré
2017-08-02 06:32:47 UTC
Permalink
Hi,

I gonna fix that: the elasticsearch-client bundle should wrap the transport
package (at least private).

Did you already create a Jira about that ?

Regards
JB
Post by smanish
Following two bundle are there to work with elasticsearch 5.x database.But
both bundle seems not usable due to following issue.
1 . Elasticsearch-Bundle
http://mvnrepository.com/artifact/org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch/5.4.3_1
2. Elasticsearch-Client Bundle
https://mvnrepository.com/artifact/org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch-client/5.4.3_1
In order to work with elasticsearch 5 you need TransportClient as mentioned
in
https://www.elastic.co/guide/en/elasticsearch/client/java-api/5.5/transport-client.html
which is available in Elasticsearch bundle
To get the TransportClient for first step you need to use
PreBuiltTransportClient which is available in Elasticsearch-Client bundle.
Now the problem is that Elasticsearch-Client which is expected to return
TransportClient does not have it and also not importing it and gives class
org.elasticsearch.client.transport.TransportClient not found by
org.apache.servicemix.bundles.elasticsearch-client [127]"
So the question is how it is expected to work?
--
View this message in context: http://servicemix.396122.n5.nabble.com/Issue-with-elasticsearch-bundles-tp5724767.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
***@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
smanish
2017-08-02 10:33:27 UTC
Permalink
Let me know once that get fixed.
I have not reported any jira issue for that. BTW where can I do that?



--
View this message in context: http://servicemix.396122.n5.nabble.com/Issue-with-elasticsearch-bundles-tp5724767p5724769.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Jean-Baptiste Onofré
2017-08-02 12:35:16 UTC
Permalink
Hi,

I created:

https://issues.apache.org/jira/browse/SM-3454

to track this. Stay tuned to know when I will have fixed that.

Thanks !

Regards
JB
Post by smanish
Let me know once that get fixed.
I have not reported any jira issue for that. BTW where can I do that?
--
View this message in context: http://servicemix.396122.n5.nabble.com/Issue-with-elasticsearch-bundles-tp5724767p5724769.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
***@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Loading...