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

Compilation errors when changing Lucene version to 4.10.1

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 0.10.0
    • Component/s: Integration
    • Labels:
    • Environment:

      CentOS 6.5

      Description

      When changing Lucene version to 4_10_1 in all code and 4.10.1 in pom.xml the following compile errors (and warnings) are observed:

      [WARNING] COMPILATION WARNING :
      [INFO] -------------------------------------------------------------
      [WARNING] /mahout2/trunk/integration/src/main/java/org/apache/mahout/cf/taste/impl/model/hbase/HBaseDataModel.java: Some input files use or override a deprecated API.
      [WARNING] /mahout2/trunk/integration/src/main/java/org/apache/mahout/cf/taste/impl/model/hbase/HBaseDataModel.java: Recompile with -Xlint:deprecation for details.
      [WARNING] /mahout2/trunk/integration/src/main/java/org/apache/mahout/cf/taste/impl/model/mongodb/MongoDBDataModel.java: Some input files use unchecked or unsafe operations.
      [WARNING] /mahout2/trunk/integration/src/main/java/org/apache/mahout/cf/taste/impl/model/mongodb/MongoDBDataModel.java: Recompile with -Xlint:unchecked for details.
      [INFO] 4 warnings
      [INFO] -------------------------------------------------------------
      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR :
      [INFO] -------------------------------------------------------------
      [ERROR] /mahout2/trunk/integration/src/main/java/org/apache/mahout/text/ReadOnlyFileSystemDirectory.java:[29,31] cannot find symbol
      symbol: class BufferedIndexOutput
      location: package org.apache.lucene.store
      [ERROR] /mahout2/trunk/integration/src/main/java/org/apache/mahout/text/ReadOnlyFileSystemDirectory.java:[305,47] cannot find symbol
      symbol: class BufferedIndexOutput
      location: class org.apache.mahout.text.ReadOnlyFileSystemDirectory
      [ERROR] /mahout2/trunk/integration/src/main/java/org/apache/mahout/text/ReadOnlyFileSystemDirectory.java:[163,12] incompatible types
      required: org.apache.lucene.store.IndexOutput
      found: org.apache.mahout.text.ReadOnlyFileSystemDirectory.FileSystemIndexOutput
      [ERROR] /mahout2/trunk/integration/src/main/java/org/apache/mahout/text/ReadOnlyFileSystemDirectory.java:[178,23] <anonymous org.apache.mahout.text.ReadOnlyFileSystemDirectory$1> is not abstract and does not override abstract method close() in org.apache.lucene.store.Lock
      [ERROR] /mahout2/trunk/integration/src/main/java/org/apache/mahout/text/ReadOnlyFileSystemDirectory.java:[319,5] method does not override or implement a method from a supertype
      [ERROR] /mahout2/trunk/integration/src/main/java/org/apache/mahout/text/ReadOnlyFileSystemDirectory.java:[327,14] abstract method close() in org.apache.lucene.store.Directory cannot be accessed directly
      [ERROR] /mahout2/trunk/integration/src/main/java/org/apache/mahout/text/ReadOnlyFileSystemDirectory.java:[324,5] method does not override or implement a method from a supertype
      [ERROR] /mahout2/trunk/integration/src/main/java/org/apache/mahout/text/ReadOnlyFileSystemDirectory.java:[335,5] method does not override or implement a method from a supertype
      [ERROR] /mahout2/trunk/integration/src/main/java/org/apache/mahout/text/ReadOnlyFileSystemDirectory.java:[340,5] method does not override or implement a method from a supertype
      [ERROR] /mahout2/trunk/integration/src/main/java/org/apache/mahout/text/ReadOnlyFileSystemDirectory.java:[345,5] method does not override or implement a method from a supertype
      [ERROR] /mahout2/trunk/integration/src/main/java/org/apache/mahout/text/LuceneSegmentRecordReader.java:[67,20] method scorer in class org.apache.lucene.search.Weight cannot be applied to given types;
      required: org.apache.lucene.index.AtomicReaderContext,org.apache.lucene.util.Bits
      found: org.apache.lucene.index.AtomicReaderContext,boolean,boolean,<nulltype>
      reason: actual and formal argument lists differ in length
      [INFO] 11 errors
      [INFO] -------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] Mahout Build Tools ................................ SUCCESS [ 1.808 s]
      [INFO] Apache Mahout ..................................... SUCCESS [ 0.437 s]
      [INFO] Mahout Math ....................................... SUCCESS [ 11.337 s]
      [INFO] Mahout MapReduce Legacy ........................... SUCCESS [ 15.163 s]
      [INFO] Mahout Integration ................................ FAILURE [ 1.416 s]
      [INFO] Mahout Examples ................................... SKIPPED
      [INFO] Mahout Release Package ............................ SKIPPED
      [INFO] Mahout Math/Scala wrappers ........................ SKIPPED
      [INFO] Mahout Spark bindings ............................. SKIPPED
      [INFO] Mahout Spark bindings shell ....................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 30.612 s
      [INFO] Finished at: 2014-10-30T06:10:11-08:00
      [INFO] Final Memory: 52M/411M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project mahout-integration: Compilation failure: Compilation failure:
      [ERROR] /mahout2/trunk/integration/src/main/java/org/apache/mahout/text/ReadOnlyFileSystemDirectory.java:[29,31] cannot find symbol
      [ERROR] symbol: class BufferedIndexOutput
      [ERROR] location: package org.apache.lucene.store
      [ERROR] /mahout2/trunk/integration/src/main/java/org/apache/mahout/text/ReadOnlyFileSystemDirectory.java:[305,47] cannot find symbol
      [ERROR] symbol: class BufferedIndexOutput
      [ERROR] location: class org.apache.mahout.text.ReadOnlyFileSystemDirectory
      [ERROR] /mahout2/trunk/integration/src/main/java/org/apache/mahout/text/ReadOnlyFileSystemDirectory.java:[163,12] incompatible types
      [ERROR] required: org.apache.lucene.store.IndexOutput
      [ERROR] found: org.apache.mahout.text.ReadOnlyFileSystemDirectory.FileSystemIndexOutput
      [ERROR] /mahout2/trunk/integration/src/main/java/org/apache/mahout/text/ReadOnlyFileSystemDirectory.java:[178,23] <anonymous org.apache.mahout.text.ReadOnlyFileSystemDirectory$1> is not abstract and does not override abstract method close() in org.apache.lucene.store.Lock
      [ERROR] /mahout2/trunk/integration/src/main/java/org/apache/mahout/text/ReadOnlyFileSystemDirectory.java:[319,5] method does not override or implement a method from a supertype
      [ERROR] /mahout2/trunk/integration/src/main/java/org/apache/mahout/text/ReadOnlyFileSystemDirectory.java:[327,14] abstract method close() in org.apache.lucene.store.Directory cannot be accessed directly
      [ERROR] /mahout2/trunk/integration/src/main/java/org/apache/mahout/text/ReadOnlyFileSystemDirectory.java:[324,5] method does not override or implement a method from a supertype
      [ERROR] /mahout2/trunk/integration/src/main/java/org/apache/mahout/text/ReadOnlyFileSystemDirectory.java:[335,5] method does not override or implement a method from a supertype
      [ERROR] /mahout2/trunk/integration/src/main/java/org/apache/mahout/text/ReadOnlyFileSystemDirectory.java:[340,5] method does not override or implement a method from a supertype
      [ERROR] /mahout2/trunk/integration/src/main/java/org/apache/mahout/text/ReadOnlyFileSystemDirectory.java:[345,5] method does not override or implement a method from a supertype
      [ERROR] /mahout2/trunk/integration/src/main/java/org/apache/mahout/text/LuceneSegmentRecordReader.java:[67,20] method scorer in class org.apache.lucene.search.Weight cannot be applied to given types;
      [ERROR] required: org.apache.lucene.index.AtomicReaderContext,org.apache.lucene.util.Bits
      [ERROR] found: org.apache.lucene.index.AtomicReaderContext,boolean,boolean,<nulltype>
      [ERROR] reason: actual and formal argument lists differ in length
      [ERROR] -> [Help 1]
      [ERROR]
      [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR]
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
      [ERROR]
      [ERROR] After correcting the problems, you can resume the build with the command
      [ERROR] mvn <goals> -rf :mahout-integration

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              TomAL Tom Lampert
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: