Member since
07-25-2022
20
Posts
7
Kudos Received
4
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
290 | 11-06-2024 02:11 PM | |
449 | 08-14-2024 01:31 PM | |
1546 | 08-14-2024 12:52 PM | |
650 | 04-04-2024 08:45 AM |
11-06-2024
02:23 PM
I was able to setup GitLabFlowRegistry in controller settings successfully (which is new feature in Nifi 2.0) From Nifi UI, I am able to import Nifi flow directly from Gitlab repository. After modifications, I was able to successfully commit into Gitlab repo, from Nifi UI. Do we have any toolkit commands to perform these operations? Currently we are using toolkit commands to deploy Nifi flow changes via CICD pipeline. Can I achieve the same with new GitLabFlowRegistry? Appreciate any help/pointers. Thanks
... View more
Labels:
- Labels:
-
Apache NiFi
11-06-2024
02:11 PM
@CommanderLaus Gitlab integration is available in latest version Nifi 2.0 (released few days ago). I was able to import and export flows directly from Gitlab repo. Note: Until Nifi 2.0M4, the file extension is "snapshot", but in 2.0 if you use Gitlab, flow config file extension should be ".json" We need to provide access token of the gitlab repository in Registry controller settings.
... View more
09-09-2024
03:47 PM
Thanks @SAMSAL for the clarification and the alternatives for looping in Nifi. We will consider using DuplicateFlowFile processor. Do you think nifi documentation should be updated to explicitly mention that it is not only for load tests but also can be used in production flows when there is need to clone flow files ?
... View more
09-06-2024
02:01 PM
1 Kudo
Appreciate any help with my above question about DuplicateFlowFile usage. @SAMSAL @MattWho
... View more
09-04-2024
02:51 PM
@AlokKumar I am not able to understand the context here. It would help to get to right solution if you can explain why the inserts into same table should be executed in certain order. However, Nifi Connection configuration settings have prioritizers. Please check screenshot below.. If you are able to set attribute "priority" with desired number, "PriorityAttributePrioritizer" can be used. Please note that these prioritizers operate on node level. You may have to test these if you have multi node nifi environment. There is a processor "EnforceOrder" which has more options to enforce execution order. You may check this processor and find out if it works. https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/nifi2.0-m4/org.apache.nifi.processors.standard.EnforceOrder/index.html
... View more
09-04-2024
01:35 PM
Hi I have a question on our Nifi flow design and specifically about the usage of DuplicateFlowFile processor. The latest documentation mentions that, it is intended for load test. Does that mean, it can not be used in regular production flows? Please confirm. https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/nifi-2.0.0-M4/org.apache.nifi.processors.standard.DuplicateFlowFile/index.html "Intended for load testing, this processor will create the configured number of copies of each incoming FlowFile." Please verify the current and improved designs below and advise if any implications with the new approach (where DuplicateFlowFile processor is used to clone flow files) Current Design: New Design is below (with DuplicateFlowFile processor)
... View more
Labels:
- Labels:
-
Apache NiFi
08-16-2024
08:43 AM
@Adyant001 Oracle has auto increment IDENTITY feature as below. Table definition takes care of setting primary key incremental value. No need to send this value in json payload I think all other major RDBMS have similar feature to assign auto increment value. CREATE TABLE roletab (id NUMBER GENERATED BY DEFAULT ON NULL AS IDENTITY (START WITH 1 INCREMENT BY 1 NOCYCLE), role_id NUMBER, role_name VARCHAR(100), PRIMARY KEY (id) ); INSERT INTO roletab (role_id, role_name) VALUES (10, 'Admin'); INSERT INTO roletab (role_id, role_name) VALUES (20, 'Developer'); commit; SELECT * FROM roletab; ID |ROLE_ID|ROLE_NAME| --+-------+---------+ 1 | 10 | Admin | 2 | 20 |Developer|
... View more
08-14-2024
01:31 PM
1 Kudo
@Former Member LookupRecord processor can be used in this case. Please check if this method works for you. Sample CSV input id,brand,phone 10,Samsung,1 20,Apple,2 Expected output (codes 1 and 2 are replaced with names) id,brand,phone 10,Samsung,Note 20,Apple,iPhone I tried nifi flow as below Lookup record configuration CSV Reader CSV Recordset Writer Didnt make any change. Used default settings Simple KeyValue Lookup service. There are several lookup services available in Nifi. You may use right service as per your requirement.
... View more
08-14-2024
12:52 PM
1 Kudo
I would do this way. Please see if this works for you. 1. Use JolttransformJSON processor to alter the input JSON Spec: [ { "operation": "shift", "spec": { "id": ["role.role_id", "user.id"], "name": "user.name", "age": "user.age", "role": { "role": "role.role_name" } } } ] 2. Pass the transformed JSON to first PutDatabaseRecord processor to insert into user table Set "Data Record Path" = user 3. Add another PutDatabaseRecord processor to insert into role table Set "Data Record Path" = role
... View more
08-13-2024
12:17 PM
@Adyant001 Can you share sample json structure ? If source json contains both parent and child information, you can have two PutDatabaseRecord processors connected in series with right "Data Record Path" mentioned. If child record needs information from parent level, JoltTransformJson processor can be used to create transformed json before passing to PutDatabaseRecord.
... View more