Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

If input directory is empty, then no mappers or Reducer will run?

Highlighted

If input directory is empty, then no mappers or Reducer will run?

New Contributor

If input directory is empty, then no mappers or Reducer will run?

1 REPLY 1

Re: If input directory is empty, then no mappers or Reducer will run?

New Contributor

As a number of mappers depend upon the number of InputSplits , as no data no input splits hence no mappers. Without any mapper, a number of the reducer is also 0.

If we try to run map/reduce job on Hadoop cluster without specifying any input file it will throw following exception: java.io.IOException: No input paths specified in job.

Don't have an account?
Coming from Hortonworks? Activate your account here