Day: February 21, 2023

Section 6:55. Retrieve Metadata of Hive Tables using Describe(Extended and Formatted)

In Hive, you can use the DESCRIBE command to retrieve metadata about a table. The DESCRIBE command provides information about the columns in the table, their data types, and other properties. You can use two different variants of the DESCRIBE command in Hive to get the metadata of a table, which are: DESCRIBE EXTENDED – …

Section 6:55. Retrieve Metadata of Hive Tables using Describe(Extended and Formatted) Read More »

Section 6:54. Creating the first table in Hive and List the tables

To create a table in Hive and list all the tables in the current database, you can use the following commands: Creating a table Replace table_name, column1_name, column2_name, etc. with the names you want to give your table and its columns. Replace data_type with the appropriate data type for each column (e.g. STRING, INT, DOUBLE, …

Section 6:54. Creating the first table in Hive and List the tables Read More »

Section 6:53. Creating the Database in Hive and switching to Database

To create a database in Hive and switch to it, you can use the following commands: Creating a database: CREATE DATABASE database_name; Replace database_name with the name you want to give your database. This command will create a new database in Hive. Switching to a database: USE database_name; Replace database_name with the name of the …

Section 6:53. Creating the Database in Hive and switching to Database Read More »

Section 6:52. Understanding Warehouse Directory

In Hive, the metastore is the central repository that stores metadata about the Hive tables, partitions, columns, and other objects. The Hive metastore can be configured to store this metadata in different types of databases, including MySQL, PostgreSQL, Oracle, and Derby. When you create a table in Hive, the metadata about the table is stored …

Section 6:52. Understanding Warehouse Directory Read More »