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

Allow SpoolDir to pass just the filename that is the source of an event

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.5.0
    • None
    • None

    Description

      Currently we allow for passing of the absolute path.
      It would be nice to just pass the filename in the event headers and allow for using that on the hdfs sink.

      if (annotateFileName) {
      String filename = currentFile.get().getFile().getAbsolutePath();
      for (Event event : events)

      { event.getHeaders().put(fileNameHeader, filename); }

      }

      Attachments

        1. FLUME-2056.0.patch
          11 kB
          Jeff Lord
        2. FLUME-2056-1.patch
          11 kB
          Jeff Lord

        Issue Links

          Activity

            People

              jlord Jeff Lord
              jlord Jeff Lord
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: