Hi Cheny, I'm pretty sure you should provide the namenode's IP and datanode's prot.
Something more like this: > hadoop dfs -put <localfilename> hdfs://<namenode ip>:8020/<filename> -Eric > -----Original Message----- > From: Cheny [mailto:coconuttree9...@gmail.com] > Sent: Wednesday, July 20, 2011 8:34 PM > To: core-u...@hadoop.apache.org > Subject: Error when Using URI in -put command > > > Not considering replication, if I use following command from a hadoop > client > outside the cluster(the client is not a datanode) > > hadoop dfs -put <localfilename> hdfs://<datanode ip>:50010/<filename> > > Can I make HDFS to locate the first block of the file on that specific > datanode? > > I tried to do that and I got this error: > > put: Call to /xxx.xxx.xxx.xxx(ip of my datanode):50010 failed on local > exception: java.io.EOFException > > Any help is greatly appreciated. > > -- > View this message in context: http://old.nabble.com/Error-when-Using-URI- > in--put-command-tp32104146p32104146.html > Sent from the Hadoop core-user mailing list archive at Nabble.com.