How to check whether the file exist in HDFS location, using oozie?

前端 未结 1 1617
独厮守ぢ
独厮守ぢ 2020-12-20 23:58

How to check whether a file in HDFS location is exist or not, using Oozie?

In my HDFS location I will get a file like this test_08_01_2016.csv at 11PM

1条回答
  •  一向
    一向 (楼主)
    2020-12-21 00:38

    you can use EL expression in oozie like:

    
             
                
                  ${fs:exists('/path/test_08_01_2016.csv')} 
                
                
             
    
    

    You can also build the name of the file using simple shell script using capture output.

    0 讨论(0)
提交回复
热议问题