无法启动Elasticsearch Sink

时间:2015-02-10 19:57:14

标签: elasticsearch flume-ng

我正试图让我的弹性搜索结果运行起来。但是我收到了以下错误,并且关于如何修复它的想法已经不多了。任何帮助表示赞赏。这是错误:

2015-02-10 11:43:31,234 ERROR org.apache.flume.lifecycle.LifecycleSupervisor:无法启动SinkRunner:{policy:org.apache.flume.sink.DefaultSinkProcessor@79a805d2 counterGroup:{name:null counters :{}}} - 以下是例外情况。 java.lang.NoSuchFieldError:LUCENE_3_6     在org.elasticsearch.Version。(Version.java:45)     在org.elasticsearch.client.transport.TransportClient。(TransportClient.java:168)     在org.elasticsearch.client.transport.TransportClient。(TransportClient.java:123)     在org.apache.flume.sink.elasticsearch.client.ElasticSearchTransportClient.openClient(ElasticSearchTransportClient.java:201)     在org.apache.flume.sink.elasticsearch.client.ElasticSearchTransportClient。(ElasticSearchTransportClient.java:79)     在org.apache.flume.sink.elasticsearch.client.ElasticSearchClientFactory.getClient(ElasticSearchClientFactory.java:48)     在org.apache.flume.sink.elasticsearch.ElasticSearchSink.start(ElasticSearchSink.java:357)     在org.apache.flume.sink.DefaultSinkProcessor.start(DefaultSinkProcessor.java:46)     在org.apache.flume.SinkRunner.start(SinkRunner.java:79)     在org.apache.flume.lifecycle.LifecycleSupervisor $ MonitorRunnable.run(LifecycleSupervisor.java:251)     at java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:471)     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)     at java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.access $ 301(ScheduledThreadPoolExecutor.java:178)     at java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)     在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)     at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)     在java.lang.Thread.run(Thread.java:745)

我正在运行CDH 5.3和elasticsearch 1.4.2

2 个答案:

答案 0 :(得分:0)

我怀疑您将弹性搜索jar放入FLUME_HOME / lib

这里的问题是由于Flume中弹性搜索的版本冲突造成的。您提供的库与水槽中使用的库不同。 Flume 1.5与弹性搜索4.9相关联。

答案 1 :(得分:0)

好的,在你们指出我正确的方向之后想出来了。

由于我使用的是CHD 5.3,我需要将elasticsearch 1.4.2 jar复制到/ user / lib / hadoop目录而不是flume-ng目录。这样做之后就完美了。

感谢大家的帮助!