How to prevent a Hadoop job to fail when directory is empty? How to prevent a Hadoop job to fail when directory is empty? hadoop hadoop

How to prevent a Hadoop job to fail when directory is empty?


  1. Put an empty file in your input path.

  2. At the beginning of your driver list your Input path(S). If there isn’t a file, then exit without submit the job.