Re: how to display a specific text line in dfs

2011-04-22 Thread Harsh J
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 wrote: > I use > > hadoop dfs

how to display a specific text line in dfs

2011-04-22 Thread Shi Yu
I use hadoop dfs -text | head-n hadoop dfs -text | 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