title: Exception in thread "main" org.apache.hadoop.mapred.InvalidInputException: Input path does not exist:
body: <p>I have created a input directory and put sample file in it.I have created an output directory also.but at the time of mapreduce program execution i got the below error.Here is my command to execute mapreduce</p>
  
  <pre><code>bin/hdfs dfs -mkdir /input
  bin/hdfs dfs -put /home/biswajit/sample.txt /input/
  bin/hadoop jar /usr/local/hadoop/hadoop-2.9.0/share/hadoop/mapreduce/units.jar com.hadoop.ProcessUnits /input/sample.txt /output
  </code></pre>
  
  <p>Error is</p>
  
  <pre><code>Exception in thread "main" org.apache.hadoop.mapred.InvalidInputException: Input path does not exist: **hdfs://localhost:54310/home/biswajit/input/sample.txt**
      at org.apache.hadoop.mapred.FileInputFormat.singleThreadedListStatus(FileInputFormat.java:294)
      at org.apache.hadoop.mapred.FileInputFormat.listStatus(FileInputFormat.java:236)
      at org.apache.hadoop.mapred.FileInputFormat.getSplits(FileInputFormat.java:322)
      at org.apache.hadoop.mapreduce.JobSubmitter.writeOldSplits(JobSubmitter.java:341)
      at org.apache.hadoop.mapreduce.JobSubmitter.writeSplits(JobSubmitter.java:333)
      at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:202)
      at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1570)
      at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1567)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:422)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1886)
      at org.apache.hadoop.mapreduce.Job.submit(Job.java:1567)
      at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:576)
      at org.apache.hadoop.mapred.JobClient$1.run(JobClient.java:571)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAs(Subject.java:422)
      at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1886)
      at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:571)
      at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:562)
      at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:871)
      at com.hadoop.ProcessUnits.main(ProcessUnits.java:96)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.apache.hadoop.util.RunJar.run(RunJar.java:239)
      at org.apache.hadoop.util.RunJar.main(RunJar.java:153)
  </code></pre>