Member since
07-30-2019
3219
Posts
1589
Kudos Received
935
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
91 | 03-17-2025 12:09 PM | |
132 | 03-11-2025 05:58 AM | |
263 | 03-06-2025 06:05 AM | |
212 | 03-04-2025 06:28 AM | |
244 | 03-03-2025 10:59 AM |
05-11-2017
06:44 PM
@Anil Reddy Are the four fields you are trying to extract the values from consistently: "firstname" "lastname" "email" "address"
... View more
05-11-2017
06:32 PM
@Anil Reddy Your new example does not use a "&" between all your fields. Is that a typo? I see "&" between first two fields and "," after that.
... View more
05-11-2017
04:13 PM
@Gaurav Jain NiFi does not redistribution of FlowFiles at this time between nodes behind the scenes. Any redistribution of FLowFiles between nodes in a cluster has to be done programmatically through your dataflow design via components (processors like postHTTP to ListenHTTP or RPG) to push FlowFiles to other nodes. Thanks, Matt
... View more
05-11-2017
03:15 PM
@Gaurav Jain When you find an answer in Hortonworks Community Connections (HCC) that addresses your question, please accept that answer so that other HCC users know what worked for you. Thank you kindly, Matt
... View more
05-11-2017
02:16 PM
@Gaurav Jain Here is an article i wrote awhile ago that explains the differences between using GetSFTP processor or List and Fetch SFTP processors:
https://community.hortonworks.com/articles/97773/how-to-retrieve-files-from-a-sftp-server-using-nif.html Thanks, Matt
... View more
05-11-2017
01:28 PM
@Francisco Pires What about in front of your directory property value "C:\SNIRH"? Can you attach a template of this configured processor?
... View more
05-11-2017
01:25 PM
1 Kudo
@Anil Reddy You could use extractText processor configured similar to the following: I changed the two shown standard properties and added two additional regex properties. Using the following example input: field_1=field1value&field_2=field2value&field_3=field3value&field_4=field4value You will end up with the following attributes on your FlowFile: There will be a few additional attributes created that you can ignore, but you will have a sequentially numbered attribute names with the associated values and one field_last that will have the very last value in your input string. Thanks, Matt
... View more
05-11-2017
12:00 PM
@Muhammad Umar Try providing the absolute path to your core-site.xml and hdfs-site.xml files in the putHDFS processor. Make sure these two files are readable by the user running your NiFi. Tail your nifi-app.log before staring the processor to see if it throws any error or warn log messages. Thanks, Matt
... View more
05-11-2017
11:49 AM
1 Kudo
@Gaurav Jain This is the exact use case for why GetSFTP was deprecated in favor of listSFTP and FetchSFTP processors. The ListSFTP processor would run on the primary node only. It produces one 0 byte FlowFile for every file in the listing. All these 0 byte FlowFiles are then sent to a RPG for distribution across cluster. The distributed files are then fed to a FetchSFTP processor that will retrieve the content form the SFTP server and insert it in to the FlowFile at that time. This model eliminates the overhead on the Primary node since it does not need to write the content and it reduces network overhead between nodes since their is no content being send in FlowFiles via the RPG. The only issue you are going to run in to is: https://issues.apache.org/jira/browse/NIFI-1202 This issue is addressed in Apache NiFi 1.2.0 which was just released this week. It will also be addressed in HDF 3.0 which will be released soon. You can work around the issue in older versions by setting a small object backpressure threshold on the connection feeding your RPG. Since this backpressure is a soft limit, you need to put a processor between your listSFTP processor and the RPG that only processes FlowFiles one at a time. I recommend RouteOnAttribute (no configuration needed on processor, simply route the one existing "unmatched" relationship to the RPG and set back pressure on that connection). Thanks, Matt
... View more
05-10-2017
12:47 PM
Based on what you provided above it looks like you installed via the nifi tar.gz file. By default NiFi runs unsecure on port 8080. So yes, you want to change that port to some unused port on your server. Thanks,
Matt
... View more