Description:
Deletes a file from HDFS. The file can be provided as an attribute from an incoming FlowFile, or a statically set file that is periodically removed. If this processor has an incoming connection, it will ignore running on a periodic basis and instead rely on incoming FlowFiles to trigger a delete. Optionally, you may specify use a wildcard character to match multiple files or directories.
Tags:
hadoop, HDFS, delete, remove, filesystem, restricted
Properties:
In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values.
Name | Default Value | Allowable Values | Description |
Hadoop Configuration Resources | A file or comma separated list of files which contains the Hadoop file system configuration. Without this, Hadoop will search the classpath for a 'core-site.xml' and 'hdfs-site.xml' file or will revert to a default configuration. | ||
Kerberos Principal | Kerberos principal to authenticate as. Requires nifi.kerberos.krb5.file to be set in your nifi.properties | ||
Kerberos Keytab | Kerberos keytab associated with the principal. Requires nifi.kerberos.krb5.file to be set in your nifi.properties | ||
Kerberos Relogin Period | 4 hours | Period of time which should pass before attempting a kerberos relogin | |
Additional Classpath Resources | A comma-separated list of paths to files and/or directories that will be added to the classpath. When specifying a directory, all files with in the directory will be added to the classpath, but further sub-directories will not be included. | ||
File or Directory |
The HDFS file or directory to delete. A wildcard expression may be used to only delete certain files Supports Expression Language: true |
||
Recursive | true |
* true * false |
Remove contents of a non-empty directory recursively |
Relationships:
Name | Description |
Success | FlowFiles will be routed here if the delete command was successful |
failure | FlowFiles will be routed here if the delete command was unsuccessful |
Reads Attributes:
None specified.
Writes Attributes:
Name | Description |
hdfs.filename | HDFS file to be deleted |
hdfs.path | HDFS Path specified in the delete request |
hdfs.error.message | HDFS error message related to the hdfs.error.code |
Reads Attributes:
None specified.
Writes Attributes:
None specified.
State management:
This processor has no state management.
Restricted:
Provides operator the ability to delete any file that NiFi has access to in HDFS or the local filesystem.