Member since
09-27-2018
138
Posts
23
Kudos Received
10
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
9453 | 02-28-2021 10:23 PM | |
1892 | 02-08-2021 11:53 PM | |
31180 | 12-16-2020 11:31 PM | |
7444 | 12-14-2020 11:02 PM | |
4753 | 12-14-2020 12:18 AM |
12-07-2020
11:39 PM
1 Kudo
@ang_coder The AvroSchemaRegistry is to set in the ControllerServices. If it should be available in your whole NiFi just go to the canvas and click anywhere right -> choose "Configure". It is the same place where you define your database connections. Configure -> ControllerServices If you already have JSON-format just ignore the first two steps of my example flow where data were retrieved and converted to JSON. Start with your JSON at UpdateAttribute which doesn't care about the kind of flowfile content. The ConvertRecord in my example uses an JSON-reader and JSON-writer where the writer points to the AvroSchemaRegistry with the schema.name set in UpdateAttribute. Therefore the JsonRecordSetWriter_IJ_TestMoreColumnsAtTarget (just to take a short name) has the specification "Schema Access Strategy" with option "Use Schema.Name Property". Have a look at the configuration details in my post before. Hope this helps.
... View more
12-06-2020
10:50 PM
1 Kudo
@dzbeda Try it with: /*:Event/*:System/*:Channel
... View more
12-04-2020
02:39 AM
2 Kudos
@ang_coder Tried it myself and have to correct my idea a little bit. Have a look at my example. Here are my tables. The target table has two columns more than the source. Tables I defined following ControllerServices: ControllerServices And created this flow: Flow Here the information of the single processors: Processor information In my example it works. Sure there will be a more elegant solution but I don't know how.
... View more
12-04-2020
01:03 AM
@ang_coder I'm not sure if i get you right and haven't done such a thing myselfe until now. But if you use PutDatabaseRecord instead of PutSQL you have to specify a RecordReader. This will be configured as ControllerService and you can add a schema in AvroSchemaRegistry (also in ControllerServices). In this schema provide the full table definition with default values. f.e. { "name" : "zeichen", "type" : ["string","null"] },... I suppose that all columns which are not included by your flowfile should be taken from the schema considering the default values.
... View more
12-03-2020
03:01 AM
@stephane_davy Sorry, my above picture is a kind of vision test... Flow and Step1 and 2 Step 3 Rule 1 Step 3 Rule 2 Step 4
... View more
12-03-2020
02:52 AM
@stephane_davy Maybe you want to give this solution a try? Hope the explanation is clear. If not feel free to ask again. <Picture removed>
... View more
11-02-2020
03:40 AM
1 Kudo
@kumar79 Maybe you could reset the state via NiFi-REST-API at beginning of your flow? Hava a look here: https://nifi.apache.org/docs/nifi-docs/rest-api/index.html Could be: POST "https://[ip:port]/nifi-api/processors/${pg-id}/state/clear-requests" This is the request which NiFi itself uses when you go to the processor in the UI and choose the menu-option "view state" -> "clear state".
... View more
10-26-2020
04:35 AM
1 Kudo
@MKS_AWS You can do this in different ways. Possibility 1 Create variables in VariableRegistry containing your authorization data. Possibility 2 Create a parameter list and define your authorization data there in parameters. In both ways you can use the variables or parameters inside the InvokeHTTP. Here an example with variables. If you get your authorization data from a database table just set them into attributes and use them in the same way.
... View more
10-15-2020
04:20 AM
Thanks for your help @ashinde ! I see I was looking at the wrong section of rest-api. OK I have to go on nifi rest-api section flow/history. I will have a look on the nifi.properties but because my report is running every night I suppose the purging doesn't matter. Second option you mentioned concerning when a flow was brought to registry doesn't interest... at the moment.
... View more
10-14-2020
03:24 AM
@ashinde Thanks for this information. Tested the command with InvokeHTTP from NiFi itselfe. So I would have to deliver a list of Processgroup-IDs to check with this request... At the moment I try getting information with https://${hostname(true)}:${NIFI_PORT}/nifi-api/process-groups/${PG_ID}/process-groups starting with root-pg-id, split and doing the same for each therein found processgroup in a loop. So I can get component-name, component-version, pg-id. One info I still miss is timestamp when a processgroup was brought to a NiFi-instance (imported from registry) or when it was last updated (change of version). Do you have a tip where to find this? Thanks.
... View more