Member since
12-19-2022
6
Posts
0
Kudos Received
0
Solutions
03-13-2023
09:11 AM
I have a Nifi pipeline (cluster with 3 nodes) that drop postgresql constraints and triggers, transform data in several tables and insert transformed data in a destination database, and recreate constraints and triggers. I need the pipeline to wait that all the flowfiles have been transformed to release one flowfile to recreate constraints and triggers. I cannot leave the pipeline without waiting all flowfiles because the first flowfile that arrived to the recreate constraint processor will recreate constraints while other flowfiles are still transforming and inserting data to destination database. Schema of what we need : What I have tried : I create a temporary table having a status column that is updated with true when data in the flowfile has been inserted in destination database. Then I have a groovy code that allows me to compare the number of flowfile initially created and the count of the status column equals true. If this comparison is true, the release identifier is created. It means that the last flowfile having the equality passes and recreate the constraints and triggers. This is not working because the count of several flowfile is the same (I don't know why), so several flowfile are passing the release or none of the flowfile pass the release processor. Do you an idea to stop the pipeline until all the flowfile arrived to this point (red bar on schema above) ?
... View more
Labels:
- Labels:
-
Apache NiFi
02-13-2023
08:23 AM
I work in Kubernetes. I deployed Nifi and SFTP server in other environment and everything works. So in the other environment there is a problem I don't understand. I applied the same deployment for both environment. Can the IP be blacklisted ?
... View more
02-13-2023
06:36 AM
Hello thank you for your advices. In nifi-app.log I only saw : "Stopping processor. Stopping scheduling". I never put ssh information in listsftp and it worked well before.Maybe the problem is on SFTP side. When I ssh on this SFTP server on my shell laptop it says "sftp only...".
... View more
02-13-2023
06:06 AM
Hello, I have an error I don't understand with ListSFTP processor. When I click on "Verify properties" for this processor it lists well an SFTP folder. Successfully listed contents of Remote Directory [/data/folder_1/] on [hosname:port]. Found 2 objects. Of those, 2 match the filter. But when I execute this processor I have the error I never seen: ListSFTP[id=X] Processing failed: org.apache.nifi.processors.standard.socket.ClientConnectException: SSH Client connection failed [hosname:port] - Caused by: java.net.SocketTimeoutException: connect timed out Why can I list when verify properties but processor doesn't work ? (Nifi version : 1.17.0) I changed nothing on Nifi and don't know what to do to correct the problem or what to do to investigate.
... View more
Labels:
- Labels:
-
Apache NiFi