There isn't one, and this ought to be the only way (unless you're
willing to build an infrastructure that can keep a block->lines meta
info mapping for optimally fetching a single block given a line # --
but that's overkill?).

On Fri, Apr 22, 2011 at 11:37 PM, Shi Yu <sh...@uchicago.edu> wrote:
> I use
>
> hadoop dfs -text <path>  | head-n
>
> hadoop dfs -text <path>  | tail-n
>
> to browse the n-th line from the head or from the tail. But it is slow when
> the file is large. Is there any command that goes directly to a specific
> line in dfs?
>
> Shi
>



-- 
Harsh J

Reply via email to