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

Sai

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 , on a daily basis.

I want check whether this file exist after 11.15 PM. I can schedule the batch using a Oozie coordinator job.

But how can I validate if the file exists in HDFS?

abhiieor

you can use EL expression in oozie like:

<decision name="CheckFile">
         <switch>
            <case to="nextOozieTask">
              ${fs:exists('/path/test_08_01_2016.csv')} <!--do note the path which should be in ''-->
            </case>
            <default to="MailActionFileMissing" />
         </switch>
</decision>

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

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

How to check whether file exist or not in given URL?

分類Dev

Check whether files in a file list exist in a certain directory

分類Dev

How can I check whether a option already exist in select by JQuery

分類Dev

How to check whether any particular partition exist or not in HIVE

分類Dev

Oozie Copy files from one hdfs location to another

分類Dev

how to check if date and string exist in text file

分類Dev

How can I check whether a given file is FASTA?

分類Dev

How to check whether the phone number is exists in contact DB or not using phonegap?

分類Dev

Javascript check whether a file exists

分類Dev

How to check if a section in MVC Core configuration file exist?

分類Dev

How to check for 30sec if file in folder exist?

分類Dev

How to check if multiple conditions strings exist in the csv using BufferedReader?

分類Dev

How to check entered value is exist or not using Jquery or javascript

分類Dev

How to create a URL object that points to an hdfs location?

分類Dev

NGINX: check whether $remote_user equals to the first part of the location

分類Dev

How to upload file to HDFS in Ubuntu

分類Dev

How to check if XML value exist?

分類Dev

Fastest way to check if a file exist using standard C++/C++11/C?

分類Dev

Check if all of multiple strings or regexes exist in a file

分類Dev

How to check whether a string contains a substring in Kotlin?

分類Dev

How to check whether the system is FreeBSD in a python script?

分類Dev

How to check whether an item exists in the dynamodb table?

分類Dev

Room: how to check whether row exists

分類Dev

How to check whether a widget is currently clicked with the mouse?

分類Dev

How to check whether a user is authenticated or not in Firebase?

分類Dev

How to check whether GNU Make supports Guile

分類Dev

How to check whether a string was already entered?

分類Dev

How to check and store whether user is logged in correctly?

分類Dev

How to check whether a bucket exists in GCS with python

Related 関連記事

  1. 1

    How to check whether file exist or not in given URL?

  2. 2

    Check whether files in a file list exist in a certain directory

  3. 3

    How can I check whether a option already exist in select by JQuery

  4. 4

    How to check whether any particular partition exist or not in HIVE

  5. 5

    Oozie Copy files from one hdfs location to another

  6. 6

    how to check if date and string exist in text file

  7. 7

    How can I check whether a given file is FASTA?

  8. 8

    How to check whether the phone number is exists in contact DB or not using phonegap?

  9. 9

    Javascript check whether a file exists

  10. 10

    How to check if a section in MVC Core configuration file exist?

  11. 11

    How to check for 30sec if file in folder exist?

  12. 12

    How to check if multiple conditions strings exist in the csv using BufferedReader?

  13. 13

    How to check entered value is exist or not using Jquery or javascript

  14. 14

    How to create a URL object that points to an hdfs location?

  15. 15

    NGINX: check whether $remote_user equals to the first part of the location

  16. 16

    How to upload file to HDFS in Ubuntu

  17. 17

    How to check if XML value exist?

  18. 18

    Fastest way to check if a file exist using standard C++/C++11/C?

  19. 19

    Check if all of multiple strings or regexes exist in a file

  20. 20

    How to check whether a string contains a substring in Kotlin?

  21. 21

    How to check whether the system is FreeBSD in a python script?

  22. 22

    How to check whether an item exists in the dynamodb table?

  23. 23

    Room: how to check whether row exists

  24. 24

    How to check whether a widget is currently clicked with the mouse?

  25. 25

    How to check whether a user is authenticated or not in Firebase?

  26. 26

    How to check whether GNU Make supports Guile

  27. 27

    How to check whether a string was already entered?

  28. 28

    How to check and store whether user is logged in correctly?

  29. 29

    How to check whether a bucket exists in GCS with python

ホットタグ

アーカイブ