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

Akira AJISAKA commented on HADOOP-11733:
----------------------------------------

bq. +1 for tracking down the individual tests that write to /tmp and changing 
them to write to the directory defined by the {{test.build.dir}} system 
property.
Make sense to me but I'm thinking the cause of this issue is different.
* For hadoop-root, property "hadoop.tmp.dir" is set to /tmp/hadoop-${user.name} 
by default, so some files are created in /tmp. We should override the 
configuration in tests.
* For hsperfdata_root, I'm thinking it's a java issue. You can change 
{{java.io.tmpdir}} to the directory different from /tmp to avoid the issue.
* For Jetty and hdfs-nfs, we should change some configurations to avoid writing 
to /tmp. Now I'm not sure what configuration to change.

> mvn clean does not clean /tmp
> -----------------------------
>
>                 Key: HADOOP-11733
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11733
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: build, test
>    Affects Versions: 2.6.0
>         Environment: All
>            Reporter: Tony Reix
>            Assignee: Akira AJISAKA
>            Priority: Minor
>
> When Hadoop tests are run, files and directories are created in /tmp .
> Many (or all) of them are not cleaned when running "mvn clean".
> This generates an issue when tests were previously run (by mistake) as root 
> and then run again as a non-root user, since directories (like: .hdfs-nfs 
> hadoop-root hsperfdata_root) cannot be written by second test run.
> List of files/directories that seem to be created in /tmp when testing Hadoop:
>    Jetty* *test *deferred .hdfs-nfs hadoop-root hsperfdata_root
> and that should be cleaned after tests.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to