Question : Which project provides prgramatic access like JDBC or ODBC of the data stored in HDFS 1. Hive 2. Pig 3. OOzie 4. Flume
Correct Answer : 1
Apache Hive :
You can use Hive, to fetch the already stored data in HDFS, with the HiveServer class. Which provides JDBC like interface.
Hive is an abstraction on top of MapReduce Allows users to query data in the Hadoop cluster without knowing Java or MapReduce - Uses the HiveQL language - Very similar to SQL - The Hive Interpreter runs on a client machine - Turns HiveQL queries into MapReduce jobs - Hive Submits jobs to the cluster Note: this does not turn the cluster into a relational database server! It is still simply running MapReduce jobs Those jobs are created by the Hive Interpreter
Refer HadoopExam.com Recorded Training Module : 12 and 13
Question : Hive stores in table format like RDBMS 1. True 2. False
Correct Answer : 2
Hive is an abstraction on top of MapReduce Allows users to query data in the Hadoop cluster without knowing Java or MapReduce - Uses the HiveQL language - Very similar to SQL - The Hive Interpreter runs on a client machine - Turns HiveQL queries into MapReduce jobs - Hive Submits jobs to the cluster Note: this does not turn the cluster into a relational database server! It is still simply running MapReduce jobs Those jobs are created by the Hive Interpreter
Refer HadoopExam.com Recorded Training Module : 12 and 13
Question : In case of hive, table definition is stored in a metastore 1. true 2. false
Correct Answer : 1
Hives Metastore
- is a database containing table definitions and other metadata - By default, stored locally on the client machine in a Derby database - If mulAple people will be using Hive, the system administrator should create a shared Metastore - Usually in MySQL or some other relaAonal database server
Refer HadoopExam.com Recorded Training Module : 12 and 13
1. Iterative repetition of MapReduce jobs until a desired answer or state is reached. 2. Sequences of MapReduce and Pig jobs. These are limited to linear sequences of actions with exception handlers but no forks. 3. Sequences of MapReduce jobs only; no Pig or Hive tasks or jobs. These MapReduce sequences can be combined with forks and path joins. 4. Sequences of MapReduce and Pig. These sequences can be combined with other actions including forks, decision points, and path joins.