Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
rohitpatil1993
Contributor II
Contributor II

tWaitForFile for HDFS ?

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.

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

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

View solution in original post

3 Replies
Anonymous
Not applicable

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

rohitpatil1993
Contributor II
Contributor II
Author

Worked as expected.

 

Here is the solution for those who might need it.0695b00000G5UvDAAV.jpg

Anonymous
Not applicable

Great! Although your feedback is late. 😉