You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Bryan Bende (Jira)" <ji...@apache.org> on 2020/10/27 13:03:00 UTC

[jira] [Assigned] (NIFI-7948) DeleteHDFS should wrap calls in doAs

     [ https://issues.apache.org/jira/browse/NIFI-7948?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bryan Bende reassigned NIFI-7948:
---------------------------------

    Assignee: Bryan Bende

> 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
>            Assignee: Bryan Bende
>            Priority: Major
>
> 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)