mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Luya <alexander.l...@gmail.com>
Subject Re: Error:.pros file can't be loaded
Date Sat, 04 Sep 2010 13:34:09 GMT
Hi
    I have figured it out.After commented the line HADOOP_CLASSPATH in $HADOOP_HOME/conf/hadoop-env.sh,problem
has gone.I think the mahout command 
should detect this out and prompt to user.

On Friday, September 03, 2010 09:55:24 pm Ted Dunning wrote:
> What version of Mahout?  (I will assume the trunk)
> 
> What platform?
> 
> I see that you are using hadoop 0.21.  So far, we only officially support
> 0.20.2, although that is clearly not your problem. It may become a problem
> in your next step.
> 
> This looks like a problem in the Mahout compilation.  The file in question
> should have been built into the Mahout executable.  How did you build
> Mahout?
> 
> On Thu, Sep 2, 2010 at 10:37 PM, Alex Luya <alexander.luya@gmail.com> wrote:
> > Hello:
> >       When I run mahout command,get this errors:
> > -------------------------------------------------------------------------
> > -------------------------------------------------------------------------
> > ------------------------------------------------------ running on hadoop,
> > using HADOOP_HOME=/usr/local/hadoop/hadoop-0.21.0 and
> > HADOOP_CONF_DIR=/usr/local/hadoop/hadoop-0.21.0/conf
> > Exception in thread "main" java.lang.NullPointerException
> > 
> >        at java.util.Properties$LineReader.readLine(Properties.java:418)
> >        at java.util.Properties.load0(Properties.java:337)
> >        at java.util.Properties.load(Properties.java:325)
> >        at
> >        org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:100)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> > 
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
> > :39)
> > 
> >        at
> > 
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
> > mpl.java:25)
> > 
> >        at java.lang.reflect.Method.invoke(Method.java:597)
> >        at org.apache.hadoop.util.RunJar.main(RunJar.java:192)
> > 
> > -------------------------------------------------------------------------
> > -------------------------------------------------------------------------
> > ------------------------------------------------------ I tracked to
> > source code and try to figure out what problem causes this issue:
> > 
> > -------------------------------------------------------------------------
> > -------------------------------------------------------------------------
> > ------------------------------------------------------
> > 
> >    ProgramDriver programDriver = new ProgramDriver();
> >    Properties mainClasses = new Properties();
> >    InputStream propsStream =
> > 
> > Thread.currentThread().getContextClassLoader().getResourceAsStream("drive
> > r.classes.props");
> > 
> >    mainClasses.load(propsStream);
> > 
> > -------------------------------------------------------------------------
> > -------------------------------------------------------------------------
> > ------------------------------------------------------ Here,the last line
> > " mainClasses.load(propsStream);"  thrown out a NULL exception.and may
> > this "propsStream" is NULL.
> > 
> >     I doubt this is a hadoop issue.Any suggestion to solve this
> > 
> > problem?Thank you.

Mime
View raw message