hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Owen O'Malley (JIRA)" <j...@apache.org>
Subject [jira] Created: (HADOOP-894) dfs client protocol should allow asking for parts of the block map
Date Tue, 16 Jan 2007 19:42:27 GMT
dfs client protocol should allow asking for parts of the block map
------------------------------------------------------------------

                 Key: HADOOP-894
                 URL: https://issues.apache.org/jira/browse/HADOOP-894
             Project: Hadoop
          Issue Type: Improvement
          Components: dfs
            Reporter: Owen O'Malley
         Assigned To: Sameer Paranjpye


I think that the HDFS client protocol should change like:

/** The meta-data about a file that was opened. */
class OpenFileInfo {
  /** the info for the first block */
  public LocatedBlockInfo getBlockInfo();
  public long getBlockSize();
  public long getLength();
}

interface ClientProtocol extends VersionedProtocol {
  public OpenFileInfo open(String name) throws IOException;
  /** get block info for any range of blocks */
  public LocatedBlockInfo[] getBlockInfo(String name, int blockOffset, int blockLength) throws
IOException;
}

so that the client can decide how much block info to request and when. Currently, when the
file is opened or an error occurs, the entire block list is requested and sent.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message