Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-2899

elasticsearch-sink does not support IPv6 address for hostNames

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.6.0
    • None
    • None
    • None
    • Ubuntu 15.10, Oracle Java 1.8

    • Patch

    Description

      Using the agent configuration, such as

      a1.sinks.elasticSearch.hostNames = [fe80::5054:ff:fe3c:1383]:9300

      causes the following log output and failure to connect to the remote host:

      06 Apr 2016 11:21:53,908 WARN [lifecycleSupervisor-1-5] (org.apache.flume.sink.elasticsearch.client.ElasticSearchTransportClient.configureHostnames:136) - [[fe80::5054:ff:fe3c:1383]:9300]
      06 Apr 2016 11:21:53,911 INFO [lifecycleSupervisor-1-5] (org.apache.flume.sink.elasticsearch.client.ElasticSearchTransportClient.openClient:196) - Using ElasticSearch hostnames: [inet[[fe80:9300]]

      The last line above is obviously wrong.

      Attachments

        1. FLUME-2899-0.patch
          2 kB
          Calvin Cheng

        Activity

          People

            Unassigned Unassigned
            calvincheng Calvin Cheng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: