Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Cannot Reproduce
-
0.22.0
-
None
-
None
-
Added more verbose error logging in FSImage should there be an issue getting the size of the NameNode data or edits directories.
Description
When FSImage can't come up as either it has no data or edit dirs, it tells me this
java.io.IOException: All specified directories are not accessible or do not exist.
What it doesn't do is say which of the two attributes are missing. This would be beneficial to anyone trying to track down the problem. Also, I don't think the message is correct. It's bailing out because dataDirs.size() == 0 || editsDirs.size() == 0 , because a list is empty -not because the dirs aren't there, as there hasn't been any validation yet.
More useful would be
- Explicit mention of which attributes are null
- Declare that this is because they are not in the config