Eugene Hart created NIFI-10524:
----------------------------------

             Summary: Create/Update processors to modify filesystems user 
extended file attributes
                 Key: NIFI-10524
                 URL: https://issues.apache.org/jira/browse/NIFI-10524
             Project: Apache NiFi
          Issue Type: Wish
          Components: Extensions
            Reporter: Eugene Hart


It would be useful to be able to add/update/remove user extended file 
attributes (xattr) from a processor when the filesystem supports it. This 
allows you to retain all of the desired flowfile attributes when writing to 
regular (non flowfile formatted) files on the filesystem and reconstituting 
them when reading back into NiFi. I see at least two ways of accomplishing this.
 # Custom Processor (ModifyFileAttributes): Can be configured to either read 
xattr from file into flowfile attributes or write from flowfile attributes into 
xattr given the file specified in the file property and a regex specifying 
which attributes to read/write. This solution I've implemented and seems to 
work well.
 # Update existing processors PutFile/GetFile/ListFile/FetchFile etc to support 
writing/loading attributes with the specified regex matching attribute names.

Validation can check the filesystem pointed at supports xattr.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to