FAQ
Hi all
I try get length of file hadoop(RawFilesysten or hdfs) .
In javadoc method org.apache.hadoop.fs.FileStatus.getLen() writtend that
this method "return the length of this file, in blocks"
But method return size in bytes.

Is this bug in documentation or implememtation?
I use hadoop-0.18.3.


Dmitry Rzhevskiy.

Search Discussions

  • Dhruba Borthakur at Jun 28, 2009 at 12:54 am
    From my understanding, getLen() always returned the length of the file in
    bytes.

    thank,
    dhruba

    On Fri, Jun 26, 2009 at 9:20 AM, Dima Rzhevskiy wrote:

    Hi all
    I try get length of file hadoop(RawFilesysten or hdfs) .
    In javadoc method org.apache.hadoop.fs.FileStatus.getLen() writtend that
    this method "return the length of this file, in blocks"
    But method return size in bytes.

    Is this bug in documentation or implememtation?
    I use hadoop-0.18.3.


    Dmitry Rzhevskiy.
  • Dima Rzhevskiy at Jun 28, 2009 at 1:36 pm
    I create bug record in https://issues.apache.org/jira/browse/HADOOP-6114
    with attached patch for trunk.
    Dmitry.


    2009/6/28 Dhruba Borthakur <dhruba@gmail.com>
    From my understanding, getLen() always returned the length of the file in
    bytes.

    thank,
    dhruba

    On Fri, Jun 26, 2009 at 9:20 AM, Dima Rzhevskiy wrote:

    Hi all
    I try get length of file hadoop(RawFilesysten or hdfs) .
    In javadoc method org.apache.hadoop.fs.FileStatus.getLen() writtend that
    this method "return the length of this file, in blocks"
    But method return size in bytes.

    Is this bug in documentation or implememtation?
    I use hadoop-0.18.3.


    Dmitry Rzhevskiy.


    --
    С уважением,
    Ржевский Дмитрий,
    www.rzhevskiy.info
    тел. +7(926)426-55-55

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
categorieshadoop
postedJun 26, '09 at 4:20p
activeJun 28, '09 at 1:36p
posts3
users2
websitehadoop.apache.org...
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase