hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-14387) new Configuration() fails if core-site.xml isn't on the classpath
Date Fri, 05 May 2017 11:14:04 GMT

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

Steve Loughran commented on HADOOP-14387:
-----------------------------------------

{code}
- Check Hadoop version *** FAILED ***
  java.lang.RuntimeException: java.io.IOException: Fetch fail on include with no fallback
while loading 'core-site.xml'
  at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2872)
  at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2657)
  at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2545)
  at org.apache.hadoop.conf.Configuration.get(Configuration.java:1325)
  at com.hortonworks.spark.cloud.CloudSuite$.loadConfiguration(CloudSuite.scala:353)
  at com.hortonworks.spark.cloud.common.HadoopVersionSuite$$anonfun$1.apply$mcV$sp(HadoopVersionSuite.scala:32)
  at com.hortonworks.spark.cloud.common.HadoopVersionSuite$$anonfun$1.apply(HadoopVersionSuite.scala:31)
  at com.hortonworks.spark.cloud.common.HadoopVersionSuite$$anonfun$1.apply(HadoopVersionSuite.scala:31)
  at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
  at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
  ...
  Cause: java.io.IOException: Fetch fail on include with no fallback while loading 'core-site.xml'
  at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2831)
  at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2657)
  at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2545)
  at org.apache.hadoop.conf.Configuration.get(Configuration.java:1325)
  at com.hortonworks.spark.cloud.CloudSuite$.loadConfiguration(CloudSuite.scala:353)
  at com.hortonworks.spark.cloud.common.HadoopVersionSuite$$anonfun$1.apply$mcV$sp(HadoopVersionSuite.scala:32)
  at com.hortonworks.spark.cloud.common.HadoopVersionSuite$$anonfun$1.apply(HadoopVersionSuite.scala:31)
  at com.hortonworks.spark.cloud.common.HadoopVersionSuite$$anonfun$1.apply(HadoopVersionSuite.scala:31)
  at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
  at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
{code}

> new Configuration() fails if core-site.xml isn't on the classpath
> -----------------------------------------------------------------
>
>                 Key: HADOOP-14387
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14387
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: conf
>    Affects Versions: 3.0.0-alpha3
>         Environment: test run in downstream project with no core-site in test/resources
>            Reporter: Steve Loughran
>            Priority: Blocker
>
> If you try to create a config via {{new Configuration()}} and there isn't a {{core-site.xml}}
on the CP, you get a stack trace. Previously it'd just skip the failure to load.
> This is a regression which breaks downstream apps that don't need a core-site to run,
but do want to load core-default &c



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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