You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by andi andi <an...@gmail.com> on 2009/09/24 07:39:45 UTC

access hdfs & post job from client application

Hello,
How to access hdfs (put, get, or delete) from client application
(programmatically) ? client application reside in another computer.
Also, if I've a map reduce application, how to post job from client
application (in client computer) into hadoop server ?

Thanks,
Andy

Re: access hdfs & post job from client application

Posted by Anthony Urso <an...@gmail.com>.
First set up your cluster and the client machine as per the getting
started guide.  Synchronize your configuration files everywhere.

The FileSystem class has the API for interacting with the HDFS:

http://hadoop.apache.org/common/docs/r0.20.1/api/org/apache/hadoop/fs/FileSystem.html

The JobConf and JobClient classes hold the API for posting MapReduce jobs.

http://hadoop.apache.org/common/docs/r0.20.1/api/org/apache/hadoop/mapred/JobClient.html
http://hadoop.apache.org/common/docs/r0.20.1/api/org/apache/hadoop/mapred/JobConf.html

Check the examples jar for more sample code.

Cheers,
Anthony

On Wed, Sep 23, 2009 at 10:39 PM, andi andi <an...@gmail.com> wrote:
> Hello,
> How to access hdfs (put, get, or delete) from client application
> (programmatically) ? client application reside in another computer.
> Also, if I've a map reduce application, how to post job from client
> application (in client computer) into hadoop server ?
>
> Thanks,
> Andy
>