mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Luya <alexander.l...@gmail.com>
Subject Error:.pros file can't be loaded
Date Fri, 03 Sep 2010 05:37:48 GMT
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
View raw message