<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: FileSystem provider not found (s3, Kosmos) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/FileSystem-provider-not-found-s3-Kosmos/m-p/30393#M6815</link>
    <description>&lt;P&gt;I still could not fix the issue but i digged a bit more in the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So ServiceProvider loads all implementations of a given class which would be org.apache.hadoop.fs.FileSystem - to know which FileSystem classes to load it looks&lt;/P&gt;&lt;P&gt;in a file located at META-INF/services/org.apache.hadoop.fs.FileSystem in each referenced jar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hadoop-client 2.6.0-mr1-cdh5.4.4 includes the following hadoop jars which provide a file META-INF/services/org.apache.hadoop.fs.FileSystem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. hadoop-common-2.6.0-cdh5.4.4.jar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;org.apache.hadoop.fs.LocalFileSystem&lt;BR /&gt;org.apache.hadoop.fs.viewfs.ViewFileSystem&lt;BR /&gt;org.apache.hadoop.fs.ftp.FTPFileSystem&lt;BR /&gt;org.apache.hadoop.fs.HarFileSystem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. hadoop-hdfs-2.6.0-cdh5.4.4.jar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;org.apache.hadoop.hdfs.DistributedFileSystem&lt;BR /&gt;org.apache.hadoop.hdfs.web.HftpFileSystem&lt;BR /&gt;org.apache.hadoop.hdfs.web.HsftpFileSystem&lt;BR /&gt;org.apache.hadoop.hdfs.web.WebHdfsFileSystem&lt;BR /&gt;org.apache.hadoop.hdfs.web.SWebHdfsFileSystem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cant find more services config files in the context, but still FileSystem.get() tries to load org.apache.hadoop.fs.s3.S3FileSystem. Why is this happening?&lt;/P&gt;&lt;P&gt;Where does this information comes from. If this is a general issue everyone using cloudera 5.4.x client jars should have this problem which i somehow can not image.&lt;/P&gt;&lt;P&gt;So Im still thinking there is a general error in my setup - I just dont know which one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;</description>
    <pubDate>Mon, 03 Aug 2015 13:07:29 GMT</pubDate>
    <dc:creator>lars81</dc:creator>
    <dc:date>2015-08-03T13:07:29Z</dc:date>
    <item>
      <title>FileSystem provider not found (s3, Kosmos)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/FileSystem-provider-not-found-s3-Kosmos/m-p/30171#M6814</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we recently upgraded our cloudera cluster from 4.5.x to 5.4.3. I upgraded the clients as well and followed the maven client documentation of cloudera 5. I just included&lt;/P&gt;&lt;P&gt;the hadoop-client.jar in version 2.6.0-mr1-cdh5.4.3. Everything worked fine except the calls to org.apache.hadoop.fs.FileSystem.get() which fail with an exception&lt;/P&gt;&lt;P&gt;that FileSystem Providers like S3FileSystem, KosmosFileSystem etc are not available. I noticed that these classes were included in the hadoop-client 2.0.0-mr1-cdh4.5.0&lt;/P&gt;&lt;P&gt;(hadoop-common) but not longer in the 5.x.x versions. Some moved to different jars (S3FileSystem to hadoop-aws) other like KosmosFileSystem i could not find&lt;/P&gt;&lt;P&gt;at all. If I mix 4.5.x and 5.4.x jars its starting to get messy (what a suprise :-))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general i am wondering why i have to provide these classes if i dont use them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked in the hadoop config files (core-site, core-default, hdfs-site) for a property which FileSystems providers to load, but was not able to find one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in the end I have 2 questions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Do I really have to provide all FileSystem Provider classes and if so how to find out where for example KosmosFileSystem is located ?&lt;/P&gt;&lt;P&gt;2. How to tell FileSystem class which providers to support?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general what is the best practice to have a client which uses FileSystem.get() to access the required file system?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im looking forward for any help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:36:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/FileSystem-provider-not-found-s3-Kosmos/m-p/30171#M6814</guid>
      <dc:creator>lars81</dc:creator>
      <dc:date>2022-09-16T09:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: FileSystem provider not found (s3, Kosmos)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/FileSystem-provider-not-found-s3-Kosmos/m-p/30393#M6815</link>
      <description>&lt;P&gt;I still could not fix the issue but i digged a bit more in the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So ServiceProvider loads all implementations of a given class which would be org.apache.hadoop.fs.FileSystem - to know which FileSystem classes to load it looks&lt;/P&gt;&lt;P&gt;in a file located at META-INF/services/org.apache.hadoop.fs.FileSystem in each referenced jar.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hadoop-client 2.6.0-mr1-cdh5.4.4 includes the following hadoop jars which provide a file META-INF/services/org.apache.hadoop.fs.FileSystem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. hadoop-common-2.6.0-cdh5.4.4.jar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;org.apache.hadoop.fs.LocalFileSystem&lt;BR /&gt;org.apache.hadoop.fs.viewfs.ViewFileSystem&lt;BR /&gt;org.apache.hadoop.fs.ftp.FTPFileSystem&lt;BR /&gt;org.apache.hadoop.fs.HarFileSystem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. hadoop-hdfs-2.6.0-cdh5.4.4.jar&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;org.apache.hadoop.hdfs.DistributedFileSystem&lt;BR /&gt;org.apache.hadoop.hdfs.web.HftpFileSystem&lt;BR /&gt;org.apache.hadoop.hdfs.web.HsftpFileSystem&lt;BR /&gt;org.apache.hadoop.hdfs.web.WebHdfsFileSystem&lt;BR /&gt;org.apache.hadoop.hdfs.web.SWebHdfsFileSystem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cant find more services config files in the context, but still FileSystem.get() tries to load org.apache.hadoop.fs.s3.S3FileSystem. Why is this happening?&lt;/P&gt;&lt;P&gt;Where does this information comes from. If this is a general issue everyone using cloudera 5.4.x client jars should have this problem which i somehow can not image.&lt;/P&gt;&lt;P&gt;So Im still thinking there is a general error in my setup - I just dont know which one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2015 13:07:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/FileSystem-provider-not-found-s3-Kosmos/m-p/30393#M6815</guid>
      <dc:creator>lars81</dc:creator>
      <dc:date>2015-08-03T13:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: FileSystem provider not found (s3, Kosmos)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/FileSystem-provider-not-found-s3-Kosmos/m-p/30398#M6816</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I figured it out and it was a transitive inhouse dependency which defined these FileSystem impl classes in its META-INF/services/org.apache.hadoop.fs.FileSystem.&lt;/P&gt;&lt;P&gt;So sorry for the topic ;-).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2015 14:40:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/FileSystem-provider-not-found-s3-Kosmos/m-p/30398#M6816</guid>
      <dc:creator>lars81</dc:creator>
      <dc:date>2015-08-03T14:40:27Z</dc:date>
    </item>
  </channel>
</rss>

