Is there a way to change the location that the database points to?
I tried the following methods:
alter database <my_db> set DBPROPERTIES('hive.warehouse.dir'='<new_hdfs_loc>');
alter database <my_db> set DBPROPERTIES('location'='<new_hdfs_loc>');
alter database <my_db> set location '<new_hdfs_loc>';
The first two alter statements simply changed the properties of the database, however the database still points to the same location; while the third alter statement gave me a semantics error.
Any help would be greatly appreciated.
source
share