[
https://issues.apache.org/jira/browse/HDFS-2242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13085370#comment-13085370
]
Todd Lipcon commented on HDFS-2242:
-----------------------------------
I think the issue is that the "tests" jar didn't used to include the
core-site.xml.
What's happening is:
common's core-site.xml has set:
{code}
<property>
<name>hadoop.tmp.dir</name>
<value>build/test</value>
<final>true</final>
</property>
{code}
but then hdfs-default.xml sets:
{code}
<property>
<name>dfs.namenode.name.dir</name>
<value>file://${hadoop.tmp.dir}/dfs/name</value>
</property>
{code}
so, we're getting {{file://build/test/dfs/name}} there. Then, URI.getPath() on
that returns /test/dfs/name.
I think the fix is to exclude core-site.xml from the -test jar assembly for
common.
> HDFS tests are failing due to storage directory issues
> ------------------------------------------------------
>
> Key: HDFS-2242
> URL: https://issues.apache.org/jira/browse/HDFS-2242
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: name-node
> Reporter: Eli Collins
> Assignee: Alejandro Abdelnur
>
> This test fails on my host on trunk.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira