Member since
08-19-2024
15
Posts
8
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
934 | 08-22-2024 12:41 AM |
10-24-2024
12:26 AM
In PutSql Processor, there is a property "Support Fragmented Transactions". If set its value to be false, then it is proceeding and not penalising the flow files.
... View more
10-24-2024
12:25 AM
In PutSql Processor, there is a property "Support Fragmented Transactions". If I set its value to be false, then it is proceeding and not penalising the flow files.
... View more
09-09-2024
07:19 AM
Hi @MattWho file naming part worked properly. Thanks Could you please elaborare on the purging part where I want older files(older than 30 days) to be deleted.
... View more
09-09-2024
03:25 AM
1 Kudo
Using NiFi, I am processing a file. Once processing is done, I want to shift it to an archive folder. I want it to keep only say 30 days files and older files to be deleted. How to do. One more question is how to have timestamp name appended to file name. Like if file name is file1.txt then how to have it renamed like file1_09_09_2024_15_54.txt where we have 09_09_2024 as date and 15_54 as time(hour and mins)
... View more
Labels:
- Labels:
-
Apache NiFi
09-03-2024
11:09 PM
2 Kudos
Thanks, it was ReplaceText processor and this regex really helped
... View more
09-03-2024
12:09 AM
1 Kudo
Hello @SAMSAL I have used ExtractText processor. This processor has an inbuilt property "Search Value" which I filled as ^(.{5})(.{10}) and in property "replacement value" as $1,$2 My Extract Processor conf is below I also want to have whitespaces in my address. like if it is: smithAb Cd 12345678 then i want user name to be smit and address to be Ab Cd 1234. Also I want to point out that I am basically constructing a comma separated flowfile by using this. The comma "," in $1,$2 makes them comma separated at the end. The issue is that all works fine but this last $2 is not limiting to only 10 chars but taking chars after the 10 char also. so it ultimately becomes Ab Cd 12345678 instead of Ab Cd 1234 As I was speaking of some experimentation, I observe that if I do "Search Value" which I filled as ^(.{5})(.{10})(.{1}) and in property "replacement value" as $1,$2,$3 then I observe that both username and address comes proper as expected. now this $3 replaced value contains the extra until last characters.
... View more
09-02-2024
03:19 AM
1 Kudo
Hello, I have a simple use case. I have an incoming file having say user name and user address in each line. User name is from char 1 to char 5 and user address is from char 6 to char 15. How to use ExtractText processor for it. I tried using Search Value as ^(.{5})(.{10}) and in replacement value as $1,$2 Issue I am having is that for address it is capturing all the chars from 6th char to last and not necessarily upto 15th char. What should I modify? Just for experimentation I tried doing ^(.{5})(.{10})(.{1}) and $1,$2,$3 and this is able to capture properly from 6th char to 15th char. Please help.
... View more
Labels:
- Labels:
-
Apache NiFi
08-28-2024
08:42 AM
I have a simple file having say 1000 lines each of which contains say username and useraddress. I need to insert it into db. How to insert it in order. I am able to use PutFile and PutDatabaseRecord both for the insertion purpose. But they insert randomly in any order. I wanted it to be inserted in the same order it is present in the file. How to do that.
... View more
Labels:
- Labels:
-
Apache NiFi
08-28-2024
08:39 AM
Say I have a file having 100 records. In this file I want to ignore the first line as it's data I do not want to process (It contains some info like file name, date and number of records). I want to process from second line. How to do that?
... View more
Labels:
- Labels:
-
Apache NiFi