1.What are the different types of tables available in HIve?
There are two types. Managed table and external table. In managed table both the data an schema in under control of hive but in external table only the schema is under control of Hive.
2.Is Hive suitable to be used for OLTP systems? Why?
No Hive does not provide insert and update at row level. So it is not suitable for OLTP system.
3.Can a table be renamed in Hive?
Alter Table table_name RENAME TO new_name
4.Can we change the data type of a column in a hive table?
Using REPLACE column option
ALTER TABLE table_name REPLACE COLUMNS ……
5.What is a metastore in Hive?
It is a relational database storing the metadata of hive tables, partitions, Hive databases etc
6.What is the need for custom Serde?
Depending on the nature of data the user has, the inbuilt SerDe may not satisfy the format of the data. SO users need to write their own java code to satisfy their data format requirements.
7.Why do we need Hive?
Hive is a tool in Hadoop ecosystem which provides an interface to organize and query data in a databse like fashion and write SQL like queries. It is suitable for accessing and analyzing data in Hadoop using SQL syntax.
8.What is the default location where hive stores table data?
9.What are the three different modes in which hive can be run?
10.Is there a date data type in Hive?
Yes. The TIMESTAMP data types stores date in java.sql.timestamp format