Member since
07-30-2019
944
Posts
197
Kudos Received
91
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 1503 | 10-05-2021 01:53 PM | |
| 16322 | 09-23-2019 06:03 AM | |
| 6816 | 05-04-2019 08:42 PM | |
| 1502 | 06-11-2018 12:45 PM | |
| 12617 | 06-04-2018 01:11 PM |
05-10-2017
03:07 PM
@Prabir Guha I did a quick test and your regex worked just fine. What does your original flow file name look like?
... View more
05-10-2017
02:43 PM
@umair ahmed Okay, that is the expected behavior. Try the exact command in the ExecuteStreamCommand processor and see if it works? Just use the flow file as a trigger for the processor.
... View more
05-10-2017
02:24 PM
@umair ahmed Try changing "notanerror" to something else and see if you still get the error. I just put that as an example. Open a cmd window on your system and see if you can run the command outside of NiFi. Try something like, waitfor /T 10 test
... View more
05-10-2017
01:03 PM
@umair ahmed
I see the issue. While the values for sleeptime are in seconds, do not put the unit in the value. So, instead of 1800s, change that to 1800 and so on for the other values.
... View more
05-10-2017
12:33 PM
@umair ahmed What do you have in the property Command Arguments in the ExecuteStreamCommand processor? Please take a snapshot the Properties tab for the ExecuteStreamCommand processor. When I said you need to have the value in seconds for the sleeptime attribute, I meant inside the configuration of the advanced UI in the UpdateAttribute processor. In the template I uploaded, I was using minutes.
... View more
05-09-2017
05:54 PM
@umair ahmed
You are correct, it is a Windows problem. The timeout command does not work with input redirection. So, use the waitfor command and it will work, here is a snapshot of the reconfigured ExecuteScriptCommand processor: Even though it works, the waitfor command throws an error because the notanerror event never occurs before the time out period. Also, the sleeptime values have to be in seconds, not minutes or hours.
... View more
05-09-2017
03:47 PM
@umair ahmed I am not following you. What do you mean by "firing every 30 sec for 5 counts"? I just used the delay times as en example. How long do you want it to wait each time through? In my template, iI did the first time 60 seconds, second time 30 minutes, third time 1 hour, fourth time two hours.
... View more
05-09-2017
12:57 PM
@umair ahmed Correct, just replace /usr/bin/sleep with timeout. What version of Windows are you using?
... View more
05-09-2017
12:33 PM
@umair ahmed That is a command in Unix, to wait the amount of time specified, 30 seconds, one minute whatever is specified. The Windows equivalent is timeout I believe, so just replace the command.
... View more
05-08-2017
03:42 PM
1 Kudo
@HAR MAT
You can use the CRON driven option in the Scheduling strategy to have the flow run once. Or use the rest api to run the processor once. Here is an example using the cron option, the below processor will run once on May 8th, 2017 at 10AM
... View more