What should you recommend?

A company named Fabrikam, Inc. has a web app. Millions of users visit the app daily.
Fabrikam performs a daily analysis of the previous day’s logs by scheduling the following Hive query.
CREATE EXTERNAL TABLE IF NOT EXISTS UserActivity (…) Partitioned BY (LogDate string) Location MSCK
REPAIR TABLE UserActivity;
Select … From UserActivity where LogDate = “{date}”;
You need to recommend a solution to gather the log collections from the web app.
What should you recommend?

A company named Fabrikam, Inc. has a web app. Millions of users visit the app daily.
Fabrikam performs a daily analysis of the previous day’s logs by scheduling the following Hive query.
CREATE EXTERNAL TABLE IF NOT EXISTS UserActivity (…) Partitioned BY (LogDate string) Location MSCK
REPAIR TABLE UserActivity;
Select … From UserActivity where LogDate = “{date}”;
You need to recommend a solution to gather the log collections from the web app.
What should you recommend?

A.
Generate a single directory that contains multiple files for each day. Name the file by using the syntax of
{date}_{randomsuffix}.txt.

B.
Generate a directory that is named by using the syntax of “LogDate={date}” and generate a set of files for
that day.

C.
Generate a directory each day that has a single file.

D.
Generate a single directory that has a single file for each day.



Leave a Reply 0

Your email address will not be published. Required fields are marked *