With 0.8 you can set conf files as
Configuration conf = new Configuration();
String HADOOP_HOME = System.getenv("HADOOP_PREFIX");
conf.addResource(new Path(HADOOP_HOME, "conf/core-site.xml"));
conf.addResource(new Path(HADOOP_HOME, "conf/hdfs-site.xml"));
conf.addResource(new Path(HADOOP_HOME, "conf/mapred-site.xml"));
but you must define HADOOP_PREFIX as hadoop path.
On Thu, Sep 5, 2013 at 9:07 AM, Ted Dunning <[email protected]> wrote:
> On Wed, Sep 4, 2013 at 6:58 PM, Alan Krumholz <[email protected]
> >wrote:
>
> > I pulled that code
> >
> (org.apache.mahout.clustering.classify.ClusterClassifier.readFromSeqFiles(ClusterClassifier.java:215)and
> > I think is trying to read a file from one of the paths I passed to the
> > method but with a new instance of the configuration object (not the
> > configuration object I passed to the method but one that doesn't have my
> > HDFS configured)
> >
>
>
> This is quite plausibly a bug. This is a common error when using the HDFS
> API.
>
> Have you checked what happens with 0.8?
>