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
Hi Cheny,
When its creating the file, it should talk with NN. Here, since you
mentioned destination file path with DN ip port as full URI, it may treat
that as NN ip port and try to connect. So, it is failing .
Absolute paths in DFS will be hdfs://NN_IP:NN_Port/fileneme. This will be
the fs uri isĀ hdfs://namenode:nn rpc port// .
- Original Message -
From: Cheny coconuttree9...@gmail.com
To: core-u...@hadoop.apache.org
Cc:
Sent: Wednesday, July 20, 2011 6:34 PM
Subject: Error when Using URI in -put command
Not considering replication, if I use following
Cheny,
On Thu, Jul 21, 2011 at 7:04 AM, Cheny coconuttree9...@gmail.com wrote:
Can I make HDFS to locate the first block of the file on that specific
datanode?
No. There is no way to induce this unless you upload from the DN machine itself.
--
Harsh J