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

Matei Zaharia commented on HADOOP-4050:
---------------------------------------

You are right, calling mkdir on "." is strange, and the only reason I did it is 
because JUnit does not create the test/data directory for me automatically. 
Since you have a different Linux kernel from mine, this is probably why it's 
failing for you and not for me. I've looked carefully through the build.xml 
files for streaming, contrib and Hadoop itself, but I can't figure out where 
exactly streaming gets its data directory to be mkdir'ed. Maybe it does do it 
in Java after all. I will create a patch for build-contrib.xml that makes the 
data directory at the same time it makes logs, etc to see if that fixes it.

> TestFairScheduler failed on Linux
> ---------------------------------
>
>                 Key: HADOOP-4050
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4050
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: contrib/fair-share
>         Environment: Linux
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Matei Zaharia
>         Attachments: 4050_20080902debug.patch, HADOOP-4050.patch
>
>
> {noformat}
> Testsuite: org.apache.hadoop.mapred.TestFairScheduler
> Tests run: 13, Failures: 0, Errors: 13, Time elapsed: 0.042 sec
> Testcase: testAllocationFileParsing took 0.004 sec
>         Caused an ERROR
> /home/tsz/hadoop/latest/build/contrib/fairscheduler/test/data/./test-pools 
> (No such file or directory)
> java.io.FileNotFoundException: 
> /home/tsz/hadoop/latest/build/contrib/fairscheduler/test/data/./test-pools 
> (No such file or directory)
>         at java.io.FileOutputStream.open(Native Method)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
>         at java.io.FileWriter.<init>(FileWriter.java:46)
>         at 
> org.apache.hadoop.mapred.TestFairScheduler.setUp(TestFairScheduler.java:215)
> ...
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to