Deal of The Day! 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 Hortonworks Data Platform Certified Developer exam
Question #: 61
Topic #: 3
[All Hortonworks Data Platform Certified Developer 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
17 days 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
18 days 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
Ryan
3 days ago
User 2: Ryan is right, HDFS doesn't like special characters in file names.
upvoted 0 times
...
Andra
4 days ago
User 1: C) Two, file names with a leading period or underscore are ignored
upvoted 0 times
...
...
Kate
22 days ago
I think the answer is E) One, no special characters can prefix the name of an input file.
upvoted 0 times
...
Tonette
23 days 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
24 days ago
I disagree, I believe the answer is C) Two, file names with a leading period or underscore are ignored.
upvoted 0 times
...
Tomas
29 days 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
Karol
19 days ago
I think the answer is C
upvoted 0 times
...
...
Maira
2 months ago
I think the answer is A) Four, all files will be processed.
upvoted 0 times
...

Save Cancel