Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-14005

New processor GetFileResource

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.1.0
    • Extensions
    • None

    Description

      The goal of this new GetFileResource processor is to provide a way for a user to inject a File Resource as a FlowFile with custom attributes. It means that the processor would be able to specify a path to a file and its content would be used as FlowFile's content. By leveraging the asset feature, it makes it easy to load a test dataset as a FlowFile in a cloud native environment (container based).

      Alternatives that have been considered:

      • GenerateFlowFile with a "Custom File/Content" property. However, a processor being able to access the local file system needs to be associated with a specific set of permissions and that would be a significant breaking change for all users already using GenerateFlowFile processor where such permissions are enforced.
      • GetFile with some specific improvements. However, longer term we would likely want to completely remove this processor and only have ListFile/FetchFile. Beside, its configuration is overly complex for the intended goal here.

      Attachments

        Activity

          People

            pvillard Pierre Villard
            pvillard Pierre Villard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 40m
                2h 40m