hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Selwa <elhama...@gmail.com>
Subject datanode to blocks mapping
Date Sun, 12 Feb 2012 01:41:08 GMT
Hello there,
currently i am working on research about the block placement policy of HDFS.
I want to find the blocks mapping of the pseudo cluster.
then i request the name node for this data structure by the following code

       BlocksMap blocksMap = new BlocksMap(16, 0.75f);
      Collection<BlockInfo>blocks = blocksMap.getBlocks();
              but the collection does not hold any thing - always it is
             blocks.isempty() is becoming true even i saved some files on
the pseudo -cluster.
what is wrong with this code?
is there any other way to find block mapping?



View this message in context: http://lucene.472066.n3.nabble.com/datanode-to-blocks-mapping-tp3736421p3736421.html
Sent from the Hadoop lucene-dev mailing list archive at Nabble.com.

View raw message