Flume
  1. Flume
  2. FLUME-1972

ElasticSearchSink now allows the id of the document to be provided by a custom class

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: v1.3.1
    • Fix Version/s: None
    • Component/s: Sinks+Sources
    • Labels:
      None

      Description

      Sometimes, you want to set the id on the document that is being written to elasticsearch so that you can later search by that id or overwrite previous versions of the same document (as they have the same id).

      This enhancement allows developers to provide a custom class that can read the incoming Avro event and determine the ID from it.

      We currently have this enhancement working successfully against Flume 1.3.1. A patch against trunk will be provided shortly.

      1. FLUME-1972-1.4.0-4.patch
        24 kB
        Edward Sargisson
      2. FLUME-1972-1.4.0-3.patch
        24 kB
        Edward Sargisson
      3. FLUME-1972-1.4.0-2.patch
        4 kB
        Edward Sargisson
      4. FLUME-1972-1.4.0-1.patch
        17 kB
        Edward Sargisson
      5. FLUME-1972-1.4.0.patch
        14 kB
        Edward Sargisson

        Issue Links

          Activity

          Hide
          Edward Sargisson added a comment -

          FLUME-2015 is a better solution to this problem. Closing.

          Show
          Edward Sargisson added a comment - FLUME-2015 is a better solution to this problem. Closing.
          Hide
          Edward Sargisson added a comment -

          See flume-1782 for the latest patch.

          Show
          Edward Sargisson added a comment - See flume-1782 for the latest patch.
          Hide
          Edward Sargisson added a comment -

          New cumulative patch, FLUME-1972-1.4.0-4.patch, attached. Removes the instantiation of the ElasticsearchNullIdProvider if the user-configured provider class cannot be instantiated.

          Show
          Edward Sargisson added a comment - New cumulative patch, FLUME-1972 -1.4.0-4.patch, attached. Removes the instantiation of the ElasticsearchNullIdProvider if the user-configured provider class cannot be instantiated.
          Hide
          Edward Sargisson added a comment -

          New cumulative patch with rework from review attached. FLUME-1972-1.4.0-3

          Show
          Edward Sargisson added a comment - New cumulative patch with rework from review attached. FLUME-1972 -1.4.0-3
          Hide
          Edward Sargisson added a comment -

          Based on review comments I am attaching FLUME-1972-1.4.0-2.patch which is an incremental patch on FLUME-1972-1.4.0-1 which includes an example ElasticsearchIdProvider, associated unit test and documentation updates.

          Show
          Edward Sargisson added a comment - Based on review comments I am attaching FLUME-1972 -1.4.0-2.patch which is an incremental patch on FLUME-1972 -1.4.0-1 which includes an example ElasticsearchIdProvider, associated unit test and documentation updates.
          Hide
          Edward Sargisson added a comment -

          FLUME-1927-1.4.0-1.patch is now the patch to use. It's based on flume-1.4 branch at commit 5b9d31f1ad228 (2013-04-07).

          Show
          Edward Sargisson added a comment - FLUME-1927-1.4.0-1.patch is now the patch to use. It's based on flume-1.4 branch at commit 5b9d31f1ad228 (2013-04-07).

            People

            • Assignee:
              Unassigned
              Reporter:
              Edward Sargisson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development