Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-9525

Missing META-INF/services/*FileSystemFactory in flink-hadoop-fs module

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.4.0, 1.5.0, 1.6.0
    • None
    • FileSystems

    Description

      if flink job dependencies includes `hadoop-common` and `hadoop-hdfs`, will throw runtime error.
      like this case: https://stackoverflow.com/questions/47890596/java-util-serviceconfigurationerror-org-apache-hadoop-fs-filesystem-provider-o.

      the root cause:
      see org.apache.flink.core.fs.FileSystem
      This class will load all available file system factories via ServiceLoader.load(FileSystemFactory.class).
      Since {{ META-INF / services / org.apache.flink.core.fs.FileSystemFactory }} file in the classpath does not have an `org.apache.flink.runtime.fs.hdfs.HadoopFsFactory`,
      and finaly only loaded one available LocalFileSystemFactory .

      more error messages see this screenshot.

      Attachments

        1. WX20180605-142414@2x.png
          361 kB
          Hai Zhou

        Activity

          People

            yew1eb Hai Zhou
            yew1eb Hai Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: