A view in Hive can be seen by using
1. SHOW TABLES
2.SHOW VIEWS
3.DESCRIBE VIEWS
4.VIEW VIEWS
By default when a database is dropped in Hive
1. The tables are also deleted
2.The directory is deleted if there are no tables
3.The HDFS blocks are formatted
4. None of the above
Calling a unix bash script inside a Hive Query is an example of
1. Hive Pipeline
2.Hive Caching
3.Hive Forking
4.Hive Streaming
Each database created in hive is stored as
1. A file
2.A directory
3.A HDFS block
4. A jar file
For optimizing join of three tables, the largest sized tables should be placed as
1.The first table in the join clause
2. Second table in the join clause
3.Third table in the join clause
4. Does not matter
Hive can be accessed remotely by using programs written in C++, Ruby etc, over a single port. This is achieved by using
1.HiveServer
2.HiveMetaStore
3.HiveWeb
4.Hive Streaming
Hive uses _________ for logging.
1. logj4
2. log4l
3. log4i
4. log4j
hive-exec-log4j.properties
1.Storing data in tables and columns
2.Online transaction processing
3.Handling date time data
4.Partitioning stored data
HiveServer2 introduced in Hive 0.11 has a new CLI called
1.BeeLine
2.SqlLine
3. HiveLine
4.CLilLine
How to change the column data type in Hive
1. ALTER and CHANGE
2.ALTER
3. CHANGE
4.None of the above
If an Index is dropped then
1.The underlying table is also dropped
2. The directory containing the index is deleted
3.The underlying table is not dropped
4.Error is thrown by hive
If the database contains some tables then it can be forced to drop without dropping the tables by using the keyword
1. RESTRICT
2.OVERWRITE
3. F DROP
4.CASCADE
If the schema of the table does not match with the data types present in the file containing the table then Hive
1. Automatically drops the file
2. Automatically corrects the data
3. Reports Null values for mismatched data
4.Does not allow any query to run on the table
In Hive you can copy
1. The schema without the data
2.The data without the schema
3.Both schema and its data
4.Neither the schema nor its data
In which mode HiveServer2 only accepts valid Thrift calls.
1. Remote
2.HTTP
3.Embedded
4.Interactive
On dropping a external table
1.The schema gets dropped without dropping the data
2.The data gets dropped without dropping the schema
3.An error is thrown
4. Both the schema and the data is dropped
On dropping a managed table
1. The schema gets dropped without dropping the data
2.The data gets dropped without dropping the schema
3.An error is thrown
4.Both the schema and the data is dropped
Point out the correct statement
1. Hive is not a relational database, but a query engine that supports the parts of SQL
2. Hive is a relational database with SQL support
3. Pig is a relational database with SQL support
4.None of the above
The 2 default TBLPROPERTIES added by hive when a hive table is created is
1.hive_version and last_modified by
2. last_modified_by and last_modified_time
3. last_modified_time and hive_version
4.last_modified_by and table_location
The default delimiter in hive to separate the element in STRUCT is
1. '