fetchelasticsearch处理器

时间:2016-08-30 10:09:18

标签: elasticsearch dataflow apache-nifi

我在运行FetchElasticSearch处理器时遇到奇怪的错误,下面是错误。

FetchElasticsearch [id = f2b2fee3-b940-4a73-8a28-0436e765c9a2]由于没有配置的节点可用,因此无法读入Elasticsearch:[{#transport#-1} {127.0.0.1} {localhost / 127.0。 0.1:9500}],这可能表示配置错误(主机,用户名/密码等)。路由重试:NoNodeAvailableException [没有配置的节点可用:[{#transport#-1} {127.0.0.1} {localhost / 127.0.0.1:9500}]] 2016-08-30 11:58:17,930 ERROR [计时器驱动的进程Thread-3] oanpelasticsearch.FetchElasticsearch org.elasticsearch.client.transport.NoNodeAvailableException:没有配置的节点可用:[{#transport#-1} {127.0.0.1} {localhost / 127.0.0.1: 9500}] org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:290)〜[elasticsearch-2.1.0.jar:2.1.0] at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService) .java:207)〜[elasticsearch-2.1.0.jar:2.1.0] org.elasticsearch.client.transport.support.TransportProxyClient.execute(TransportProxyClient.java:55)〜[elasticsearch-2.1.0.jar: 2.1.0]在org.elasticsearch.client的org.elasticsearch.client.transport.TransportClient.doExecute(TransportClient.java:283)〜[elasticsearch-2.1.0.jar:2.1.0] .support.AbstractClient.execute(AbstractClient.java:347)〜[elasticsearch-2.1.0.jar:2.1.0] org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:85)〜[elasticsearch-2.1。在org.apache.nifi.processors.elasticsearch的org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:59)〜[elasticsearch-2.1.0.jar:2.1.0]上的0.jar:2.1.0]。在org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)中的FetchElasticsearch.onTrigger(FetchElasticsearch.java:164)〜[nifi-elasticsearch-processors-0.7.0.jar:0.7.0] [nifi- api-0.7.0.jar:0.7.0] org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1054)[nifi-framework-core-0.7.0.jar:0.7.0] at org .apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136)[nifi-framework-core-0.7.0.jar:0.7.0] org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call (ContinuallyRunProcessorTask.java:47)[nifi-framework-core-0.7 .0.jar:0.7.0] org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent $ 1.run(TimerDrivenSchedulingAgent.java:127)[nifi-framework-core-0.7.0.jar:0.7.0] at java .util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)[na:1.8.0_91] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)[na:1.8.0_91] at java .util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.access $ 301(ScheduledThreadPoolExecutor.java:180)[na:1.8.0_91] at java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)[na:1.8.0_91 ] java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_91] at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_91 ]在java.lang.Thread.run(Thread.java:745)[na:1.8.0_91]

ElasticSearch配置是:

主持人:localhost

端口:9500

不确定问题的根本原因,做必要的事情。

1 个答案:

答案 0 :(得分:0)

FetchElasticsearch使用本机传输API,其默认端口为9300.您是否在Elasticsearch集群上将其更改为9500?如果没有,那么9300应该可以工作,请参阅这篇文章了解更多详情: https://community.hortonworks.com/questions/53973/nifi-error-with-fetchelasticsearch-processornifi-e.html