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

Potential Path bug in SequenceFileVaultIterator breaks DisplaySpectralKMeans

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9
    • 0.10.0
    • classic
    • None

    Description

      Received the following error when attempting to run DisplaySpectralKMeans:

      Exception in thread "main" java.lang.IllegalArgumentException: Wrong FS: file://tmp/calculations/diagonal/part-r-00000/tmp/calculations/diagonal/part-r-00000, expected: file:///
      at org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:645)
      at org.apache.hadoop.fs.RawLocalFileSystem.pathToFile(RawLocalFileSystem.java:80)
      at org.apache.hadoop.fs.RawLocalFileSystem.deprecatedGetFileStatus(RawLocalFileSystem.java:529)
      at org.apache.hadoop.fs.RawLocalFileSystem.getFileLinkStatusInternal(RawLocalFileSystem.java:747)
      at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:524)
      at org.apache.hadoop.fs.FilterFileSystem.getFileStatus(FilterFileSystem.java:409)
      at org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1750)
      at org.apache.hadoop.io.SequenceFile$Reader.<init>(SequenceFile.java:1774)
      at org.apache.mahout.common.iterator.sequencefile.SequenceFileValueIterator.<init>(SequenceFileValueIterator.java:56)
      at org.apache.mahout.clustering.spectral.VectorCache.load(VectorCache.java:115)
      at org.apache.mahout.clustering.spectral.MatrixDiagonalizeJob.runJob(MatrixDiagonalizeJob.java:77)
      at org.apache.mahout.clustering.spectral.kmeans.SpectralKMeansDriver.run(SpectralKMeansDriver.java:170)
      at org.apache.mahout.clustering.spectral.kmeans.SpectralKMeansDriver.run(SpectralKMeansDriver.java:117)
      at org.apache.mahout.clustering.display.DisplaySpectralKMeans.main(DisplaySpectralKMeans.java:76)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)

      Tracked the origin of the bug to line 54 of SequenceFileVaultIterator. PR which contains a fix is available; I would ask for independent verification before merging it with master.

      Attachments

        Activity

          People

            smarthi Suneel Marthi
            magsol Shannon Quinn
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: