Re: Could not get FileSystem obj, get java.lang.NullPointerException !!

2010-06-23 Thread chaitanya krishna
Hi Elton, Can you mention the hadoop version? Also, can you double-check if you set "fs.default.name" property correctly in conf/hdfs-site.xml? -Chaitanya. On Thu, Jun 24, 2010 at 12:12 PM, elton sky wrote: > Hi, > I am new to hadoop programming. I am trying to copy a local file to HDFS. > M

Could not get FileSystem obj, get java.lang.NullPointerException !!

2010-06-23 Thread elton sky
Hi, I am new to hadoop programming. I am trying to copy a local file to HDFS. My code snippet is: . . Configuration conf = new Configuration(); InputStream in=null; OutputStream out = null; try { in = new BufferedInputStream(new FileInputStream(src));