You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by smanish <ma...@brodos.net> on 2017/08/02 06:17:39 UTC

Issue with camel-elasticsearch5 component

It is about camel-elasticsearch5 component.
https://github.com/apache/camel/blob/master/platforms/karaf/features/src/main/resources/features.xml#L566-L580

That basically use following bundles.
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://camel.465427.n5.nabble.com/Issue-with-camel-elasticsearch5-component-tp5809063.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Issue with camel-elasticsearch5 component

Posted by Andrea Cosentino <an...@yahoo.com.INVALID>.
Here is the JIRA in SM
https://issues.apache.org/jira/browse/SM-3454

--
Andrea Cosentino 
----------------------------------
Apache Camel PMC Member
Apache Karaf Committer
Apache Servicemix PMC Member
Email: ancosen1985@yahoo.com
Twitter: @oscerd2
Github: oscerd



On Friday, August 4, 2017, 1:46:13 PM GMT+2, Claus Ibsen <cl...@gmail.com> wrote:


Try turning on dynamic import on those ES bundles via
dev:import-dynamic karaf command.

For the issue with the SMX bundle you can log that in the ServiceMix
JIRA ticket or in CAMEL. Then Andreas from the Camel/SMX team can take
a look, and get those packages to be imported|exported.


On Wed, Aug 2, 2017 at 8:17 AM, smanish <ma...@brodos.net> wrote:
> It is about camel-elasticsearch5 component.
> https://github.com/apache/camel/blob/master/platforms/karaf/features/src/main/resources/features.xml#L566-L580
>
> That basically use following bundles.
> 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://camel.465427.n5.nabble.com/Issue-with-camel-elasticsearch5-component-tp5809063.html
> Sent from the Camel - Users mailing list archive at Nabble.com.




-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Re: Issue with camel-elasticsearch5 component

Posted by Claus Ibsen <cl...@gmail.com>.
Try turning on dynamic import on those ES bundles via
dev:import-dynamic karaf command.

For the issue with the SMX bundle you can log that in the ServiceMix
JIRA ticket or in CAMEL. Then Andreas from the Camel/SMX team can take
a look, and get those packages to be imported|exported.


On Wed, Aug 2, 2017 at 8:17 AM, smanish <ma...@brodos.net> wrote:
> It is about camel-elasticsearch5 component.
> https://github.com/apache/camel/blob/master/platforms/karaf/features/src/main/resources/features.xml#L566-L580
>
> That basically use following bundles.
> 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://camel.465427.n5.nabble.com/Issue-with-camel-elasticsearch5-component-tp5809063.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2