Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello People
My requirement is to wait for a file in HDFS and move to next step of flow only when the file appears/exists in directory.
If the file is not yet present when the flow run, It should loop again until the file does not appear. One the file appear, then the flow moves ahead.
Will tWaitForFile work for this scenario ?
Is there any other approach to achieve this functionality ?
Thanks in advance.
Hi
tWaitForFile is used monitor the local file system. You can try tLoop (while type)+tHDFSFileExist, define a context variable (boolean type) and set its default value as true, once the file exists, set the context variable as false and exit the loop, use tSleep to pause for a few seconds between each cycle.
Regards
Shong
Hi
tWaitForFile is used monitor the local file system. You can try tLoop (while type)+tHDFSFileExist, define a context variable (boolean type) and set its default value as true, once the file exists, set the context variable as false and exit the loop, use tSleep to pause for a few seconds between each cycle.
Regards
Shong
Worked as expected.
Here is the solution for those who might need it.
Great! Although your feedback is late. 😉