title: org.apache.hadoop.fs.UnsupportedFileSystemException: No FileSystem for scheme "s3"
body: <p>I have this piece of code:</p>
  <pre class="lang-scala prettyprint-override"><code>import org.apache.hadoop.fs.Path
  import org.apache.hadoop.conf.Configuration
  
  new Path(&quot;s3://bucket/key&quot;).getFileSystem(new Configuration())
  </code></pre>
  <p>When I run it locally I get the following exception:</p>
  <pre><code>No FileSystem for scheme &quot;s3&quot;
  org.apache.hadoop.fs.UnsupportedFileSystemException: No FileSystem for scheme &quot;s3&quot;
      at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:3336)
      at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3356)
      at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:123)
      at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3407)
      at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3375)
      at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:486)
      at org.apache.hadoop.fs.Path.getFileSystem(Path.java:365)
  </code></pre>
  <p>However, when I run it on EMR using spark-shell this works:</p>
  <pre><code>scala&gt; new Path(&quot;s3://bucket/key&quot;).getFileSystem(new Configuration())
  res0: org.apache.hadoop.fs.FileSystem = com.amazon.ws.emr.hadoop.fs.s3n.S3NativeFileSystem
  </code></pre>
  <p>What am I supposed to add to my sbt file in order to include <code>com.amazon.ws.emr.hadoop.fs.s3n.S3NativeFileSystem</code> in my project? I know s3a:// works, but I'd like to use s3:// both in local tests and in the EMR application.</p>