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 > >
