hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kanaka kumar avvaru (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-8767) RawLocalFileSystem.listStatus() returns null for UNIX pipefile
Date Tue, 14 Jul 2015 10:13:04 GMT

     [ https://issues.apache.org/jira/browse/HDFS-8767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

kanaka kumar avvaru updated HDFS-8767:
    Status: Patch Available  (was: Open)

As per java.io.File documentation, file.isFile() & file.isDirectory() return false and
file.list() return null for non regular files like pipes. 
I this case {{RawLocalFileSystem.listStatus()}} returning null. So, we can check if the file
is of type other and return the status

Attached patch for fix

> RawLocalFileSystem.listStatus() returns null for UNIX pipefile
> --------------------------------------------------------------
>                 Key: HDFS-8767
>                 URL: https://issues.apache.org/jira/browse/HDFS-8767
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Haohui Mai
>            Assignee: kanaka kumar avvaru
>            Priority: Critical
>         Attachments: HDFS-8767-00.patch
> Calling FileSystem.listStatus() on a UNIX pipe file returns null instead of the file.
The bug breaks Hive when Hive loads data from UNIX pipe file.

This message was sent by Atlassian JIRA

View raw message