FAQ
How to copy a file from a HDS to local file system with a JAVA API ?

where i can find a documentation and example about it?


thanks

Search Discussions

  • Harsh J at Feb 25, 2011 at 4:50 pm
    Hello,
    On Fri, Feb 25, 2011 at 6:38 PM, Alessandro Binhara wrote:
    How to copy a file from a HDS to local file system with a JAVA API ?
    where i can find a documentation and example about it?
    Have a look at the FileSystem API
    (http://hadoop.apache.org/common/docs/current/api/org/apache/hadoop/fs/FileSystem.html).

    You're looking for the FileSystem::copyToLocal(...) methods, specifically.

    --
    Harsh J
    www.harshj.com
  • Ayon Sinha at Feb 25, 2011 at 4:52 pm
    Use this API
    http://hadoop.apache.org/common/docs/current/api/index.html?org/apache/hadoop/fs/FileSystem.html

    The code is pretty straightforward.
    -Ayon





    ________________________________
    From: Alessandro Binhara <binhara@gmail.com>
    To: hdfs-user@hadoop.apache.org
    Sent: Fri, February 25, 2011 5:08:57 AM
    Subject: copy a file from hdfs to local file system with java


    How to copy a file from a HDS to local file system with a JAVA API ?

    where i can find a documentation and example about it?


    thanks
  • Suresh srinivas at Feb 25, 2011 at 6:25 pm
    For an example how it is done, look at FsShell#copyToLocal() and its
    internal implementation. It uses FileUtil#copy() method to do this copying.
    On Fri, Feb 25, 2011 at 5:08 AM, Alessandro Binhara wrote:

    How to copy a file from a HDS to local file system with a JAVA API ?

    where i can find a documentation and example about it?


    thanks


    --
    Regards,
    Suresh

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouphdfs-user @
categorieshadoop
postedFeb 25, '11 at 1:09p
activeFeb 25, '11 at 6:25p
posts4
users4
websitehadoop.apache.org...
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase