title: No FileSystem for scheme: null
body: <p>I am trying to run a jar (maven project) using "hadoop -jar" and i get the error "No FileSystem for scheme". I have been reading about this error on stackoverflow and it seems like the problem is inside the META-INF/services/org.apache.hadoop.fs.FileSystem. Mine looks like this: </p>
  
  <pre><code>org.apache.hadoop.fs.LocalFileSystem
  org.apache.hadoop.fs.viewfs.ViewFileSystem
  org.apache.hadoop.fs.ftp.FTPFileSystem
  org.apache.hadoop.fs.HarFileSystem
  </code></pre>
  
  <p>HDFS lines are missing. 
  This is part of my code:</p>
  
  <pre><code>public int run(String[] args) throws Exception {   
       Configuration conf=getConf();    conf.set("fs.hdfs.impl",org.apache.hadoop.hdfs.DistributedFileSystem.class.getName());       conf.set("fs.file.impl",org.apache.hadoop.fs.LocalFileSystem.class.getName()); 
         args = new GenericOptionsParser(conf, args).getRemainingArgs();       
       Job job = Job.getInstance(conf,"Count");
       job.setInputFormatClass(ImageBundleInputFormat.class);
       job.setMapperClass(CountMapper.class);
       job.setReducerClass(CountReducer.class);
       job.setMapOutputKeyClass(IntWritable.class);
       job.setMapOutputValueClass(IntWritable.class);
       job.setOutputKeyClass(IntWritable.class);
       job.setOutputValueClass(Text.class);
       FileInputFormat.setInputPaths(job, new Path(args[0]));
       FileOutputFormat.setOutputPath(job, new Path(args[1]));
       job.addCacheFile(new URI("//path/lbpcascade_frontalcatface.xml"));
       job.setJarByClass(Count.class);
       boolean success = job.waitForCompletion(true);
       return success ? 0 : 1;
     }
  
  public static void main(String[] args) throws Exception {
  
  
         ToolRunner.run(new Count(), args);
         System.exit(0);
     }
  </code></pre>
  
  <p>The error is at line  boolean success = job.waitForCompletion(true);
  Any help would be appreciated. Thank you! :)</p>