Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # dev >> Non existent config file to 'fs -conf'


Copy link to this message
-
Non existent config file to 'fs -conf'
Hi,
I'm working on  HADOOP-9582<https://issues.apache.org/jira/browse/HADOOP-9582>  and I have a question about the current implementation in hadoop-common.
Here is a brief background about the bug : Basically if I give a non-exitent file to "hadoop fs  –conf NONEXISTENT_FILE",
the current implementation never complains.
But looking at the code(Configuration.loadResources()) it seems that in-fact we check if input file exists and we throw an exception if the 'quiet' flag is false.
Problem is the 'quiet' flag is always true.
Can somebody explain the rationale behind this behavior ? Would we break any use-case if we complain when non-exitent file is given as input?

Why we want this fixed :  say the user makes a typo and gives the wrong path ,the code is just going to ignore this,not complain
and use the default conf files(if the env variables are set). This would confuse the user when he finds that the configs are different from what he gave as input(typo) .
Thoughts?

Thanks,
Ashwin