mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: Error:.pros file can't be loaded
Date Fri, 03 Sep 2010 13:55:24 GMT
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(DelegatingMethodAccessorImpl.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("driver.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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message