hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan A. Veselovsky (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-9337) org.apache.hadoop.fs.DF.getMount() does not work on Mac OS
Date Thu, 28 Feb 2013 11:29:13 GMT

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

Ivan A. Veselovsky commented on HADOOP-9337:

Hi, Andrew, 
regarding the way (a): "-P" option of "df" command is especially designed to provide standard
POSIX format of the output.
I cannot state about all Unix systems, but I experimentally confirmed that this option is
supported on CentOS 6.3 and Mac 10.8.
I don't have AIX box, but documantation of AIX 6.1 also say that this option is supported,
see http://pic.dhe.ibm.com/infocenter/aix/v6r1/topic/com.ibm.aix.cmds/doc/aixcmds2/df.htm

Okay, I will write the test.
> org.apache.hadoop.fs.DF.getMount() does not work on Mac OS
> ----------------------------------------------------------
>                 Key: HADOOP-9337
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9337
>             Project: Hadoop Common
>          Issue Type: Bug
>         Environment: Mac OS 10.8
>            Reporter: Ivan A. Veselovsky
>            Assignee: Ivan A. Veselovsky
>         Attachments: HADOOP-9337--a.patch, HADOOP-9337--b.patch
> test org.apache.hadoop.fs.TestLocalFileSystem.testReportChecksumFailure() (added in HADOOP-9067)
appears to fail on MacOS because 
> method org.apache.hadoop.fs.DF.getMount() does not work correctly.
> The problem is that "df -k <path>" command returns on MacOS output like the following:
> -------
> Filesystem   1024-blocks      Used Available Capacity  iused    ifree %iused  Mounted
> /dev/disk0s4   194879828 100327120  94552708    52% 25081778 23638177   51%   /Volumes/Data
> -------
> while the following is expected:
> -------
> Filesystem         1024-blocks      Used Available Capacity Mounted on
> /dev/mapper/vg_iveselovskyws-lv_home 420545160  15978372 383204308       5% /home
> -------
> So, we see that Mac's output has 3 additional tokens.
> I can suggest 2 ways to fix the problem.
> (a) use "-P" (POSIX) option when invoking df command. This will probably ensure unifirm
output on all Unix systems;
> (b) move Mac branch to specific "case" branch and treat it specifically (like we currently
have for AIX, DF.java, line 214)

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

View raw message