Bryan Bende created NIFI-7948:
---------------------------------

             Summary: DeleteHDFS should wrap calls in doAs
                 Key: NIFI-7948
                 URL: https://issues.apache.org/jira/browse/NIFI-7948
             Project: Apache NiFi
          Issue Type: Bug
    Affects Versions: 1.12.1
            Reporter: Bryan Bende


The DeleteHDFS processor does not wrap the usage of FileSystem in a doAs the 
way all the other HDFS processors do...

[https://github.com/apache/nifi/blob/main/nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/processors/hadoop/DeleteHDFS.java#L148]

 

Example from ListHDFS:

[https://github.com/apache/nifi/blob/main/nifi-nar-bundles/nifi-hadoop-bundle/nifi-hdfs-processors/src/main/java/org/apache/nifi/processors/hadoop/ListHDFS.java#L570-L572]

It is important to call getUgi() first which is where the relogin/error 
handling is.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to