hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Angeles <patr...@cloudera.com>
Subject Re: How to create a temporary HDFS file system using Java?
Date Wed, 09 Jun 2010 15:54:30 GMT
Hey Stan,

There's really no way to programmatically spin up an HDFS cluster. What's
your actual goal?


- Patrick

p.s., Thanks for all the great comix! ;-)

On Wed, Jun 9, 2010 at 4:48 AM, stan lee <lee.stan065@gmail.com> wrote:

> Hi Experts,
> Although HDFS file system has exposed some APIs which can be used to create
> directory, file, read and write data, can you tell me that whether there is
> any API exposed to be used to create an HDFS file system in Java programe?
> For example, I have two machines, one is namenode, the other one is
> datanode, before using HDFS API to create/delete dir and read/write data
> into distributed system, how can I create a tempory HDFS file system under
> /home/stan/hdfs using Java? Is there any API or example to do this?
> Thanks!
> Stan

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message