PrepAway - Latest Free Exam Questions & Answers

What is the cause of the error?

A user comes to you, complaining that when she attempts to submit a Hadoop job, it fails.
There is a Directory in HDFS named /data/input. The Jar is named j.jar, and the driver class
is named DriverClass. She runs the command: Hadoop jar j.jar DriverClass
/data/input/data/output The error message returned includes the line:
PriviligedActionException as:training (auth:SIMPLE)
cause:org.apache.hadoop.mapreduce.lib.input.invalidInputException: Input path does not
exist: file:/data/input What is the cause of the error?

PrepAway - Latest Free Exam Questions & Answers

A.
The user is not authorized to run the job on the cluster

B.
The output directory already exists

C.
The name of the driver has been spelled incorrectly on the command line

D.
The directory name is misspelled in HDFS

E.
The Hadoop configuration files on the client do not point to the cluster

Explanation:

6 Comments on “What is the cause of the error?

  1. toyhoshi says:

    Usage: hadoop jar [mainClass] args…

    If you try to run hadoop jar j.jar DriverClass /data/input/data/output as user training you get an error about FILE:/data/input and not HDFS://nameservice/… so the correct answer is E probably because fs.default.name in core-site.xml is set to: file:///

    fs.default.name
    file:///




    0



    0

Leave a Reply

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