hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (Jira)" <j...@apache.org>
Subject [jira] [Work logged] (HADOOP-17088) Failed to load Xinclude files with relative path in case of loading conf via URI
Date Wed, 16 Sep 2020 17:51:00 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-17088?focusedWorklogId=485281&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-485281
]

ASF GitHub Bot logged work on HADOOP-17088:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 16/Sep/20 17:50
            Start Date: 16/Sep/20 17:50
    Worklog Time Spent: 10m 
      Work Description: hadoop-yetus commented on pull request #2097:
URL: https://github.com/apache/hadoop/pull/2097#issuecomment-693562391


   :confetti_ball: **+1 overall**
   
   
   
   
   
   
   | Vote | Subsystem | Runtime | Comment |
   |:----:|----------:|--------:|:--------|
   | +0 :ok: |  reexec  |   0m 37s |  Docker mode activated.  |
   ||| _ Prechecks _ |
   | +1 :green_heart: |  dupname  |   0m  0s |  No case conflicting files found.  |
   | +1 :green_heart: |  @author  |   0m  0s |  The patch does not contain any @author tags.
 |
   | +1 :green_heart: |  test4tests  |   0m  0s |  The patch appears to include 1 new or modified
test files.  |
   ||| _ trunk Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |  28m 57s |  trunk passed  |
   | +1 :green_heart: |  compile  |  19m 32s |  trunk passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1
 |
   | +1 :green_heart: |  compile  |  16m 50s |  trunk passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01
 |
   | +1 :green_heart: |  checkstyle  |   1m  0s |  trunk passed  |
   | +1 :green_heart: |  mvnsite  |   1m 28s |  trunk passed  |
   | +1 :green_heart: |  shadedclient  |  16m 55s |  branch has no errors when building and
testing our client artifacts.  |
   | +1 :green_heart: |  javadoc  |   0m 40s |  trunk passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1
 |
   | +1 :green_heart: |  javadoc  |   1m 36s |  trunk passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01
 |
   | +0 :ok: |  spotbugs  |   2m 16s |  Used deprecated FindBugs config; considering switching
to SpotBugs.  |
   | +1 :green_heart: |  findbugs  |   2m 14s |  trunk passed  |
   ||| _ Patch Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |   0m 49s |  the patch passed  |
   | +1 :green_heart: |  compile  |  18m 51s |  the patch passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1
 |
   | +1 :green_heart: |  javac  |  18m 51s |  the patch passed  |
   | +1 :green_heart: |  compile  |  16m 58s |  the patch passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01
 |
   | +1 :green_heart: |  javac  |  16m 58s |  the patch passed  |
   | +1 :green_heart: |  checkstyle  |   0m 57s |  the patch passed  |
   | +1 :green_heart: |  mvnsite  |   1m 25s |  the patch passed  |
   | +1 :green_heart: |  whitespace  |   0m  0s |  The patch has no whitespace issues.  |
   | +1 :green_heart: |  shadedclient  |  14m 14s |  patch has no errors when building and
testing our client artifacts.  |
   | +1 :green_heart: |  javadoc  |   0m 38s |  the patch passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1
 |
   | +1 :green_heart: |  javadoc  |   1m 35s |  the patch passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01
 |
   | +1 :green_heart: |  findbugs  |   2m 19s |  the patch passed  |
   ||| _ Other Tests _ |
   | +1 :green_heart: |  unit  |   9m 27s |  hadoop-common in the patch passed.  |
   | +1 :green_heart: |  asflicense  |   0m 55s |  The patch does not generate ASF License
warnings.  |
   |  |   | 160m  5s |   |
   
   
   | Subsystem | Report/Notes |
   |----------:|:-------------|
   | Docker | ClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2097/1/artifact/out/Dockerfile
|
   | GITHUB PR | https://github.com/apache/hadoop/pull/2097 |
   | Optional Tests | dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient
findbugs checkstyle |
   | uname | Linux 3b2079663149 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019
x86_64 x86_64 x86_64 GNU/Linux |
   | Build tool | maven |
   | Personality | dev-support/bin/hadoop.sh |
   | git revision | trunk / ce861836918 |
   | Default Java | Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01 |
   | Multi-JDK versions | /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1
/usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01 |
   |  Test Results | https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2097/1/testReport/
|
   | Max. process+thread count | 2156 (vs. ulimit of 5500) |
   | modules | C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common
|
   | Console output | https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2097/1/console
|
   | versions | git=2.17.1 maven=3.6.0 findbugs=4.0.6 |
   | Powered by | Apache Yetus 0.13.0-SNAPSHOT https://yetus.apache.org |
   
   
   This message was automatically generated.
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 485281)
    Remaining Estimate: 0h
            Time Spent: 10m

> Failed to load Xinclude files with relative path in case of loading conf via URI
> --------------------------------------------------------------------------------
>
>                 Key: HADOOP-17088
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17088
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Yushi Hayasaka
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When we create a configuration file, which load a external XML file with relative path,
and try to load it via calling `Configuration.addResource` with `Path(URI)`, we got an error,
which failed to load a external XML, after https://issues.apache.org/jira/browse/HADOOP-14216
is merged.
> {noformat}
> Exception in thread "main" java.lang.RuntimeException: java.io.IOException: Fetch fail
on include for 'mountTable.xml' with no fallback while loading 'file:/opt/hadoop/etc/hadoop/core-site.xml'
> 	at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:3021)
> 	at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2973)
> 	at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2848)
> 	at org.apache.hadoop.conf.Configuration.iterator(Configuration.java:2896)
> 	at com.company.test.Main.main(Main.java:29)
> Caused by: java.io.IOException: Fetch fail on include for 'mountTable.xml' with no fallback
while loading 'file:/opt/hadoop/etc/hadoop/core-site.xml'
> 	at org.apache.hadoop.conf.Configuration$Parser.handleEndElement(Configuration.java:3271)
> 	at org.apache.hadoop.conf.Configuration$Parser.parseNext(Configuration.java:3331)
> 	at org.apache.hadoop.conf.Configuration$Parser.parse(Configuration.java:3114)
> 	at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:3007)
> 	... 4 more
> {noformat}
> The cause is that the URI is passed as string to java.io.File constructor and File does
not support the file URI, so my suggestion is trying to convert from string to URI at first.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message