HIVE is one of the Components of Hadoop built on top of HDFS and is a high level abstract language on top of MapReduce to process the data. HIVEQL is similar like SQL in dealing Structured Data. Question on Managed Tables and External tables is inevitable in every interview for Hadoop Developer.
The following are few differences of two tables in HIVE.
The following are few differences of two tables in HIVE.
Managed Table | External Table |
---|---|
Default table of HIVE | These tables are external to the HIVE warehouse system |
No need to use any extra Key Word at the time of Schema Definition | We have to use External, Location Key Words |
When we drop table Metadata from Metastore removed and tabular data from warehouse also be removed completely. | Metadate will be removed but Tabular data will be persistent on HDFS path. It will not be removed. |
Always stored the data in default HIVE location path | Stores the data in an external location other than warehouse location path (which specified by the user using Location key word). |
Comments