[ 
https://issues.apache.org/jira/browse/FLINK-9525?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16501503#comment-16501503
 ] 

ASF GitHub Bot commented on FLINK-9525:
---------------------------------------

Github user StephanEwen commented on the issue:

    https://github.com/apache/flink/pull/6118
  
    I think this is a misdiagnosis, this should not be merged.
    
    Flink does not need a file system factory for Hadoop, it uses Hadoop's FS 
as the general fallback for all schemes that it does not have a factory for.
    
    The exception in the linked JIRA comes from Hadoop's own File System 
discovery. There is probably some casting error or so (may be due to inverted 
classloading).


> Missing META-INF/services/*FileSystemFactory in flink-hadoop-fs module
> ----------------------------------------------------------------------
>
>                 Key: FLINK-9525
>                 URL: https://issues.apache.org/jira/browse/FLINK-9525
>             Project: Flink
>          Issue Type: Bug
>          Components: FileSystem
>    Affects Versions: 1.4.0, 1.5.0, 1.6.0
>            Reporter: Hai Zhou
>            Assignee: Hai Zhou
>            Priority: Blocker
>             Fix For: 1.6.0, 1.5.1
>
>         Attachments: [email protected]
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to