You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by Manickam P <ma...@outlook.com> on 2013/09/26 16:35:03 UTC

Moving a file to HDFS

Guys,
I have done a federated cluster setup. when i try to move a file to HDFS using copyFromLocal it says the below.      copyFromLocal: Renames across FileSystems not supportedI used the below command to move the file. ./hdfs dfs -copyFromLocal /home/1gb-junk /home/storage/mount1 
Am i doing anything wrong here? pls help me to resolve this issue. It really stuck me. 
Below is my core site xml.       <property>		<name>fs.default.name</name>		<value>viewfs:///</value>	</property>	<property>		<name>fs.viewfs.mounttable.default.link./home/storage/mount1</name>		<value>hdfs://10.108.99.68:8020</value>	</property>	<property>		<name>fs.viewfs.mounttable.default.link./home/storage/mount2</name>		<value>hdfs://10.108.99.69:8020</value>	</property> 
Below is my hdfs site xml:     <property>	 <name>dfs.replication</name>	 <value>2</value>	</property> 	<property>        <name>dfs.webhdfs.enabled</name>        <value>true</value>    </property>	<property>        <name>dfs.federation.nameservices</name>        <value>nn01,nn02</value>    </property>    <property>        <name>dfs.namenode.rpc-address.nn01</name>        <value>10.108.99.68:8020</value>      </property>      <property>        <name>dfs.namenode.rpc-address.nn02</name>        <value>10.108.99.69:8020</value>      </property>	<property>	  <name>dfs.name.dir</name>	  <value>/home/storage/namenode</value>	</property>

Thanks,
Manickam P 		 	   		  

RE: Moving a file to HDFS

Posted by Manickam P <ma...@outlook.com>.
Hi, 
I tried that also. The command i used - ./hdfs dfs -copyFromLocal /home/1gb-junk hdfs://10.108.99.68:8020/home/storage/mount1It says copyFromLocal: `hdfs://10.108.99.68:8020/home/storage/mount1': No such file or directory

Thanks,
Manickam P

From: dwivedishashwat@gmail.com
Date: Thu, 26 Sep 2013 20:47:22 +0530
Subject: Re: Moving a file to HDFS
To: user@hadoop.apache.org
CC: manickam.p@outlook.com

Try to put full hdfs address and see



On Thu, Sep 26, 2013 at 8:05 PM, Manickam P <ma...@outlook.com> wrote:


 /home/1gb-junk

Thanks & Regards            


	
	
	
	


 ∞

Shashwat Shriparv

 		 	   		  

RE: Moving a file to HDFS

Posted by Manickam P <ma...@outlook.com>.
Hi, 
I tried that also. The command i used - ./hdfs dfs -copyFromLocal /home/1gb-junk hdfs://10.108.99.68:8020/home/storage/mount1It says copyFromLocal: `hdfs://10.108.99.68:8020/home/storage/mount1': No such file or directory

Thanks,
Manickam P

From: dwivedishashwat@gmail.com
Date: Thu, 26 Sep 2013 20:47:22 +0530
Subject: Re: Moving a file to HDFS
To: user@hadoop.apache.org
CC: manickam.p@outlook.com

Try to put full hdfs address and see



On Thu, Sep 26, 2013 at 8:05 PM, Manickam P <ma...@outlook.com> wrote:


 /home/1gb-junk

Thanks & Regards            


	
	
	
	


 ∞

Shashwat Shriparv

 		 	   		  

RE: Moving a file to HDFS

Posted by Manickam P <ma...@outlook.com>.
Hi, 
I tried that also. The command i used - ./hdfs dfs -copyFromLocal /home/1gb-junk hdfs://10.108.99.68:8020/home/storage/mount1It says copyFromLocal: `hdfs://10.108.99.68:8020/home/storage/mount1': No such file or directory

Thanks,
Manickam P

From: dwivedishashwat@gmail.com
Date: Thu, 26 Sep 2013 20:47:22 +0530
Subject: Re: Moving a file to HDFS
To: user@hadoop.apache.org
CC: manickam.p@outlook.com

Try to put full hdfs address and see



On Thu, Sep 26, 2013 at 8:05 PM, Manickam P <ma...@outlook.com> wrote:


 /home/1gb-junk

Thanks & Regards            


	
	
	
	


 ∞

Shashwat Shriparv

 		 	   		  

RE: Moving a file to HDFS

Posted by Manickam P <ma...@outlook.com>.
Hi, 
I tried that also. The command i used - ./hdfs dfs -copyFromLocal /home/1gb-junk hdfs://10.108.99.68:8020/home/storage/mount1It says copyFromLocal: `hdfs://10.108.99.68:8020/home/storage/mount1': No such file or directory

Thanks,
Manickam P

From: dwivedishashwat@gmail.com
Date: Thu, 26 Sep 2013 20:47:22 +0530
Subject: Re: Moving a file to HDFS
To: user@hadoop.apache.org
CC: manickam.p@outlook.com

Try to put full hdfs address and see



On Thu, Sep 26, 2013 at 8:05 PM, Manickam P <ma...@outlook.com> wrote:


 /home/1gb-junk

Thanks & Regards            


	
	
	
	


 ∞

Shashwat Shriparv

 		 	   		  

Re: Moving a file to HDFS

Posted by shashwat shriparv <dw...@gmail.com>.
Try to put full hdfs address and see



On Thu, Sep 26, 2013 at 8:05 PM, Manickam P <ma...@outlook.com> wrote:

> /home/1gb-junk




*Thanks & Regards    *

∞
Shashwat Shriparv

Re: Moving a file to HDFS

Posted by shashwat shriparv <dw...@gmail.com>.
Try to put full hdfs address and see



On Thu, Sep 26, 2013 at 8:05 PM, Manickam P <ma...@outlook.com> wrote:

> /home/1gb-junk




*Thanks & Regards    *

∞
Shashwat Shriparv

Re: Moving a file to HDFS

Posted by shashwat shriparv <dw...@gmail.com>.
Try to put full hdfs address and see



On Thu, Sep 26, 2013 at 8:05 PM, Manickam P <ma...@outlook.com> wrote:

> /home/1gb-junk




*Thanks & Regards    *

∞
Shashwat Shriparv

Re: Moving a file to HDFS

Posted by shashwat shriparv <dw...@gmail.com>.
Try to put full hdfs address and see



On Thu, Sep 26, 2013 at 8:05 PM, Manickam P <ma...@outlook.com> wrote:

> /home/1gb-junk




*Thanks & Regards    *

∞
Shashwat Shriparv