Member since
07-30-2019
3470
Posts
1641
Kudos Received
1018
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 230 | 05-06-2026 09:16 AM | |
| 421 | 05-04-2026 05:20 AM | |
| 299 | 05-01-2026 10:15 AM | |
| 504 | 03-23-2026 05:44 AM | |
| 384 | 02-18-2026 09:59 AM |
09-11-2024
02:03 PM
1 Kudo
@Leo3103 This exception might be caused by a missing nar file in your MiNiFi. MiNiFi does not include all the NiFi nars. https://github.com/apache/nifi/blob/main/minifi/minifi-docs/src/main/markdown/minifi-java-agent-quick-start.md A quick look through your flow definition I saw you were using the ExecuteSQL processor. While ExecuteSQL is part of one of the included nars, it does require another nar that is not included (this is noted in the above linked quick start guide). You'll need to add the "nifi-dbcp-service-nar" from your NiFi distribution to your MiNiFi's lib directory. Please help our community thrive. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped. Thank you, Matt
... View more
09-09-2024
02:36 PM
I think you issue may be with using the SingleUserAuthorizer and Single user login provider. These out of the box providers were built so that NiFi could be HTTPS enabled securely out of the box. They are not designed to support clustering, nor are they suitable for production NiFi. You'll want to configure your NiFi cluster to use a production ready authorizer (managed authorizer) and user authentication method other then single user so you can have granular access controls per user/team. Most common is the ldap-provider. The documentation provides examples for authorizer.xml setup: https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#file-based-ldap-authentication https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#file-based-kerberos-authentication https://nifi.apache.org/docs/nifi-docs/html/administration-guide.html#ldap-based-usersgroups-referencing-user-dn ETC.... You cluster is most likely not forming completely due to node to node authentication and authorization issue resulting from using the single user authorizer. In a NiFi cluster the node identities (derived from clientAuth certificates in the Mutual TLS exchange) need to be authorized against some NiFi policies like "Proxy user requests". Please help our community thrive. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped. Thank you, Matt
... View more
09-09-2024
01:52 PM
@hegdemahendra The FlowFile connection back pressure thresholds are soft limits. Once one of the configured back pressure thresholds on reached or exceeded, NiFi will not allow the processor feeding that connection to get scheduled to execute again. So in your case no back pressure is being applied, so the ConsumeAzureEventHub processor is being allowed to scheduled to execute. During a single execution it is consuming more events then the threshold settings. What is the batch size set to in your ConsumeAzureEventHub processor? Please help our community thrive. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped. Thank you, Matt
... View more
09-09-2024
01:43 PM
1 Kudo
@Rohit1997jio You have topic A with your source messages. You have two consumer groups each pulling all the messages from Topic A. While both these dataflows consume all the same messages, each may fail on a different messages with the InvokeHTTP execution. You are then writing the FlowFiles that failed invokeHTTP to another topic R which both consumer groups can consume from. So both consumer groups will get a copy of any message written to the topic. Your dataflow is working exactly as designed. You must keep your retry logic independent of one another. I also don't understand the overhead of ingesting the same messages twice in your NiFi. Why not have have a single ConsumeKafka ingesting the messages from the topic and then routing the success relationship from the ConsumeKafka twice (once to InvokeHTTP A and once to InvokeHTTP B)? Why publish failed or retry FlowFile messages to an external topic R just so they can be consumed back in to your NiFi? It would be more efficient to just keep them in NiFi and create a retry loop on each InvokeHTTP. NiFi even offers retry handling directly on the relationships with in the processor configuration. If you must write the message out to just one topic R, you'll need to append something to the message that indicates what InvokeHTTP (A or B) failure or retry resulted in it being written to Topic R. Then have a single Retry dataflow that consume from Topic R, extracts that A or B identifier from message so that it can be routed to the correct invokeHTTP. Just seems like a lot of unnecessary overhead. Please help our community thrive. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped. Thank you, Matt
... View more
09-09-2024
01:22 PM
1 Kudo
@Chetan_mn Details are very beneficial in getting assistance in the community. Why different NiFi instance would produce two different FlowFile attribute contents, makes no sense to me. 1. Are these two instance of NiFi just 2 nodes in the same NiFi cluster? 2. What version(s) of NiFi are being used? 3. What processor is being used to your http requests? I am assuming the HandleHttpRequest processor. 4. How is the HTTP processor configured? 5. Can you share a sample http request? 6. What is the source generating the request? Is it an automated process? Thank you, Matt
... View more
09-09-2024
01:07 PM
@AlokKumar The more detail you provide the better response you will get. In this case, more detail around the content/format of the source file (samples are great) and how it is being or will be processed downstream. A NiFi FlowFile is what is passed from one processor component to the next. There is no direct relationship between what processing was done in one processor versus another. Each Processor will read the FlowFile (consists of FlowFile Attributes/metadata and FlowFile content) and execute its processor code against the FlowFile and output a FlowFile(s) to one or more outbound relationships. So processing against the content of A FlowFile becomes the responsibility of each processor separately. So the questions asked correlate to the answer you'll get. With what you shared, I can only suggest that you remove the first line from the content of the FlowFile so that downstream processor will only have line 2 to process against. This can be accomplished easily with a ReplaceText processor. Simply configure it for "Evaluation Mode" = "line-by-line", "line-by-line Evaluation Mode" = "First-Line", and in "Replacement Value" property "Set empty string" check box. The output FlowFile' content, which is sent to the success relationship, will have everything except its first line. Do you need to preserve line 1? If so, maybe use ExtractText to extract line 1 to a FlowFile attribute you can then use after processing to add back to Content again using ReplaceText. Please help our community thrive. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped. Thank you, Matt
... View more
09-09-2024
09:34 AM
1 Kudo
@AlokKumar The idea is that after renaming your FlowFile, you use the putFile processor to write that file to your archive directories on each of the NiFi instances. That ends that dataflow. You then start a new dataflow that consists of only the GetFile processor with its success relationship terminated and the minimum File Age property set to "30 days". Start this processor and it will continuously check the target archive directory for any files where the last modified timestamp has exceeded 30 days. Those files older then 30 days will be consumed and removed from archive assuming property "Keep Source File" is set to "false". Since the success "relationship" is set to auto-terminate, The FlowFile produced is terminated. Please help our community thrive. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped. Thank you, Matt
... View more
09-09-2024
09:18 AM
@P2as Zookeeper needs to have more then 1 node in order to have quorum. A single ZK instance will not work. The next question is how is client/user authentication and authorization setup? While i dod not see any untrusted proxy exception or SSL exceptions in what you shared, I wonder if you are encountering a mutualTLS issue between your two nodes resulting in your connection exception. When you try to access a NiFi node's URL, your request is replicated by the elected cluster coordinator to all nodes in the cluster and those nodes need to respond with what access the authenticated user is authorized for on each node. It is this replication request that is failing. You may need to dig a bit deeper in to your logs and configurations making sure that the NiFi instances successfully bound to those ports and those ports are not being blocked. Please help our community grow. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped. Thank you, Matt
... View more
09-09-2024
08:54 AM
1 Kudo
@jcsilva @gourexe The red flag that stands out here is that you stated you were using NiFi 1.16.2 and trying to upgrade to Nifi 1.16.3; however, you then state that the problematic component is version 1.18.0. This implies that you or someone else added additional nar files from NiFi 1.18.0 to your NiFi 1.16.2 install lib directory. Those newer version components may have introduced new properties that do not exist in the NiFi 1.16.x versions. When you upgraded to NiFi 1.16.3, those 1.18.0 nar versions no longer exist, so NiFi attempts to load the same class from 1.16.3 thus resulting in your issue. You should instead upgrade to 1.18.0 or newer version or you'll need to add in the additional nars once added before from 1.18. Please help our community thrive. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped. Thank you, Matt
... View more
09-09-2024
08:43 AM
1 Kudo
@NaveedButt The exception you shared is complaining about the nifi.sensitive.props.key property not being set in the nifi.properties file at startup: This pops key value is used to encrypt all sensitive component properties created in the flow.json.gz as you build your dataflows via the NiFi canvas. If you have not built any dataflows that utilize sensitive properties in the component configurations, you can just set some value and start your NiFi. If you have already existing dataflows on your NiFi canvas containing sensitive values set (passwords) in the configurtion(s), you'll need to retrieve the exact password from the original nifi.properties and use that. If original props key is not set, NiFi will fail to start when it tries to load the flow.json.gz since it will not be able to decrypt those passwords using the new props key. If you get stuck, you can carefully manually edit the flow.json.gz and remove all "enc{.....}" values. This will allow you to start your NiFi using a new sensitive props key value; however, all your configured passwords will be cleared and you will need to enter them again into your various component configurations. Please help our community thrive. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped. Thank you, Matt
... View more