hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dhruba borthakur (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-2194) dfs cat on a file that does not exist throws a java IOException
Date Wed, 06 Feb 2008 15:25:08 GMT

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

dhruba borthakur commented on HADOOP-2194:

This is a generic issue, what I mean is that there are many portions of client code that needs
to map a RemoteException to a more specifiex Exception. Most client side code somehow maps
a Remote Exception to a printable string that the user can understand. Maybe it makes more
sense to have a new method in the RemoteException class itself that parses the remote exception
string and generates an appropriate exception (and/or message) that is relevant to the Client
code. This will ensure that the mapping of the RemoteException to the client exception/message
remain localized to one place instead of being scattered all around in the client code.

> dfs cat on a file that does not exist throws a java IOException
> ---------------------------------------------------------------
>                 Key: HADOOP-2194
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2194
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.15.1, 0.16.0
>            Reporter: Mukund Madhugiri
>            Assignee: Mahadev konar
>             Fix For: 0.17.0
>         Attachments: patch_2194_1.patch, patch_2194_2.patch, patch_2194_3.patch, patch_2194_4.patch
> The dfs cat command throws an IOException when the file does not exist:
> bin/hadoop dfs -cat doesnotexist
> cat: java.io.IOException: Cannot open filename<home directory>/doesnotexist]
> In Linux, if a file does not exist, cat displays this:
> cat: doesnotexist: No such file or directory

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

View raw message