You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Dan Brickley (Created) (JIRA)" <ji...@apache.org> on 2011/10/11 16:35:12 UTC

[jira] [Created] (MAHOUT-839) rowid job failing (when parsing options)

rowid job failing (when parsing options)  
------------------------------------------

                 Key: MAHOUT-839
                 URL: https://issues.apache.org/jira/browse/MAHOUT-839
             Project: Mahout
          Issue Type: Bug
            Reporter: Dan Brickley


Although MAHOUT-757 moved towards standard option naming, it uses different APIs for option parsing than other jobs.

On my system, it died reliably with null pointer error. Reported in mail here, but not reconfirmed by anyone else yet: http://permalink.gmane.org/gmane.comp.apache.mahout.user/9659

Example: 

TellyClub:bin danbri$ ./mahout rowid --help
MAHOUT_LOCAL is not set; adding HADOOP_CONF_DIR to classpath.
Running on hadoop, using HADOOP_HOME=/Users/danbri/working/hadoop/hadoop-0.20.2
HADOOP_CONF_DIR=/Users/danbri/working/hadoop/hadoop-0.20.2/conf
MAHOUT-JOB: /Users/danbri/working/mahout/trunk/examples/target/mahout-examples-0.6-SNAPSHOT-job.jar
^CTellyClub:bin danbri$ MAHOUT_LOCAL=true ./mahout rowid --help
MAHOUT_LOCAL is set, so we don't add HADOOP_CONF_DIR to classpath.
MAHOUT_LOCAL is set, running locally
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
[jar:file:/Users/bandri/working/mahout/trunk/examples/target/mahout-examples-0.6-SNAPSHOT-job.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/Users/bandri/working/mahout/trunk/examples/target/dependency/slf4j-jcl-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/Users/bandri/working/mahout/trunk/examples/target/dependency/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
Exception in thread "main" java.lang.NullPointerException
	at org.apache.hadoop.fs.Path.<init>(Path.java:61)
	at org.apache.hadoop.fs.Path.<init>(Path.java:50)
	at org.apache.mahout.utils.vectors.RowIdJob.run(RowIdJob.java:49)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
	at org.apache.mahout.utils.vectors.RowIdJob.main(RowIdJob.java:89)
	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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
	at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
	at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAHOUT-839) rowid job failing (when parsing options)

Posted by "Grant Ingersoll (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125128#comment-13125128 ] 

Grant Ingersoll commented on MAHOUT-839:
----------------------------------------

I didn't run the code, but looking at it, yeah, it seems like it never parses the arguments, so it would def. through an NPE on line 49.
                
> rowid job failing (when parsing options)  
> ------------------------------------------
>
>                 Key: MAHOUT-839
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-839
>             Project: Mahout
>          Issue Type: Bug
>            Reporter: Dan Brickley
>            Assignee: Grant Ingersoll
>            Priority: Trivial
>              Labels: options, rowid
>         Attachments: MAHOUT-839-v2.patch, MAHOUT-839.patch
>
>
> Although MAHOUT-757 moved towards standard option naming, it uses different APIs for option parsing than other jobs.
> On my system, it died reliably with null pointer error. Reported in mail here, but not reconfirmed by anyone else yet: http://permalink.gmane.org/gmane.comp.apache.mahout.user/9659
> Example: 
> TellyClub:bin danbri$ ./mahout rowid --help
> MAHOUT_LOCAL is set, so we don't add HADOOP_CONF_DIR to classpath.
> MAHOUT_LOCAL is set, running locally
> [skipping some hopefully unrelated SLF4J errors re same thing on classpath twice]
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:61)
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:50)
> 	at org.apache.mahout.utils.vectors.RowIdJob.run(RowIdJob.java:49)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.mahout.utils.vectors.RowIdJob.main(RowIdJob.java:89)
> 	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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
> 	at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
> 	at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAHOUT-839) rowid job failing (when parsing options)

Posted by "Grant Ingersoll (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll updated MAHOUT-839:
-----------------------------------

    Priority: Trivial  (was: Major)
    
> rowid job failing (when parsing options)  
> ------------------------------------------
>
>                 Key: MAHOUT-839
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-839
>             Project: Mahout
>          Issue Type: Bug
>            Reporter: Dan Brickley
>            Assignee: Grant Ingersoll
>            Priority: Trivial
>              Labels: options, rowid
>         Attachments: MAHOUT-839-v2.patch, MAHOUT-839.patch
>
>
> Although MAHOUT-757 moved towards standard option naming, it uses different APIs for option parsing than other jobs.
> On my system, it died reliably with null pointer error. Reported in mail here, but not reconfirmed by anyone else yet: http://permalink.gmane.org/gmane.comp.apache.mahout.user/9659
> Example: 
> TellyClub:bin danbri$ ./mahout rowid --help
> MAHOUT_LOCAL is set, so we don't add HADOOP_CONF_DIR to classpath.
> MAHOUT_LOCAL is set, running locally
> [skipping some hopefully unrelated SLF4J errors re same thing on classpath twice]
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:61)
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:50)
> 	at org.apache.mahout.utils.vectors.RowIdJob.run(RowIdJob.java:49)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.mahout.utils.vectors.RowIdJob.main(RowIdJob.java:89)
> 	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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
> 	at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
> 	at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAHOUT-839) rowid job failing (when parsing options)

Posted by "Dan Brickley (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Brickley updated MAHOUT-839:
--------------------------------

    Attachment: MAHOUT-839.patch

For integration/src/main/java/org/apache/mahout/utils/vectors/RowIdJob.java
 aka 'bin/mahout rowid'... 
                
> rowid job failing (when parsing options)  
> ------------------------------------------
>
>                 Key: MAHOUT-839
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-839
>             Project: Mahout
>          Issue Type: Bug
>            Reporter: Dan Brickley
>         Attachments: MAHOUT-839.patch
>
>
> Although MAHOUT-757 moved towards standard option naming, it uses different APIs for option parsing than other jobs.
> On my system, it died reliably with null pointer error. Reported in mail here, but not reconfirmed by anyone else yet: http://permalink.gmane.org/gmane.comp.apache.mahout.user/9659
> Example: 
> TellyClub:bin danbri$ ./mahout rowid --help
> MAHOUT_LOCAL is not set; adding HADOOP_CONF_DIR to classpath.
> Running on hadoop, using HADOOP_HOME=/Users/danbri/working/hadoop/hadoop-0.20.2
> HADOOP_CONF_DIR=/Users/danbri/working/hadoop/hadoop-0.20.2/conf
> MAHOUT-JOB: /Users/danbri/working/mahout/trunk/examples/target/mahout-examples-0.6-SNAPSHOT-job.jar
> ^CTellyClub:bin danbri$ MAHOUT_LOCAL=true ./mahout rowid --help
> MAHOUT_LOCAL is set, so we don't add HADOOP_CONF_DIR to classpath.
> MAHOUT_LOCAL is set, running locally
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in
> [jar:file:/Users/bandri/working/mahout/trunk/examples/target/mahout-examples-0.6-SNAPSHOT-job.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in
> [jar:file:/Users/bandri/working/mahout/trunk/examples/target/dependency/slf4j-jcl-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in
> [jar:file:/Users/bandri/working/mahout/trunk/examples/target/dependency/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:61)
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:50)
> 	at org.apache.mahout.utils.vectors.RowIdJob.run(RowIdJob.java:49)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.mahout.utils.vectors.RowIdJob.main(RowIdJob.java:89)
> 	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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
> 	at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
> 	at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAHOUT-839) rowid job failing (when parsing options)

Posted by "Grant Ingersoll (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125107#comment-13125107 ] 

Grant Ingersoll commented on MAHOUT-839:
----------------------------------------

Hey Dan,

I think the addInputOption, addOutputOption is the preferred way.  I think the thing that is missing is the parseArguments option.  See the KMeansDriver.
                
> rowid job failing (when parsing options)  
> ------------------------------------------
>
>                 Key: MAHOUT-839
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-839
>             Project: Mahout
>          Issue Type: Bug
>            Reporter: Dan Brickley
>              Labels: options, rowid
>         Attachments: MAHOUT-839-v2.patch, MAHOUT-839.patch
>
>
> Although MAHOUT-757 moved towards standard option naming, it uses different APIs for option parsing than other jobs.
> On my system, it died reliably with null pointer error. Reported in mail here, but not reconfirmed by anyone else yet: http://permalink.gmane.org/gmane.comp.apache.mahout.user/9659
> Example: 
> TellyClub:bin danbri$ ./mahout rowid --help
> MAHOUT_LOCAL is set, so we don't add HADOOP_CONF_DIR to classpath.
> MAHOUT_LOCAL is set, running locally
> [skipping some hopefully unrelated SLF4J errors re same thing on classpath twice]
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:61)
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:50)
> 	at org.apache.mahout.utils.vectors.RowIdJob.run(RowIdJob.java:49)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.mahout.utils.vectors.RowIdJob.main(RowIdJob.java:89)
> 	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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
> 	at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
> 	at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (MAHOUT-839) rowid job failing (when parsing options)

Posted by "Sean Owen (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Owen resolved MAHOUT-839.
------------------------------

       Resolution: Fixed
    Fix Version/s: 0.6
    
> rowid job failing (when parsing options)  
> ------------------------------------------
>
>                 Key: MAHOUT-839
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-839
>             Project: Mahout
>          Issue Type: Bug
>            Reporter: Dan Brickley
>            Assignee: Grant Ingersoll
>            Priority: Trivial
>              Labels: options, rowid
>             Fix For: 0.6
>
>         Attachments: MAHOUT-839-v2.patch, MAHOUT-839.patch
>
>
> Although MAHOUT-757 moved towards standard option naming, it uses different APIs for option parsing than other jobs.
> On my system, it died reliably with null pointer error. Reported in mail here, but not reconfirmed by anyone else yet: http://permalink.gmane.org/gmane.comp.apache.mahout.user/9659
> Example: 
> TellyClub:bin danbri$ ./mahout rowid --help
> MAHOUT_LOCAL is set, so we don't add HADOOP_CONF_DIR to classpath.
> MAHOUT_LOCAL is set, running locally
> [skipping some hopefully unrelated SLF4J errors re same thing on classpath twice]
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:61)
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:50)
> 	at org.apache.mahout.utils.vectors.RowIdJob.run(RowIdJob.java:49)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.mahout.utils.vectors.RowIdJob.main(RowIdJob.java:89)
> 	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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
> 	at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
> 	at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAHOUT-839) rowid job failing (when parsing options)

Posted by "Dan Brickley (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Brickley updated MAHOUT-839:
--------------------------------

         Labels: options rowid  (was: )
    Description: 
Although MAHOUT-757 moved towards standard option naming, it uses different APIs for option parsing than other jobs.

On my system, it died reliably with null pointer error. Reported in mail here, but not reconfirmed by anyone else yet: http://permalink.gmane.org/gmane.comp.apache.mahout.user/9659

Example: 

TellyClub:bin danbri$ ./mahout rowid --help

MAHOUT_LOCAL is set, so we don't add HADOOP_CONF_DIR to classpath.
MAHOUT_LOCAL is set, running locally

[skipping some hopefully unrelated SLF4J errors re same thing on classpath twice]

Exception in thread "main" java.lang.NullPointerException
	at org.apache.hadoop.fs.Path.<init>(Path.java:61)
	at org.apache.hadoop.fs.Path.<init>(Path.java:50)
	at org.apache.mahout.utils.vectors.RowIdJob.run(RowIdJob.java:49)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
	at org.apache.mahout.utils.vectors.RowIdJob.main(RowIdJob.java:89)
	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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
	at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
	at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)


  was:
Although MAHOUT-757 moved towards standard option naming, it uses different APIs for option parsing than other jobs.

On my system, it died reliably with null pointer error. Reported in mail here, but not reconfirmed by anyone else yet: http://permalink.gmane.org/gmane.comp.apache.mahout.user/9659

Example: 

TellyClub:bin danbri$ ./mahout rowid --help
MAHOUT_LOCAL is not set; adding HADOOP_CONF_DIR to classpath.
Running on hadoop, using HADOOP_HOME=/Users/danbri/working/hadoop/hadoop-0.20.2
HADOOP_CONF_DIR=/Users/danbri/working/hadoop/hadoop-0.20.2/conf
MAHOUT-JOB: /Users/danbri/working/mahout/trunk/examples/target/mahout-examples-0.6-SNAPSHOT-job.jar
^CTellyClub:bin danbri$ MAHOUT_LOCAL=true ./mahout rowid --help
MAHOUT_LOCAL is set, so we don't add HADOOP_CONF_DIR to classpath.
MAHOUT_LOCAL is set, running locally
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
[jar:file:/Users/bandri/working/mahout/trunk/examples/target/mahout-examples-0.6-SNAPSHOT-job.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/Users/bandri/working/mahout/trunk/examples/target/dependency/slf4j-jcl-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/Users/bandri/working/mahout/trunk/examples/target/dependency/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
Exception in thread "main" java.lang.NullPointerException
	at org.apache.hadoop.fs.Path.<init>(Path.java:61)
	at org.apache.hadoop.fs.Path.<init>(Path.java:50)
	at org.apache.mahout.utils.vectors.RowIdJob.run(RowIdJob.java:49)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
	at org.apache.mahout.utils.vectors.RowIdJob.main(RowIdJob.java:89)
	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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
	at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
	at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)


    
> rowid job failing (when parsing options)  
> ------------------------------------------
>
>                 Key: MAHOUT-839
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-839
>             Project: Mahout
>          Issue Type: Bug
>            Reporter: Dan Brickley
>              Labels: options, rowid
>         Attachments: MAHOUT-839.patch
>
>
> Although MAHOUT-757 moved towards standard option naming, it uses different APIs for option parsing than other jobs.
> On my system, it died reliably with null pointer error. Reported in mail here, but not reconfirmed by anyone else yet: http://permalink.gmane.org/gmane.comp.apache.mahout.user/9659
> Example: 
> TellyClub:bin danbri$ ./mahout rowid --help
> MAHOUT_LOCAL is set, so we don't add HADOOP_CONF_DIR to classpath.
> MAHOUT_LOCAL is set, running locally
> [skipping some hopefully unrelated SLF4J errors re same thing on classpath twice]
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:61)
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:50)
> 	at org.apache.mahout.utils.vectors.RowIdJob.run(RowIdJob.java:49)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.mahout.utils.vectors.RowIdJob.main(RowIdJob.java:89)
> 	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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
> 	at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
> 	at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAHOUT-839) rowid job failing (when parsing options)

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13133972#comment-13133972 ] 

Hudson commented on MAHOUT-839:
-------------------------------

Integrated in Mahout-Quality #1115 (See [https://builds.apache.org/job/Mahout-Quality/1115/])
    MAHOUT-839 call parseArguments() to make sure all args are ready for the job to use

srowen : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1188038
Files : 
* /mahout/trunk/integration/src/main/java/org/apache/mahout/utils/vectors/RowIdJob.java

                
> rowid job failing (when parsing options)  
> ------------------------------------------
>
>                 Key: MAHOUT-839
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-839
>             Project: Mahout
>          Issue Type: Bug
>            Reporter: Dan Brickley
>            Assignee: Grant Ingersoll
>            Priority: Trivial
>              Labels: options, rowid
>             Fix For: 0.6
>
>         Attachments: MAHOUT-839-v2.patch, MAHOUT-839.patch
>
>
> Although MAHOUT-757 moved towards standard option naming, it uses different APIs for option parsing than other jobs.
> On my system, it died reliably with null pointer error. Reported in mail here, but not reconfirmed by anyone else yet: http://permalink.gmane.org/gmane.comp.apache.mahout.user/9659
> Example: 
> TellyClub:bin danbri$ ./mahout rowid --help
> MAHOUT_LOCAL is set, so we don't add HADOOP_CONF_DIR to classpath.
> MAHOUT_LOCAL is set, running locally
> [skipping some hopefully unrelated SLF4J errors re same thing on classpath twice]
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:61)
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:50)
> 	at org.apache.mahout.utils.vectors.RowIdJob.run(RowIdJob.java:49)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.mahout.utils.vectors.RowIdJob.main(RowIdJob.java:89)
> 	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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
> 	at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
> 	at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAHOUT-839) rowid job failing (when parsing options)

Posted by "Dan Brickley (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125094#comment-13125094 ] 

Dan Brickley commented on MAHOUT-839:
-------------------------------------

Doh, my apologies -- as I said this isn't yet well tested. If you call with '--help' it fails:

Exception in thread "main" java.lang.IllegalArgumentException: Can not create a Path from a null string

Still, I hope better to share work-in-progress here rather than let it rot on my laptop. Attaching a fix as MAHOUT-839-v2.patch 
                
> rowid job failing (when parsing options)  
> ------------------------------------------
>
>                 Key: MAHOUT-839
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-839
>             Project: Mahout
>          Issue Type: Bug
>            Reporter: Dan Brickley
>              Labels: options, rowid
>         Attachments: MAHOUT-839.patch
>
>
> Although MAHOUT-757 moved towards standard option naming, it uses different APIs for option parsing than other jobs.
> On my system, it died reliably with null pointer error. Reported in mail here, but not reconfirmed by anyone else yet: http://permalink.gmane.org/gmane.comp.apache.mahout.user/9659
> Example: 
> TellyClub:bin danbri$ ./mahout rowid --help
> MAHOUT_LOCAL is set, so we don't add HADOOP_CONF_DIR to classpath.
> MAHOUT_LOCAL is set, running locally
> [skipping some hopefully unrelated SLF4J errors re same thing on classpath twice]
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:61)
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:50)
> 	at org.apache.mahout.utils.vectors.RowIdJob.run(RowIdJob.java:49)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.mahout.utils.vectors.RowIdJob.main(RowIdJob.java:89)
> 	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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
> 	at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
> 	at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAHOUT-839) rowid job failing (when parsing options)

Posted by "Dan Brickley (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125075#comment-13125075 ] 

Dan Brickley commented on MAHOUT-839:
-------------------------------------

I rewrote this based on one of the other drivers with more complex options. Attaching a patch, which got me working again but needs a careful check.

In attempt to drift towards standard options, it also adds --overwrite, which in turn calls

+        HadoopUtil.delete(getConf(), outputDir);

Please assume this will rm -rf all your most precious files and treat with appropriate caution.

Also the input option tries to match smartly using 'PathType.LIST, PathFilters.partFilter()'... and the help text should be accurate afaik.

                
> rowid job failing (when parsing options)  
> ------------------------------------------
>
>                 Key: MAHOUT-839
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-839
>             Project: Mahout
>          Issue Type: Bug
>            Reporter: Dan Brickley
>         Attachments: MAHOUT-839.patch
>
>
> Although MAHOUT-757 moved towards standard option naming, it uses different APIs for option parsing than other jobs.
> On my system, it died reliably with null pointer error. Reported in mail here, but not reconfirmed by anyone else yet: http://permalink.gmane.org/gmane.comp.apache.mahout.user/9659
> Example: 
> TellyClub:bin danbri$ ./mahout rowid --help
> MAHOUT_LOCAL is not set; adding HADOOP_CONF_DIR to classpath.
> Running on hadoop, using HADOOP_HOME=/Users/danbri/working/hadoop/hadoop-0.20.2
> HADOOP_CONF_DIR=/Users/danbri/working/hadoop/hadoop-0.20.2/conf
> MAHOUT-JOB: /Users/danbri/working/mahout/trunk/examples/target/mahout-examples-0.6-SNAPSHOT-job.jar
> ^CTellyClub:bin danbri$ MAHOUT_LOCAL=true ./mahout rowid --help
> MAHOUT_LOCAL is set, so we don't add HADOOP_CONF_DIR to classpath.
> MAHOUT_LOCAL is set, running locally
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in
> [jar:file:/Users/bandri/working/mahout/trunk/examples/target/mahout-examples-0.6-SNAPSHOT-job.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in
> [jar:file:/Users/bandri/working/mahout/trunk/examples/target/dependency/slf4j-jcl-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in
> [jar:file:/Users/bandri/working/mahout/trunk/examples/target/dependency/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:61)
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:50)
> 	at org.apache.mahout.utils.vectors.RowIdJob.run(RowIdJob.java:49)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.mahout.utils.vectors.RowIdJob.main(RowIdJob.java:89)
> 	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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
> 	at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
> 	at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAHOUT-839) rowid job failing (when parsing options)

Posted by "Grant Ingersoll (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125108#comment-13125108 ] 

Grant Ingersoll commented on MAHOUT-839:
----------------------------------------

Also, for future reference, no need to name patches as v2, etc.  JIRA will always show the latest one when it has the same name, that makes it easier to find which one to use.
                
> rowid job failing (when parsing options)  
> ------------------------------------------
>
>                 Key: MAHOUT-839
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-839
>             Project: Mahout
>          Issue Type: Bug
>            Reporter: Dan Brickley
>            Assignee: Grant Ingersoll
>            Priority: Trivial
>              Labels: options, rowid
>         Attachments: MAHOUT-839-v2.patch, MAHOUT-839.patch
>
>
> Although MAHOUT-757 moved towards standard option naming, it uses different APIs for option parsing than other jobs.
> On my system, it died reliably with null pointer error. Reported in mail here, but not reconfirmed by anyone else yet: http://permalink.gmane.org/gmane.comp.apache.mahout.user/9659
> Example: 
> TellyClub:bin danbri$ ./mahout rowid --help
> MAHOUT_LOCAL is set, so we don't add HADOOP_CONF_DIR to classpath.
> MAHOUT_LOCAL is set, running locally
> [skipping some hopefully unrelated SLF4J errors re same thing on classpath twice]
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:61)
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:50)
> 	at org.apache.mahout.utils.vectors.RowIdJob.run(RowIdJob.java:49)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.mahout.utils.vectors.RowIdJob.main(RowIdJob.java:89)
> 	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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
> 	at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
> 	at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MAHOUT-839) rowid job failing (when parsing options)

Posted by "Dan Brickley (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Brickley updated MAHOUT-839:
--------------------------------

    Attachment: MAHOUT-839-v2.patch

now checks for --help and bails appropriately
                
> rowid job failing (when parsing options)  
> ------------------------------------------
>
>                 Key: MAHOUT-839
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-839
>             Project: Mahout
>          Issue Type: Bug
>            Reporter: Dan Brickley
>              Labels: options, rowid
>         Attachments: MAHOUT-839-v2.patch, MAHOUT-839.patch
>
>
> Although MAHOUT-757 moved towards standard option naming, it uses different APIs for option parsing than other jobs.
> On my system, it died reliably with null pointer error. Reported in mail here, but not reconfirmed by anyone else yet: http://permalink.gmane.org/gmane.comp.apache.mahout.user/9659
> Example: 
> TellyClub:bin danbri$ ./mahout rowid --help
> MAHOUT_LOCAL is set, so we don't add HADOOP_CONF_DIR to classpath.
> MAHOUT_LOCAL is set, running locally
> [skipping some hopefully unrelated SLF4J errors re same thing on classpath twice]
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:61)
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:50)
> 	at org.apache.mahout.utils.vectors.RowIdJob.run(RowIdJob.java:49)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.mahout.utils.vectors.RowIdJob.main(RowIdJob.java:89)
> 	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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
> 	at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
> 	at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (MAHOUT-839) rowid job failing (when parsing options)

Posted by "Grant Ingersoll (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MAHOUT-839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grant Ingersoll reassigned MAHOUT-839:
--------------------------------------

    Assignee: Grant Ingersoll
    
> rowid job failing (when parsing options)  
> ------------------------------------------
>
>                 Key: MAHOUT-839
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-839
>             Project: Mahout
>          Issue Type: Bug
>            Reporter: Dan Brickley
>            Assignee: Grant Ingersoll
>              Labels: options, rowid
>         Attachments: MAHOUT-839-v2.patch, MAHOUT-839.patch
>
>
> Although MAHOUT-757 moved towards standard option naming, it uses different APIs for option parsing than other jobs.
> On my system, it died reliably with null pointer error. Reported in mail here, but not reconfirmed by anyone else yet: http://permalink.gmane.org/gmane.comp.apache.mahout.user/9659
> Example: 
> TellyClub:bin danbri$ ./mahout rowid --help
> MAHOUT_LOCAL is set, so we don't add HADOOP_CONF_DIR to classpath.
> MAHOUT_LOCAL is set, running locally
> [skipping some hopefully unrelated SLF4J errors re same thing on classpath twice]
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:61)
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:50)
> 	at org.apache.mahout.utils.vectors.RowIdJob.run(RowIdJob.java:49)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.mahout.utils.vectors.RowIdJob.main(RowIdJob.java:89)
> 	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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
> 	at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
> 	at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAHOUT-839) rowid job failing (when parsing options)

Posted by "Grant Ingersoll (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125132#comment-13125132 ] 

Grant Ingersoll commented on MAHOUT-839:
----------------------------------------

{quote}

    Map<String,String> parsedArgs = parseArguments(args);
    if (parsedArgs == null) {
      return -1;
    }
...
{quote}

is the standard way of doing this.  
                
> rowid job failing (when parsing options)  
> ------------------------------------------
>
>                 Key: MAHOUT-839
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-839
>             Project: Mahout
>          Issue Type: Bug
>            Reporter: Dan Brickley
>            Assignee: Grant Ingersoll
>            Priority: Trivial
>              Labels: options, rowid
>         Attachments: MAHOUT-839-v2.patch, MAHOUT-839.patch
>
>
> Although MAHOUT-757 moved towards standard option naming, it uses different APIs for option parsing than other jobs.
> On my system, it died reliably with null pointer error. Reported in mail here, but not reconfirmed by anyone else yet: http://permalink.gmane.org/gmane.comp.apache.mahout.user/9659
> Example: 
> TellyClub:bin danbri$ ./mahout rowid --help
> MAHOUT_LOCAL is set, so we don't add HADOOP_CONF_DIR to classpath.
> MAHOUT_LOCAL is set, running locally
> [skipping some hopefully unrelated SLF4J errors re same thing on classpath twice]
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:61)
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:50)
> 	at org.apache.mahout.utils.vectors.RowIdJob.run(RowIdJob.java:49)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.mahout.utils.vectors.RowIdJob.main(RowIdJob.java:89)
> 	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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
> 	at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
> 	at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MAHOUT-839) rowid job failing (when parsing options)

Posted by "Dan Brickley (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/MAHOUT-839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125109#comment-13125109 ] 

Dan Brickley commented on MAHOUT-839:
-------------------------------------

OK, should've asked first? :)

It's working for me here now with the (wrong) fix. But are you confirming that it doesn't currently work for you at least?
                
> rowid job failing (when parsing options)  
> ------------------------------------------
>
>                 Key: MAHOUT-839
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-839
>             Project: Mahout
>          Issue Type: Bug
>            Reporter: Dan Brickley
>            Assignee: Grant Ingersoll
>            Priority: Trivial
>              Labels: options, rowid
>         Attachments: MAHOUT-839-v2.patch, MAHOUT-839.patch
>
>
> Although MAHOUT-757 moved towards standard option naming, it uses different APIs for option parsing than other jobs.
> On my system, it died reliably with null pointer error. Reported in mail here, but not reconfirmed by anyone else yet: http://permalink.gmane.org/gmane.comp.apache.mahout.user/9659
> Example: 
> TellyClub:bin danbri$ ./mahout rowid --help
> MAHOUT_LOCAL is set, so we don't add HADOOP_CONF_DIR to classpath.
> MAHOUT_LOCAL is set, running locally
> [skipping some hopefully unrelated SLF4J errors re same thing on classpath twice]
> Exception in thread "main" java.lang.NullPointerException
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:61)
> 	at org.apache.hadoop.fs.Path.<init>(Path.java:50)
> 	at org.apache.mahout.utils.vectors.RowIdJob.run(RowIdJob.java:49)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.mahout.utils.vectors.RowIdJob.main(RowIdJob.java:89)
> 	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.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
> 	at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
> 	at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:188)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira