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

Switch to Plain View
Hadoop, mail # user - core-site.xml file is being ignored by new Configuration()


+
Jay Vyas 2013-01-17, 00:33
Copy link to this message
-
Re: core-site.xml file is being ignored by new Configuration()
Jay Vyas 2013-01-17, 15:00
Good catch with that string.length() - you're right, that was a silly
mistake. --- sorry - im not sure what i was thinking. it was a late night
:)

In any case, the same code with file.exists() fails...  i've validated that
path many ways.

On a broader note: Shouldn't the Configuration class  just throw a
RuntimeException if the file isn't available?    Its very strange to add
all these default resources, which may or may not exist, to a class - then
having to introspect on the class at runtime to see if they actually got
loaded.
On Thu, Jan 17, 2013 at 5:06 AM, Julien Muller <[EMAIL PROTECTED]>wrote:

> conf.addResource(file.getAbsoluteFile().toURI().toURL());
>
--
Jay Vyas
http://jayunit100.blogspot.com