Splits a text file into multiple smaller text files on line boundaries, each having up to a configured number of lines
Tags: split, text
Properties:
In the list below, the names of required properties appear in bold. Anyother properties (not in bold) are considered optional. The table also indicates any default values, whether a property supports the NiFi Expression Language (or simply EL), and whether a property is considered "sensitive", meaning that its value will be encrypted. Before entering a value in a sensitive property, ensure that the nifi.properties file has an entry for the property nifi.sensitive.props.key.
Name | Description | Default Value | Valid Values | EL | Sensitive |
---|---|---|---|---|---|
Line Split Count | The number of lines that will be added to each split file | No | No | ||
Header Line Count | The number of lines that should be considered part of the header; the header lines will be duplicated to all split files | 0 | No | No | |
Remove Trailing Newlines | Whether to remove newlines at the end of each split file. This should be false if you intend to merge the split files later | true |
| No | No |
Relationships:
Name | Description |
---|---|
original | The original input file will be routed to this destination when it has been successfully split into 1 or more files |
failure | If a file cannot be split for some reason, the original file will be routed to this destination and nothing will be routed elsewhere |
splits | The split files will be routed to this destination when an input file is successfully split into 1 or more split files |