hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Folder creation using Path in MR java code
Date Sat, 30 Nov 2013 10:05:19 GMT
Take a look at this API (and its variants):
http://hadoop.apache.org/docs/current/api/org/apache/hadoop/fs/FileSystem.html#create(org.apache.hadoop.fs.Path,%20boolean)

On Nov 30, 2013, at 12:54 AM, unmesha sreeveni <unmeshabiju@gmail.com> wrote:

> Hi all
>          How to create a folder in hdfs using java code
> 
> I tried
> 
> Path folder = new Path("dir1");
> 
> But it is not created in hdfs. And i also tried it in eclipse. There also the folder
is not creating.
>  
> 
> -- 
> Thanks & Regards
> 
> Unmesha Sreeveni U.B
> Junior Developer
> 
> 

Mime
View raw message