When use managed table and external table in hive?
Furthermore, what is difference between external table and managed table in hive?
when we create a table in HIVE, HIVE by default manages the data and saves it in its own warehouse, where as we can also create an external table, which is at an existing location outside the HIVE warehouse directory. The main difference between these two types of tables is seen during LOAD and DROP statements.
Also, what are managed and external tables in hive?
There are two types of tables in Hive ,one is Managed table and second is external table. the difference is , when you drop a table, if it is managed table hive deletes both data and meta data,if it is external table Hive only deletes metadata. by default It is Managed table .
We create an external table for external use as when we want to use the data outside the Hive. External tables are stored outside the warehouse directory. They can access data stored in sources such as remote HDFS locations or Azure Storage Volumes.