hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "XieXianshan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-7494) Add -c option for FSshell -tail
Date Mon, 15 Aug 2011 07:49:27 GMT

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

XieXianshan commented on HADOOP-7494:
-------------------------------------

Thanks for your review and guidance,Daryn.
Yes,i think the formatted message is much clearer than the primitive(i.e. For input string:
"something").
And meanwhile,it is also beneficial to keep the style of exception consistent with the others
in preprocessOptions(). 

{quote}The fact that both 0 & 1 are 0 offset is odd.{quote}
I think so,furthermore,the "\-c\-\+10" is also hard to understand while "\-c\+\-10" is invalid.

> Add -c option for FSshell -tail
> -------------------------------
>
>                 Key: HADOOP-7494
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7494
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: fs
>    Affects Versions: 0.23.0
>            Reporter: XieXianshan
>            Assignee: XieXianshan
>            Priority: Trivial
>             Fix For: 0.23.0
>
>         Attachments: HADOOP-7494-v0.2.patch, HADOOP-7494-v0.3.patch, HADOOP-7494.patch
>
>
> Add the "-c" option for FSshell -tail to allow users to specify the output bytes(currently,it's
-1024 by default).
> For instance:
> $ hdfs dfs -tail -c -10 /user/hadoop/xiexs
> or
> $ hdfs dfs -tail -c+10 /user/hadoop/xiexs

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message