hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maha <m...@umail.ucsb.edu>
Subject Needs a simple answer
Date Thu, 16 Dec 2010 21:06:19 GMT
Hi all,

   Why the following lines would work in the main class (WordCount) and not in Mapper ? even
though " myconf " is set in WordCount to point to the getConf() returned object.

		    FileSystem hdfs = FileSystem.get(wc.WordCount.myconf);
		    hdfs.copyFromLocalFile(new Path("/Users/file"), new Path("/tmp/file"));
		   }catch(Exception e) { System.err.print("\nError");}

  Also, the print statement will never print on console unless it's in my run function..

      Appreciate it :)


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