In Hive, you can create two types of tables: Managed and External
In the case of a managed table, you own the data, and therefore data is deleted when the table is deleted.
In the case of an external table, you do not have ownership of the data, and therefore, when you delete such a table, the underlying data is not deleted. Only metadata is deleted.
Now, recently, I noticed that you cannot create an external table above a location where you do not have write (change) permissions in HDFS. I do not fully understand this.
Use Case: It is quite common that the data you whip is huge and read-only. So, in order to drop such data through Hive, do you have to copy this huge data to the place where you have write permissions?
Please, help.
source share