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

Ahmed Radwan commented on HADOOP-8749:
--------------------------------------

Basically we need to use parse(InputStream is, String systemId) which provides 
a base for resolving relative URIs. Here is a new patch that fixes this issue.
                
> HADOOP-8031 changed the way in which relative xincludes are handled in 
> Configuration.
> -------------------------------------------------------------------------------------
>
>                 Key: HADOOP-8749
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8749
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: conf
>            Reporter: Ahmed Radwan
>            Assignee: Ahmed Radwan
>
> The patch from HADOOP-8031 changed the xml parsing to use 
> DocumentBuilder#parse(InputStream uri.openStream()) instead of 
> DocumentBuilder#parse(String uri.toString()).I looked into the implementation 
> of javax.xml.parsers.DocumentBuilder and org.xml.sax.InputSource and there is 
> a difference when the DocumentBuilder parse(String) method is used versus 
> parse(InputStream).

--
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