Member since
04-18-2016
16
Posts
4
Kudos Received
0
Solutions
04-25-2016
04:49 PM
Apologies guys, I had to move on to another project and didn't get a chance to test the groovy solution. Seeing that it works as mentioned by Shishir I will accept the solution and try it first chance I get. Thanks once again for the effort. Cheers.
... View more
04-22-2016
08:11 AM
Thanks James, this sounds groovy 🙂 .... I'm still playing with the merge solution so will try that later today.
... View more
04-20-2016
03:29 PM
Thanks James for taking the time in the explanation. I think I'm getting the picture so let me try this. Would have been awesome if there was a setting in the ExecuteSQL processor that offered the query destination to be either ATTRIBUTES or CONTENT. I could have chosen ATTRIBUTES and the original file content would have remained in the flowfile. I guess that's why it's open source , but I'm still too much of a novice to attempt to change this behaviour.
... View more
04-19-2016
05:54 PM
I tried it, found that since 2 flow files arrive at the UpdateAttribute processor, the later file overwrites the former file. So since the image file arrives straight from getFile processor it is overwritten by the avro file. Will look setting an attribute for the avro and find some logic to prevent it from being sent forward.
... View more
04-18-2016
01:19 PM
Will try that now...
... View more
04-18-2016
11:28 AM
3 Kudos
Hi, I am new to NiFi and want to rename a file based on a SQL query. The incoming jpg file has a GUID.jpg filename which I then extract the filename and query a table which returns the new filename. I then want to rename the file with this new filename. However when I use the ExecuteSQL_main processor the flowfile changes to the AVRO output and the original file is lost. The MERGE processor merges the content of the image incoming file with the avro query output which is not what I need. Any help would be appreciated.... Thanks..
... View more
Labels:
- Labels:
-
Apache NiFi