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

Jane Chen commented on HADOOP-7549:
-----------------------------------

Hi Alejandro,

Thank you for your input.  

I was using the bundled jars directly. I found that I have to call 
FileSystem.loadFileSystems() in the same thread where JVM is initialized.  So I 
got it working now.  

I'm guessing the class loader used in the ServiceLoader doesn't get the 
classpath set if it isn't the same thread creating the JVM.  But I haven't 
tried to prove it.  I'd love to hear it if you have any insight on that.

Thanks again,
Jane 
                
> Use JDK ServiceLoader mechanism to find FileSystem implementations
> ------------------------------------------------------------------
>
>                 Key: HADOOP-7549
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7549
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs
>    Affects Versions: 0.23.0
>            Reporter: Alejandro Abdelnur
>            Assignee: Alejandro Abdelnur
>             Fix For: 2.0.0-alpha
>
>         Attachments: HADOOP-7549v1.patch, HADOOP-7549v2.patch, 
> HADOOP-7549v3.patch
>
>
> Currently configuring FileSystem implementations must be done by declaring 
> the FileSystem class in the Hadoop configuration files (core-default.xml, 
> ...).
> Using JDK ServiceLoader mechanism this configuration step can be avoided. 
> Adding the JAR file with the additional FileSystem implementation would 
> suffice. 
> This is similar to what is being proposed for compression codecs 
> (HADOOP-7350).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to