Member since
07-30-2019
3404
Posts
1621
Kudos Received
1003
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 174 | 12-05-2025 08:25 AM | |
| 314 | 12-03-2025 10:21 AM | |
| 586 | 11-05-2025 11:01 AM | |
| 437 | 11-05-2025 08:01 AM | |
| 891 | 11-04-2025 10:16 AM |
01-23-2018
02:30 PM
@Jan What process did you follow to create the keystore and truststore you are using now? You will need to create a new keystore and truststore. Thanks, Matt
... View more
01-23-2018
02:28 PM
@Shashwat Gaur The overall throughput of NiFi is not being limited in any way at the NiFi software level. In most cases throughput is limited by CPU, Disk I/O, Memory, and/or network performance. I would check if any of the above are saturated. It is important that installation best practices are followed to maximize your throughput. At a minimum having the following located on separate physical disks (disks should be setup as RAIDs to protect your data) will help: - Content repository(s) - FlowFile repository - Provenance repository(s) - NiFI logging directory. When it comes to controlling throughput in your dataflow, look for bottleneck in your dataflow and check that you have optimized your processor components for concurrent tasks and run schedules. If your CPU is not saturated, consider increasing the number of configured threads you are allowing NiFi to hand out to its processor components in the "controller settings" (found under hamburger menu in upper right corner of NiFi UI). Change the value for "Max Timer Driven Thread Count". Good starting place is 2 - 4 times number of cores on a single NiFi instance (all settings are per node in a cluster). There is also a setting for "Max Event Driven Thread Count" which should be left unchanged. These event driven threads are experimental and not used by any NiFi components by default. If you find a lot of Garbage Collection is going on or you are hitting OutOfMemory(heap) exceptions, you may need to increase your heap allocation in the nifi bootstrap.conf file. You may also need to make dataflow design changes to reduce the heap footprint of your flow. Thank you, Matt
... View more
01-23-2018
01:56 PM
@Jan Tip: add comments to existing answers unless you are really starting a new answer thread. From a security standpoint, using "localhost" in a certificate is not a good idea. As far as SAN entries go, they must be added during the certificate creation process. I am not clear on why you would build a dataflow that will be used on a MiNiFi instance to talk back to itself (MiNiFi)? Or are you trying to create a dataflow to convert into a yml file which will include an RPG that is pointing back to your main NiFi instance. If the latter is the case, you will need to have separate keystore and truststore for each NiFi instance (MiNiFi and NiFi). As long as all certificates are signed by the same CA, a single truststore that contains a trustedCertEntry for that shared CA can be used on both MiNiFi and NiFi installs. If both certificates are self signed, you will need to make sure the public cert is loaded in to each others truststores or the TLS handshake will fail. If you are just creating keystores and truststores to play around with, you could use something like tinycerts to generate them for you. https://www.tinycert.org/ Thank you, Matt If you found this answer addressed your original question, please take a moment to click "accpet" below the answer.
... View more
01-23-2018
12:36 PM
@Jan This error is telling you the hostname in the URL header does not match the owner or any Subject Alternative Names (SAN) in the server certificate being presented by the target server. For example: You configure an RPG with a target NiFi URL of "https://nifiserver:9443/nifi". During the TLS handshake the server identifies itself based on the contents of its keystore as "nifiserver01.corp.com". The above error is thrown because it appears some other server is trying to pretend to be intended destination server "nifiserver". NiFi's Site-to-SIte (S2S) capability uses the keystore and truststore configured in the nifi.properties file of both NiFi instances (Client side running RPG and server side running input/output ports) for the TLS handshake. You will want to perform a verbose listing of the keystore file on your target Nifi and make sure the following are true: 1. The keystore contains only a single PrivateKeyEntry 2. The owner of that single PrivateKeyEntry has a CN value or a SAN entry that matches the hostname of that server. Then make sure that you are using either the owner CN or one of the SAN entries in the URL used in your client side RPG. Thanks, Matt
... View more
01-19-2018
02:35 PM
2 Kudos
@Andrew Twigg Make sure that your keystore and certs meet the following: - The keystore file used on each server contains only a single PrivateKeyEntry. - The certificate in the keystore has an extended key usage that includes both client auth and server auth Thank you, Matt
... View more
01-18-2018
06:52 PM
@Alvin Jin Looks like you are hitting https://issues.apache.org/jira/browse/NIFI-4761 If you add a local host entry on your box that resolved "nifi-0.svc" to the IP associated to "master-ip", that should work if putting https://nifi-0.svc:9443/nifi/ does not work already. Is that master node ip the same ip that is assigned to nifi-0.svc? If so, try setting the nifi.web.https.host= to the IP instead of the hostname. Thanks, Matt
... View more
01-18-2018
05:28 PM
@Alvin Jin NiFi would have never started if a port was not specified. Let me be clear that you are setting up yoru NiFi to either run over a secure or non-secure port and not both. for a non-secure NiFi set these: nifi.web.http.host=
nifi.web.http.port= and for a secured NiFi, set these: nifi.web.https.host= nifi.web.https.port= I am not familiar with Kubernete containers. Is the hostname of the container the same as the public facing hostname? Thank you, Matt
... View more
01-18-2018
04:08 PM
@dhieru singh Yo may also consider a two phase approach to mergeContent processor. By using two MergeContent processors in series, you will reduce your NiFi's heap usage and the number of FLowfiles needing to be merged in each iteration. For example, you may have first mergeContent merge based on number of FlowFiles (min 10000 and max 15000). Then have the second merge on size (assuming 64 MB to 128 MB for your HDFS, you would set min size to 64 MB and max to 128 MB). Thanks, Matt
... View more
01-18-2018
04:03 PM
@dhieru singh When you say "all processors" are being overwhelmed, are you saying connection between every single processor is filling and triggering back pressure in your dataflow? Have you looked that the resource of your hardware running your NiFi instance? Is CPU becoming, memory, and/or disk I/O becoming saturated during these spikes? If so, there is not much with in the configuration of NiFi that can help much here. In a case like this it would require that you expand your NiFi into a cluster. You then have two options for your ListenTCP feed. 1. Run the ListenTCP processor on all nodes and place an external load-balancer to distribute the TCP traffic to every node. 2. Have the ListenTCP processor receive data on only one node, but immediately feed the success relationship form that ListenTCP processor to a Remote Process Group (RPG) that can be used to redistribute the received FlowFiles to all nodes in your cluster to spread out the work being done by the rest of the processors in your dataflow(s) If your resources are not saturated, make sure you have allocated enough "Max Timer Driven Threads" to your NiFi instance so that all processors are fully utilizing those server CPU resources. Defaults for NiFi are only 10. The Max Timer Driven Thread count can be adjusted in the "Controller settings" UI found within the hamburger menu in the upper right corner. Note: do not adjust defaults for Event Driven Thread Count. This just increase a thread pool that i not used by default. If disk I/O is high, following best practices to make sure the NiFi logs, Provenance repository(s), Content repository(s), and FlowFile repository are all located on their own physical disks would help here. Thank you, Matt
... View more