You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by Vivi Lang <sq...@gmail.com> on 2012/10/31 22:37:42 UTC

How to convert the local block to InputStream

Hi guys,
I would like to know if I need read certain block b1 in datanode n1 and b1
has a replica in datanode n1, how can I get that work? For example, I want
to encode block b1 in datanode n1. More specifically, how can I get the
content of block b1 directly so that I can convert it to a InputStream
Thanks