Question: Problem 7 . Basics for Pig, Hive, and HBase (Pig) The command to open Pig shell, Grunt, in a local mode is: Answer: $ Suppose

Problem 7. Basics for Pig, Hive, and HBase

(Pig) The command to open Pig shell, Grunt, in a local mode is:

Answer:

$

Suppose we design a Pig program to count the number of workers. Suppose the script file name is CountWorkers.pig. How to submit the script file in the terminal such that it will run in local mode? Please provide the command.

Answer:

$

(Hive) In Hive, what is the command to start a Hive shell?

Answer:

$

In Hive, what is the command to run a script in non-interactive mode? Suppose the script file is example.sql

Answer:

$

In Hive, Please provide the command to list all the databases:

Answer:

hive>

(HBase) Previously, in Hadoop, we used start-dfs.sh and start-yarn.sh commands to start HDFS and YARN services. In HBase, what is the command to start HBase service?

Answer:

$

This file is in which directory?

Answer:

After we start the HBase service, we can start the HBase shell. Please provide the command to start the HBase shell?

Answer:

$

Suppose we already have a table workers. The workers information has been put into this table. Rob wants to view all the information. Which command should Rob type in the shell in order to see all the workers information in the table workers?

Answer:

$

If we program a CountWorkers.java source code file for using HBase to count the workers, how should we run this HBase program? Rob figures out we need to first compile it into a runnable CountWorkers.jar file. Then what is the command to run this CountWorkers.jar file?

Answer:

$

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!