[
https://issues.apache.org/jira/browse/HADOOP-14363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15990160#comment-15990160
]
Hudson commented on HADOOP-14363:
---------------------------------
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11654 (See
[https://builds.apache.org/job/Hadoop-trunk-Commit/11654/])
HADOOP-14363. Inconsistent default block location in FileSystem javadoc.
(liuml07: rev c735362df719227adf9a648b2d425288cd4e4c2e)
* (edit)
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java
> Inconsistent default block location in FileSystem javadoc
> ---------------------------------------------------------
>
> Key: HADOOP-14363
> URL: https://issues.apache.org/jira/browse/HADOOP-14363
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Reporter: Mingliang Liu
> Assignee: Chen Liang
> Priority: Trivial
> Fix For: 3.0.0-alpha3
>
> Attachments: HADOOP-14363.001.patch
>
>
> {code:title=FileSystem::getFileBlockLocations()}
> ..
> *
> * The default implementation returns an array containing one element:
> * <pre>
> * BlockLocation( { "localhost:50010" }, { "localhost" }, 0, file.getLen())
> * </pre>>
> *
> * @param file FilesStatus to get data from
> * @param start offset into the given file
> * @param len length for which to get locations for
> * @throws IOException IO failure
> */
> public BlockLocation[] getFileBlockLocations(FileStatus file,
> long start, long len) throws IOException {
> ...
> String[] name = {"localhost:9866"};
> String[] host = {"localhost"};
> return new BlockLocation[] {
> new BlockLocation(name, host, 0, file.getLen()) };
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]