O'Reilly logo

Mastering AWS Development by Uchit Vyas

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Data model

Hive data is organized as databases. A database is a logical collection of Hive tables. A database surrounded by Hive, consigns a namespace for its tables. If no namespace is assigned to Hive tables, they go to the default database. Creating a database results in the creation of a HDFS directory for the files in the database. This directory serves as the namespace for the tables. The CREATE DATABASE hadoop; command constructs a Hadoop database. When we list the HDFS directory structure, we can check a directory created for this database with the following command:

drwxr-xr-x   - uchit supergroup 0 2015-02-28 18:55 /user/hive/warehouse/hadoop.db

Now let's discuss the terminology behind Hive and its use cases:

  • A table is the elementary unit ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required