Member since
03-01-2024
11
Posts
10
Kudos Received
2
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
611 | 04-04-2024 12:13 AM | |
1083 | 03-18-2024 09:51 PM |
06-01-2024
08:35 PM
1 Kudo
Hello, I have Two Questions 1. In case of error , GenerateTableFetch is not getting routed to Failure. 2. GenerateTableFetch keep on trying . I need it should do this only once in case of error. Thanks, Riyaz
... View more
Labels:
- Labels:
-
Apache MiNiFi
-
Apache NiFi
05-10-2024
06:04 AM
Hello All, Here is my use case I am using Nifi 2.0.0.M1 . I developed one flow where i am connecting to a database and converting result to Json format and store these file on to a folder. This flow (flow.json.raw) is then deployed on a VM that contains Minifi. This flow works fine. Note : In Nifi , all the connection string - with user id and password ( Sensitive = True) is stored in Parameter context. Where as after generating the Flow.json.raw , this information (all the properties in Parameter Context - Nifi) is present inside file ( flow.json.raw) under Parameter Context Object. Issue : Problem here i am facing is , when i deploy this flow on another VM where user provide its own userId and Password , i can edit Flow.json.raw file and update ParameterContext - UserId . But since password is stored in encrypt format. i can't change the ParameterContext - password value. I need to store the Password in the encrypt format so that flow running under minifi should understand it and perform the operations. What i Tried I tried Encrypt-Config under Nifi Toolkit i tried to perform encryption using the algorithm mention in nifi.properties I am still searching for a method through which i can encrypt the password in the same way Nifi is doing with its ParameterContext properties where sensitivity flag is TRUE Thanks, Riyaz
... View more
Labels:
- Labels:
-
Apache MiNiFi
-
Apache NiFi
05-09-2024
08:39 PM
1 Kudo
Used Option2 - Groovy script for this scenario.
... View more
04-21-2024
12:54 AM
1 Kudo
Hi, I want to change the flowfile content (json format) using UpdateRecord by providing property (to be change) from attribute. Here is the flowfile content here is the flowfile attribute I want to change the value of "id" in flowfile content using UpdateRecords like this : ( WHICH IS NOT WORKING ) This works but add a new property to existing flow file Here "id" got change because i provided "/id" (hardcoded property name) , i need same functionality to work with "/${col_name}" Any Pointers ... ????? Thanks, Riyaz
... View more
Labels:
- Labels:
-
Apache NiFi
04-04-2024
12:13 AM
1 Kudo
I got the Solution. Use UpdateAttribute processor and Expression Language. Here "SignedURL" is the attribute (containing complex Json) and from that I fetch particular Key value using Expression Language (JSONPATH)
... View more
04-04-2024
12:08 AM
1 Kudo
@saquibsk Thanks for Reply. Solution you have provided will work with content of flow file and not with the attribute. EvaluateJsonPath is use to evaluate the JSON present in flow file content. In my case , I have JSON present as attribute and not as content of flow file.
... View more
03-30-2024
12:00 AM
1 Kudo
How to Evaluate attribute (output of Invoke Http which is in JSON format) This attribute value contain a Json in the following format { location : { FileSource : "X" , URL : "Y"} } From this attribute value (Json), I need to extract File Source and URL and put it into another attribute with the same name. Note : Flow file Content should remain as it is. Any Pointer ..??
... View more
Labels:
- Labels:
-
Apache NiFi
03-27-2024
12:20 AM
I am using GenerateTableFetch processor ( nifi 2.0) , with following configuration Max_column is "ID" and in some cases it is "UPDATE_DATETIME" This configuration is working fine. But for Partition size > 0 , I am getting no results. No error message in Logs Any Pointer ..??
... View more
Labels:
- Labels:
-
Apache NiFi
03-18-2024
09:51 PM
3 Kudos
I am able to solve the problem Access token Rest API generates two token (check under cookies) - Secure-Request-Token and other is Secure-Authorization-Bearer token. While calling any of the other API (like creating Parameter Context or updating Parameter context) - in Headers provide one more header "Request-Token" with the value of _secure-Request-Token (From cookies).
... View more
03-12-2024
10:55 PM
1 Kudo
@ckumar Yes , i am able to do the changes via Nifi UI. Note : I have created the user user using following command : nifi.cmd set-single-user-credentials username password
... View more