New Year Sale ! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Hortonworks Exam HDPCD Topic 3 Question 61 Discussion

Actual exam question for Hortonworks's HDPCD exam
Question #: 61
Topic #: 3
[All HDPCD Questions]

You have a directory named jobdata in HDFS that contains four files: _first.txt, second.txt, .third.txt and #data.txt. How many files will be processed by the FileInputFormat.setInputPaths () command when it's given a path object representing this directory?

Show Suggested Answer Hide Answer
Suggested Answer: C

Files starting with '_' are considered 'hidden' like unix files starting with '.'.

# characters are allowed in HDFS file names.


Contribute your Thoughts:

Lashandra
4 months ago
This is a tricky one, but I'm gonna go with B. The pound sign is definitely not allowed in HDFS, so it'll only process three files.
upvoted 0 times
...
Helaine
4 months ago
Haha, looks like the developers forgot to sanitize the file names! C is the way to go, HDFS doesn't like special characters in file names.
upvoted 0 times
Francesco
4 months ago
Good to know, thanks for the info!
upvoted 0 times
...
Ryan
4 months ago
Ryan is right, HDFS doesn't like special characters in file names.
upvoted 0 times
...
Andra
4 months ago
C) Two, file names with a leading period or underscore are ignored
upvoted 0 times
...
...
Kate
5 months ago
I think the answer is E) One, no special characters can prefix the name of an input file.
upvoted 0 times
...
Tonette
5 months ago
I'm not sure, but I think the answer might be B) Three, the pound sign is an invalid character for HDFS file names.
upvoted 0 times
...
Beatriz
5 months ago
I disagree, I believe the answer is C) Two, file names with a leading period or underscore are ignored.
upvoted 0 times
...
Tomas
5 months ago
I think the answer is C. File names with a leading period or underscore are ignored, so only second.txt and third.txt will be processed.
upvoted 0 times
Craig
4 months ago
Actually, it's E
upvoted 0 times
...
Lashaunda
4 months ago
I'm pretty sure it's B
upvoted 0 times
...
Reita
4 months ago
No, I believe the answer is A
upvoted 0 times
...
Karol
5 months ago
I think the answer is C
upvoted 0 times
...
...
Maira
6 months ago
I think the answer is A) Four, all files will be processed.
upvoted 0 times
...

Save Cancel