Uploaded image for project: 'Mahout'
  1. Mahout
  2. MAHOUT-1082

driver seqdirectory fails with param -filter set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.7
    • 0.8
    • classic
    • None

    Description

      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);

      Attachments

        Activity

          People

            Unassigned Unassigned
            hessenmob Johannes Rauber
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: