You could avoid all that code by simply placing the configuration
directory on the classpath - it will auto-load necessary properties.
On Thu, Mar 6, 2014 at 11:36 AM, Geoffry Roberts wrote:
> Thanks for the response. I figured out what was wrong.
>
> I was doing this:
>
> Configuration conf = n
Thanks for the response. I figured out what was wrong.
I was doing this:
Configuration conf = new Configuration();
conf.addResource(new Path(F.CFG_PATH + "/core-site.xml"));
conf.addResource(new Path(F.CFG_PATH + "/hdfs-site.xml"));
conf.addResource(new Path(F.CFG_PATH + "/mapred-site.xml"));
I've never faced an issue trying to run hadoop and related programs on
my OSX. What is your error exactly?
Have you ensured your Java classpath carries the configuration
directory on it as well, if you aren't running the program via "hadoop
jar ..." but via "java -cp ..." instead.
On Thu, Mar 6,
All,
I'm running the 2.3.0 distribution as a single node on OSX 10.7. I want to
create a directory. From the command line it works; from java it doesn't.
I have Googled and read bits and pieces that this is an issue with the OSX
"feature" of case insensitivity with its file system. Can anyone