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

DeleteHDFS should wrap calls in doAs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.12.1
    • 1.13.0
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              bbende Bryan Bende
              bbende Bryan Bende
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: