title: Exception while submitting a mapreduce job from remote system
body: <p>I got an exception while submitting a mapreduce job from remote system</p>
  
  <blockquote>
    <p>13/10/28 18:49:52 ERROR security.UserGroupInformation: PriviledgedActionException as:root cause:org.apache.hadoop.mapred.InvalidInputException: Input path does not exist: file:/F:/Workspaces/Test/Hadoop/test</p>
  </blockquote>
  
  <p>My hadoop and mapreduce envirnment is configured on a linux machine. I submit the wordcount job from a local Windows PC as follows:</p>
  
  <pre><code>public static void main(String[] args) throws Exception {
  
      UserGroupInformation ugi = UserGroupInformation.createRemoteUser("root");
  
      try {
          ugi.doAs(new PrivilegedExceptionAction&lt;Void&gt;() {
  
              public Void run() throws Exception {
  
                  JobConf conf = new JobConf(MapReduce.class);
                  conf.set("mapred.job.name", "MyApp");
                  conf.set("mapred.job.tracker", "192.168.1.149:9001");
                  conf.set("fs.default.name","hdfs://192.168.1.149:9000");
                  conf.set("hadoop.job.ugi", "root");
  
                  conf.setOutputKeyClass(Text.class);
                  conf.setOutputValueClass(IntWritable.class);
  
                  conf.setMapperClass(Map.class);
                  conf.setCombinerClass(Reduce.class);
                  conf.setReducerClass(Reduce.class);
  
                  conf.setInputFormat(TextInputFormat.class);
                  conf.setOutputFormat(TextOutputFormat.class);
  
                  FileInputFormat.setInputPaths(conf, new Path("test"));
                  FileOutputFormat.setOutputPath(conf, new Path("test"));
  
                  JobClient.runJob(conf);
  
                  return null;
              }
          });
      } catch (Exception e) {
          e.printStackTrace();
      }
  }
  </code></pre>
  
  <p>where 192.168.1.149 is the hadoop configured linux pc. I started hadoop, mapreduce services there. Also <strong>test</strong> directory was also created with same java API, it worked. But mapreduce not.</p>
  
  <p>**Please help .. **</p>