Elasticsearch Apache camel


#1

I want to send data to elasticSearch from camel using camel component camel-elasticsearch-2.18.3
The ElasticSearch version used is 2.4.4 With each run of my application I see that elasticsearch creates a new client node with different name each time:
2017-05-11 13:32:30.192 INFO 8248 --- [ main] org.elasticsearch.node : [Thanos] version[2.4.4], pid[8248], build[fcbb46d/2017-01-03T11:33:16Z]
2017-05-11 13:32:30.192 INFO 8248 --- [ main] org.elasticsearch.node : [Thanos] initializing ...
2017-05-11 13:32:30.200 INFO 8248 --- [ main] org.elasticsearch.plugins : [Thanos] modules [], plugins [], sites []
2017-05-11 13:32:30.235 INFO 8248 --- [ main] org.elasticsearch.env : [Thanos] using [1] data paths, mounts [[/ (/dev/sda6)]], net usable_space [60.8gb], net total_space [88.1gb], spins? [possibly], types [ext4]
2017-05-11 13:32:30.235 INFO 8248 --- [ main] org.elasticsearch.env : [Thanos] heap size [1.7gb], compressed ordinary object pointers [true]
2017-05-11 13:32:32.814 WARN 8248 --- [ main] org.elasticsearch.bootstrap : JNA not found. native methods will be disabled.
and thus it causes errors which are:
java.lang.NoSuchFieldError: FAIL_ON_SYMBOL_HASH_OVERFLOW
at org.elasticsearch.common.xcontent.smile.SmileXContent.(SmileXContent.java:46) ~[elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.common.xcontent.XContentFactory.smileBuilder(XContentFactory.java:70) ~[elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.common.xcontent.XContentFactory.contentBuilder(XContentFactory.java:108) ~[elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.gateway.MetaDataStateFormat.newXContentBuilder(MetaDataStateFormat.java:154) ~[elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.gateway.MetaDataStateFormat.write(MetaDataStateFormat.java:116) ~[elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.gateway.MetaStateService.writeGlobalState(MetaStateService.java:149) ~[elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.gateway.GatewayMetaState.clusterChanged(GatewayMetaState.java:148) [elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.gateway.Gateway.clusterChanged(Gateway.java:185) [elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.cluster.service.InternalClusterService.runTasksForExecutor(InternalClusterService.java:622) [elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:784) [elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:231) [elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:194) [elasticsearch-2.4.4.jar:2.4.4]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_121]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_121]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_121]

java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.common.xcontent.json.JsonXContent
at org.elasticsearch.common.xcontent.XContentType$1.xContent(XContentType.java:52) ~[elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.common.xcontent.XContentFactory.xContent(XContentFactory.java:140) ~[elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.rest.AbstractRestChannel.newBuilder(AbstractRestChannel.java:69) ~[elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.rest.AbstractRestChannel.newErrorBuilder(AbstractRestChannel.java:52) ~[elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.http.HttpServer$ResourceHandlingHttpChannel.newErrorBuilder(HttpServer.java:326) ~[elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.rest.BytesRestResponse.convert(BytesRestResponse.java:123) ~[elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.rest.BytesRestResponse.(BytesRestResponse.java:96) ~[elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.rest.BytesRestResponse.(BytesRestResponse.java:87) ~[elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.rest.action.support.RestActionListener.onFailure(RestActionListener.java:60) [elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.rest.action.support.RestActionListener.onResponse(RestActionListener.java:51) [elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.action.support.TransportAction$1.onResponse(TransportAction.java:89) [elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.action.support.TransportAction$1.onResponse(TransportAction.java:85) [elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.action.support.nodes.TransportNodesAction$AsyncAction.finishHim(TransportNodesAction.java:221) [elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.action.support.nodes.TransportNodesAction$AsyncAction.onOperation(TransportNodesAction.java:196) [elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.action.support.nodes.TransportNodesAction$AsyncAction.access$700(TransportNodesAction.java:107) [elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.action.support.nodes.TransportNodesAction$AsyncAction$2.handleResponse(TransportNodesAction.java:173) [elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.action.support.nodes.TransportNodesAction$AsyncAction$2.handleResponse(TransportNodesAction.java:165) [elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.transport.TransportService$DirectResponseChannel.processResponse(TransportService.java:838) [elasticsearch-2.4.4.jar:2.4.4]
at org.elasticsearch.transport.TransportService$DirectResponseChannel.sendResponse(TransportService.java:822) [elasticsearch-2.4.4.jar:2.4.4]


(Mark Walkom) #2

Is that your problem? It's not clear what you are asking here.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.