Re: Transfer Data to new location

2013-02-12 Thread Hamza Asad
so that i still query existing data successfully On Tue, Feb 12, 2013 at 10:08 PM, Hamza Asad wrote: > Actually i have data in HDFS under HIVE/Warehouse path. I ran short of > disk space so i'm changing HDFS location (in new HDD partition). so please > tell me how can i transfer my existing da

Re: Transfer Data to new location

2013-02-12 Thread Hamza Asad
Actually i have data in HDFS under HIVE/Warehouse path. I ran short of disk space so i'm changing HDFS location (in new HDD partition). so please tell me how can i transfer my existing data safely to new location. On Tue, Feb 12, 2013 at 9:54 PM, Nitin Pawar wrote: > little more clarification >

Re: Transfer Data to new location

2013-02-12 Thread Dean Wampler
hadoop fs -mv old_path new_path If one new_path isn't in HDFS, use -get instead of -mv. If you're moving Hive tables, you should then use ALTER TABLE to change the metadata. Or, if the tables are external and have no partitions, you could just drop them and recreate them with the new location. O

Re: Transfer Data to new location

2013-02-12 Thread Nitin Pawar
little more clarification is it same hdfs cluster ? when you say migrating data from one location to another are you keeping the hive table metadata same? how much of capacity you have by disk wise? On Tue, Feb 12, 2013 at 10:20 PM, Hamza Asad wrote: > i want to change my HIVE/HDFS directory.