I have a job that fails when there is no files in the input directory. The exception i get is the following:
org.apache.hadoop.mapreduce.lib.input.InvalidInputException:Input Pattern maprfs:/profile/*
I know this exception is coming from the FileInputFormat class. What would be the best approach for this problem. Would overwriting the InputFormat Class be the only solution?
Thank you
Put an empty file in your input path.
At the beginning of your driver list your Input path(S). If there isn’t a file, then exit without submit the job.