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 53 Discussion

Actual exam question for Hortonworks's HDPCD exam
Question #: 53
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:

Richelle
6 months ago
I think the correct answer is B. The pound sign is indeed an invalid character, so only three files will be processed.
upvoted 0 times
...
Krissy
6 months ago
But what about E? Could it be just one file processed due to the naming restriction?
upvoted 0 times
...
Annmarie
6 months ago
I'm leaning towards B, since the pound sign is not allowed in file names.
upvoted 0 times
...
Remona
7 months ago
I disagree, I believe the answer is C because files with leading periods or underscores are ignored.
upvoted 0 times
...
Krissy
7 months ago
I think the answer is A, all four files will be processed.
upvoted 0 times
...
Thea
7 months ago
I think the correct answer is E) One, no special characters can prefix the name of an input file.
upvoted 0 times
...
Mee
7 months ago
I'm not sure, but I think the answer might be C) Two, file names with a leading period or underscore are ignored.
upvoted 0 times
...
Daniel
8 months ago
I disagree, I believe the answer is B) Three, the pound sign is an invalid character for HDFS file names.
upvoted 0 times
...
Kristel
8 months ago
I think the answer is A) Four, all files will be processed.
upvoted 0 times
...
Quentin
8 months ago
Okay, let's think this through step-by-step. HDFS file names, special characters, hidden files... I think I've got this. *rubs hands together*
upvoted 0 times
...
Mila
9 months ago
Ugh, this is the kind of question that makes me wish I had a cheat sheet handy. I'm going to have to rely on my instincts and pray I don't mess this up.
upvoted 0 times
...
Alberta
9 months ago
I don't know, I kind of like these types of questions. It shows they're really testing our understanding of the underlying system. I'm going to give it my best shot.
upvoted 0 times
Ammie
7 months ago
B) Three, the pound sign is an invalid character for HDFS file names
upvoted 0 times
...
Vinnie
7 months ago
C) Two, file names with a leading period or underscore are ignored
upvoted 0 times
...
Lashaunda
7 months ago
A) Four, all files will be processed
upvoted 0 times
...
...
Iola
9 months ago
Oh man, I hate questions like this! It's like they're testing our knowledge of HDFS arcane rules rather than our actual skills. Can't they just ask us something more straightforward?
upvoted 0 times
...
Earleen
9 months ago
Hmm, I think it's a valid question, but it feels a bit like they're trying to trip us up with the file naming conventions. I'm going to have to really think this through.
upvoted 0 times
...
Nan
9 months ago
Wow, this is a tricky one! I'm not sure if I should be impressed or terrified by the complexity of this question.
upvoted 0 times
...

Save Cancel