Home / MCQ Bank / Computer
Computer Data Processing With Pig

Which of the following find the running time of each script (in seconds)?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • a = load '/mapred/history/done' using HadoopJobHistoryLoader() as (j:map[], m:map[], r:map[]); b = foreach a generate j#'PIG_SCRIPT_ID' as id, j#'USER' as user, j#'JOBNAME' as script_name, (Long) j#'SUBMIT_TIME' as start, (Long) j#'FINISH_TIME' as end; c = group b by (id, user, script_name) d = foreach c generate group.user, group.script_name, (MAX(b.end) - MIN(b.start)/1000; dump d

Related Computer Questions

How do you add a particular state to the browsing history? How many Margins are there on a page? What is the correct syntax for declaring a two-dimensional array in C++? Which of the following is more efficient? LOAD DATA, INSERT Which of the following is true? I. All operators in C++ can be overloaded. II. The basic meaning of an operator can be changed.