Created 03-16-2018 06:32 AM
Can anyone explain what is write attributes in NIFI. where i can find this in getsftp processor.
Thanks in advance
Created on 03-16-2018 09:48 AM - edited 08-17-2019 11:56 PM
Write Attributes means once the processor Fetches the files from the remote path then getsftp processor is going to add those list of write attributes to the flowfile that got pulled from the Remote Path.
Name | Description |
---|---|
filename | The filename is set to the name of the file on the remote server |
path | The path is set to the path of the file's directory on the remote server. For example, if the <Remote Path> property is set to /tmp, files picked up from /tmp will have the path attribute set to /tmp. If the <Search Recursively> property is set to true and a file is picked up from /tmp/abc/1/2/3, then the path attribute will be set to /tmp/abc/1/2/3 |
file.lastModifiedTime | The date and time that the source file was last modified |
file.owner | The numeric owner id of the source file |
file.group | The numeric group id of the source file |
file.permissions | The read/write/execute permissions of the source file |
absolute.path | The full/absolute path from where a file was picked up. The current 'path' attribute is still populated, but may be a relative path |
Example:-
I have configured getsftp processor and fetched a file from the remote path, if i do list queue (or) Data provenance in get sftp processor and click on little i icon at the top left corner of the flowfile then we are going to have Details, Attributes tab.
Go to Attributes tab then you are going to see all the attributes that are listed above will be added to the flowfile.
As you can view from the above screenshot we got absolute.path,path... attributes added to the flowfile by getsftp processor.
We can use those attributes by using expression language ${absolute.path} for our purposes.
.
If the Answer addressed your question, Click on Accept button below to accept the answer, That would be great help to Community users to find solution quickly for these kind of issues.
Created on 03-16-2018 09:48 AM - edited 08-17-2019 11:56 PM
Write Attributes means once the processor Fetches the files from the remote path then getsftp processor is going to add those list of write attributes to the flowfile that got pulled from the Remote Path.
Name | Description |
---|---|
filename | The filename is set to the name of the file on the remote server |
path | The path is set to the path of the file's directory on the remote server. For example, if the <Remote Path> property is set to /tmp, files picked up from /tmp will have the path attribute set to /tmp. If the <Search Recursively> property is set to true and a file is picked up from /tmp/abc/1/2/3, then the path attribute will be set to /tmp/abc/1/2/3 |
file.lastModifiedTime | The date and time that the source file was last modified |
file.owner | The numeric owner id of the source file |
file.group | The numeric group id of the source file |
file.permissions | The read/write/execute permissions of the source file |
absolute.path | The full/absolute path from where a file was picked up. The current 'path' attribute is still populated, but may be a relative path |
Example:-
I have configured getsftp processor and fetched a file from the remote path, if i do list queue (or) Data provenance in get sftp processor and click on little i icon at the top left corner of the flowfile then we are going to have Details, Attributes tab.
Go to Attributes tab then you are going to see all the attributes that are listed above will be added to the flowfile.
As you can view from the above screenshot we got absolute.path,path... attributes added to the flowfile by getsftp processor.
We can use those attributes by using expression language ${absolute.path} for our purposes.
.
If the Answer addressed your question, Click on Accept button below to accept the answer, That would be great help to Community users to find solution quickly for these kind of issues.
Created on 03-16-2018 10:23 AM - edited 08-17-2019 11:56 PM
This we will get once its successfully imported data from getsftp , then only we can view rite?
Created 03-16-2018 12:55 PM
Yes, you are right.
Once you successfully fetch any file from sftp server then data provenance will be updated accordingly.