metron-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nickwallen <>
Subject [GitHub] metron pull request #1185: METRON-1508 In Ubuntu14 Dev Indexing Fails to Wri...
Date Tue, 04 Sep 2018 21:28:34 GMT
GitHub user nickwallen opened a pull request:

    METRON-1508 In Ubuntu14 Dev Indexing Fails to Write to Elasticsearch

    When spinning up the Ubuntu 14 development environment, the indexing topology fails to
write to Elasticsearch.  The indexing topology reports the following error.
    2018-04-04 15:51:05.707 o.a.s.d.executor Thread-6-indexingBolt-executor[3 3] [ERROR] 
    org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes
are available: [{#transport#-1}{rZcTXccfSPq4fH4IRLQ0zg}{node1}{}]
    	at org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(
    	at org.elasticsearch.client.transport.TransportClientNodesService.execute(
    	at org.elasticsearch.client.transport.TransportProxyClient.execute(
    	at org.elasticsearch.client.transport.TransportClient.doExecute(
    	at ~[stormjar.jar:?]
    	at org.elasticsearch.action.ActionRequestBuilder.execute(
    	at org.elasticsearch.action.ActionRequestBuilder.execute(
    	at org.apache.metron.elasticsearch.writer.ElasticsearchWriter.write(
    	at org.apache.metron.writer.BulkWriterComponent.flush( [stormjar.jar:?]
    	at org.apache.metron.writer.BulkWriterComponent.write( [stormjar.jar:?]
    	at org.apache.metron.writer.bolt.BulkMessageWriterBolt.execute(
    	at org.apache.storm.daemon.executor$fn__7590$tuple_action_fn__7592.invoke(executor.clj:730)
    	at org.apache.storm.daemon.executor$mk_task_receiver$fn__7511.invoke(executor.clj:462)
    	at org.apache.storm.disruptor$clojure_handler$reify__7166.onEvent(disruptor.clj:40) [storm-core-]
    	at org.apache.storm.utils.DisruptorQueue.consumeBatchToCursor(
    	at org.apache.storm.utils.DisruptorQueue.consumeBatchWhenAvailable(
    	at org.apache.storm.disruptor$consume_batch_when_available.invoke(disruptor.clj:73) [storm-core-]
    	at org.apache.storm.daemon.executor$fn__7590$fn__7603$fn__7656.invoke(executor.clj:849)
    	at org.apache.storm.util$async_loop$fn__553.invoke(util.clj:484) [storm-core-]
    	at [clojure-1.7.0.jar:?]
    	at [?:1.8.0_112]
    In Ubuntu, Elasticsearch is not setup to bind to `node1:9300`. When the index topology
spins-up and attempts to connect, it fails with this exception.  Simply binding to `localhost:9300`
fixes this problem in the Ubuntu development environment.
    I extracted the `es_hosts` variable from `single_node_vm.yml` in a way that allows each
development environment (Ubuntu and CentOS) to define this value independently.  This allows
CentOS to continue to use `node1:9300` as it always has and Ubuntu can use `localhost:9300`
as it needs to.
    This change only impacts the way the development environments are deployed.  This does
not impact any of the production deployment tooling.
    ## Testing
    1. Spin-up the CentOS development environment.  Ensure that alerts are visible within
the Alerts UI and that the Metron Service Check passes.
        cd metron-deployment/development/centos6
        vagrant up
    1. Spin-up the Ubuntu development environment.  Ensure that alerts are visible within
the Alerts UI and that the Metron Service Check passes.
        cd metron-deployment/development/ubuntu14
        vagrant up
    ## Pull Request Checklist
    - [ ] Is there a JIRA ticket associated with this PR? If not one needs to be created at
[Metron Jira](
    - [ ] Does your PR title start with METRON-XXXX where XXXX is the JIRA number you are
trying to resolve? Pay particular attention to the hyphen "-" character.
    - [ ] Has your PR been rebased against the latest commit within the target branch (typically
    - [ ] Have you included steps to reproduce the behavior or problem that is being changed
or addressed?
    - [ ] Have you included steps or a guide to how the change may be verified and tested
    - [ ] Have you ensured that the full suite of tests and checks have been executed in the
root metron folder via:
    - [ ] Have you written or updated unit tests and or integration tests to verify your changes?
    - [ ] If adding new dependencies to the code, are these dependencies licensed in a way
that is compatible for inclusion under [ASF 2.0](
    - [ ] Have you verified the basic functionality of the build by building and running locally
with Vagrant full-dev environment or the equivalent?

You can merge this pull request into a Git repository by running:

    $ git pull METRON-1508

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1185
commit 1ad9742fd02219846c56a66253cd60168733c4ee
Author: Nick Allen <nick@...>
Date:   2018-09-04T21:04:38Z

    METRON-1508 In Ubuntu14 Dev Indexing Fails to Write to Elasticsearch



View raw message