You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Colin Patrick McCabe (JIRA)" <ji...@apache.org> on 2013/09/03 20:01:55 UTC
[jira] [Commented] (HADOOP-9915) o.a.h.fs.Stat support on Macosx
[ https://issues.apache.org/jira/browse/HADOOP-9915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13756844#comment-13756844 ]
Colin Patrick McCabe commented on HADOOP-9915:
----------------------------------------------
thanks for looking at this Binglin.
{code}
+ @Before
+ public void setUp() throws Exception {
+ fs = FileSystem.getLocal(new Configuration());
+ testDir = new Path(getTestRootPath(fs), "teststat");
+ fs.mkdirs(testDir);
+ }
+
+ @After
+ public void tearDown() throws Exception {
+ fs.delete(testDir, true);
+ }
{code}
Can we move this to testStat? It seems like a waste to set up a new FileSystem and testDir on every test, given that only testStat uses them.
> o.a.h.fs.Stat support on Macosx
> -------------------------------
>
> Key: HADOOP-9915
> URL: https://issues.apache.org/jira/browse/HADOOP-9915
> Project: Hadoop Common
> Issue Type: Improvement
> Reporter: Binglin Chang
> Assignee: Binglin Chang
> Priority: Trivial
> Attachments: HADOOP-9915.v1.patch
>
>
> Support macosx in o.a.h.fs.Stat.
> The stat cmd in macosx seems the same as stat in freebsd. I make mac to use the same ExecString as freebsd, it seems to work fine.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira