You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Johannes Rauber (JIRA)" <ji...@apache.org> on 2012/09/27 00:11:07 UTC

[jira] [Created] (MAHOUT-1082) driver seqdirectory fails with param -filter set

Johannes Rauber created MAHOUT-1082:
---------------------------------------

             Summary: driver seqdirectory fails with param -filter set
                 Key: MAHOUT-1082
                 URL: https://issues.apache.org/jira/browse/MAHOUT-1082
             Project: Mahout
          Issue Type: Bug
          Components: Integration
    Affects Versions: 0.7
            Reporter: Johannes Rauber
            Priority: Minor


The following error is thrown when an own implementation of PrefixAdditionFilter is specified with parameter -filter for seqdirectory.


Exception in thread "main" java.lang.IllegalArgumentException: wrong number of arguments
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	at org.apache.mahout.text.SequenceFilesFromDirectory.run(SequenceFilesFromDirectory.java:96)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
	at org.apache.mahout.text.SequenceFilesFromDirectory.main(SequenceFilesFromDirectory.java:53)


In class org.apache.mahout.text.SequenceFilesFromDirectory line 96 the following additional parameter should be inserted into the reflection call of the ctor: "charset"

Raises Error:

pathFilter = constructor.newInstance(conf, keyPrefix, options, writer, fs);

Fix:

pathFilter = constructor.newInstance(conf, keyPrefix, options, writer, charset, fs);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (MAHOUT-1082) driver seqdirectory fails with param -filter set

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

Johannes Rauber commented on MAHOUT-1082:
-----------------------------------------

uname -a
3.2.0-31-generic #50-Ubuntu SMP Fri Sep 7 16:16:45 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

java -version
java version "1.6.0_35"
Java(TM) SE Runtime Environment (build 1.6.0_35-b10)
Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01, mixed mode)



                
> driver seqdirectory fails with param -filter set
> ------------------------------------------------
>
>                 Key: MAHOUT-1082
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-1082
>             Project: Mahout
>          Issue Type: Bug
>          Components: Integration
>    Affects Versions: 0.7
>            Reporter: Johannes Rauber
>            Priority: Minor
>
> The following error is thrown when an own implementation of PrefixAdditionFilter is specified with parameter -filter for seqdirectory.
> Exception in thread "main" java.lang.IllegalArgumentException: wrong number of arguments
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> 	at org.apache.mahout.text.SequenceFilesFromDirectory.run(SequenceFilesFromDirectory.java:96)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> 	at org.apache.mahout.text.SequenceFilesFromDirectory.main(SequenceFilesFromDirectory.java:53)
> In class org.apache.mahout.text.SequenceFilesFromDirectory line 96 the following additional parameter should be inserted into the reflection call of the ctor: "charset"
> Raises Error:
> pathFilter = constructor.newInstance(conf, keyPrefix, options, writer, fs);
> Fix:
> pathFilter = constructor.newInstance(conf, keyPrefix, options, writer, charset, fs);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira