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

Switch to Plain View
MapReduce >> mail # user >> Folder not created using Hadoop Mapreduce code


+
unmesha sreeveni 2013-11-14, 06:27
Copy link to this message
-
Re: Folder not created using Hadoop Mapreduce code
Unless you FileSystem's mkdir() method , i m not sure you create a folder
in hdfs
On 14 Nov 2013 11:58, "unmesha sreeveni" <[EMAIL PROTECTED]> wrote:

> I am trying to create a file with in "in" folder. but when i tried to run
> this in cluster i noticed that this "in" folder is not within hdfs.
>
> why is it so?
>
> Any thing wrong?
>
> My Driver code is
>
>  Path in = new Path("in");
>     Path input = new Path("in/inputfile");
>     BufferedWriter createinput = new BufferedWriter(new OutputStreamWriter(fs.create(input)));
>
> According to this code a "in" folder and a file "inputfile" should be
> created in working directory of cluster right?
>
> --
> *Thanks & Regards*
>
> Unmesha Sreeveni U.B
>
> *Junior Developer*
>
>
>
+
Amr Shahin 2013-11-14, 06:40
+
Rahul Bhattacharjee 2013-11-14, 06:58
+
unmesha sreeveni 2013-11-14, 07:12
+
unmesha sreeveni 2013-11-14, 07:15
+
unmesha sreeveni 2013-11-14, 07:17
+
java8964 java8964 2013-11-14, 15:21
+
unmesha sreeveni 2013-11-15, 03:04
+
unmesha sreeveni 2013-11-15, 11:04
+
unmesha sreeveni 2013-11-14, 06:51
+
Amr Shahin 2013-11-14, 06:53