Member since
09-27-2018
138
Posts
23
Kudos Received
10
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
9734 | 02-28-2021 10:23 PM | |
1936 | 02-08-2021 11:53 PM | |
31753 | 12-16-2020 11:31 PM | |
7600 | 12-14-2020 11:02 PM | |
4841 | 12-14-2020 12:18 AM |
04-05-2021
11:06 PM
@Love-Nifi As @Magudeswaran mentioned it depends on the concrete processor you are using and the format of the response you are expecting. For example after an ExecuteSQL I check the content this way using RouteOnContent. Check no-content
... View more
03-17-2021
04:15 AM
@rakz Did you try your SQL-statement interactive? As far as I know INSERT INTO does not accept WHERE-clause at least not at microsoft sql server.
... View more
03-10-2021
11:11 PM
@mehdi58 I haven't done this until now myselfe but I don't think that the flowfile-UUID is meant by "provenance event id". At the moment I can't try but maybe this link will be helpful for you: https://community.cloudera.com/t5/Support-Questions/Nifi-how-to-get-provenance-event-id-in-nifi/m-p/154682 and https://community.cloudera.com/t5/Community-Articles/How-to-use-provenance-events-id-nifi-rest-api/ta-p/245440
... View more
02-28-2021
10:23 PM
1 Kudo
@murali2425 Here are two possible solutions. At solution 1 the value is set into an array. At solution 2 I took the flowfile-content (json) and set it into an attribute. Then you can work with expression language to get the value. For testing the syntax I recommend this site: http://jsonpath.herokuapp.com/
... View more
02-18-2021
07:47 AM
@totti1 I'm sorry, I'm obviously confused. :-(( Just to correct the csv-output for the solution you don't need (but maybe someone else...) I add this picture: correct csv output format
... View more
02-18-2021
07:34 AM
@totti1 I can't confirm that ConvertExcelToCSVProcessor processor does not work with xlsx. It works, only thing I haven't achieved until now is to format the csv-output in the right manner. Maybe this will help you to get it? My test xlsx data: id title first last
1 miss marlene shaw
2 ms letitia jordan
3 mr todd graham
4 mr seth martinez
5 mr guy mckinney
6 ms anna smith
7 mr johnny johnson
8 mrs robin white
9 miss allison williams
10 mrs erika king Processors Flow My not correct formatet temporary csv-output: temporary csv-output
... View more
02-18-2021
05:45 AM
@totti1 Oh, that's a shame and would have been to easy... 😉 Can you tell what other options you have tried? Can you provide information on what the data looks like?
... View more
02-18-2021
05:40 AM
@totti1 Haven't done this until now, but there is a ConvertExcelToCSVProcessor Processor. Have you tried this?
... View more
02-17-2021
05:55 AM
@memad Have a look here at the processor: To create or check cron syntax look here: https://www.freeformatter.com/cron-expression-generator-quartz.html Hope this helps! Bye
... View more
02-16-2021
09:40 AM
1 Kudo
@BerniHacker Come on work can wait... Here my description with NiFi 1.12.1. on a windows standalone installation. This is my test csv. id;title;first;last
1;miss;marlene;shaw
2;ms;letitia;jordan
3;mr;todd;graham
4;mr;seth;martinez
5;mr;guy;mckinney
6;ms;anna;smith
7;mr;johnny;johnson
8;mrs;robin;white
9;miss;allison;williams
10;mrs;erika;king This is my flow: Flow This is my sql table. SQL table This is the configuration of the csv-reader. Note the green bordered information! Controller Service - dsv reader The schema has to be defined in a controller service of the type "AvroSchemaRegistry". AvroSchemaRegistry With the UpdateAttribute you set the NiFi-attribute schema.name to the concrete schema you use. UpdateAttribute schema.name And last but not least configure the PutDatabaseRecord. PutDatabaseRecord Here is the result in my sql table. SQL Result Hope this helps and works for you. Bye!
... View more