Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HDFS >> mail # user >> Folder creation using Path in MR java code


Copy link to this message
-
Re: Folder creation using Path in MR java code
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 <[EMAIL PROTECTED]> 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
>
>