You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Ahmed Radwan (JIRA)" <ji...@apache.org> on 2012/08/30 20:57:08 UTC
[jira] [Commented] (HADOOP-8749) HADOOP-8031 changed the way in
which relative xincludes are handled in Configuration.
[ 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