CCD-410 · Question #21
Table metadata in Hive is:
The correct answer is C. Stored in the Metastore. By default, hive use an embedded Derby database to store metadata information. The metastore is the "glue" between Hive and HDFS. It tells Hive where your data files live in HDFS, what type of data they contain, what tables they belong to, etc. The Metastore is an application…
Question
Table metadata in Hive is:
Options
- AStored as metadata on the NameNode.
- BStored along with the data in HDFS.
- CStored in the Metastore.
- DStored in ZooKeeper.
How the community answered
(47 responses)- A13% (6)
- B4% (2)
- C77% (36)
- D6% (3)
Explanation
By default, hive use an embedded Derby database to store metadata information. The metastore is the "glue" between Hive and HDFS. It tells Hive where your data files live in HDFS, what type of data they contain, what tables they belong to, etc. The Metastore is an application that runs on an RDBMS and uses an open source ORM layer called DataNucleus, to convert object representations into a relational schema and vice versa. They chose this approach as opposed to storing this information in hdfs as they need the Metastore to be very low latency. The DataNucleus layer allows them to plugin many different RDBMS technologies. * By default, Hive stores metadata in an embedded Apache Derby database, and other client/server databases like MySQL can optionally be used. * features of Hive include: Metadata storage in an RDBMS, significantly reducing the time to perform semantic checks during query execution.
Topics
Community Discussion
No community discussion yet for this question.