Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-18943

Hive building with Hadoop 3.0.0 ERROR

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 2.3.2
    • None
    • None
    • None

    Description

      hive  version:  2.3.2 

      hadoop version: 3.0.0 

      building error:  

       

      [WARNING] COMPILATION WARNING :
      [INFO] -------------------------------------------------------------
      [WARNING] /home/data/programs/apache-hive-2.3.2-src/shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java: /home/data/programs/apache-hive-2.3.2-src/shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java uses or overrides a deprecated API.
      [WARNING] /home/data/programs/apache-hive-2.3.2-src/shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java: Recompile with -Xlint:deprecation for details.
      [WARNING] /home/data/programs/apache-hive-2.3.2-src/shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java: /home/data/programs/apache-hive-2.3.2-src/shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java uses unchecked or unsafe operations.
      [WARNING] /home/data/programs/apache-hive-2.3.2-src/shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java: Recompile with -Xlint:unchecked for details.
      [INFO] 4 warnings
      [INFO] -------------------------------------------------------------
      [INFO] -------------------------------------------------------------
      [ERROR] COMPILATION ERROR :
      [INFO] -------------------------------------------------------------
      [ERROR] /home/data/programs/apache-hive-2.3.2-src/shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java:[1088,29] constructor DistCpOptions in class org.apache.hadoop.tools.DistCpOptions cannot be applied to given types;
      required: org.apache.hadoop.tools.DistCpOptions.Builder
      found: java.util.List<org.apache.hadoop.fs.Path>,org.apache.hadoop.fs.Path
      reason: actual and formal argument lists differ in length
      [ERROR] /home/data/programs/apache-hive-2.3.2-src/shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java:[1089,12] cannot find symbol
      symbol: method setSyncFolder(boolean)
      location: variable options of type org.apache.hadoop.tools.DistCpOptions
      [ERROR] /home/data/programs/apache-hive-2.3.2-src/shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java:[1090,12] cannot find symbol
      symbol: method setSkipCRC(boolean)
      location: variable options of type org.apache.hadoop.tools.DistCpOptions
      [ERROR] /home/data/programs/apache-hive-2.3.2-src/shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java:[1091,12] cannot find symbol
      symbol: method preserve(org.apache.hadoop.tools.DistCpOptions.FileAttribute)
      location: variable options of type org.apache.hadoop.tools.DistCpOptions
      [INFO] 4 errors
      [INFO] -------------------------------------------------------------
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] Hive ............................................... SUCCESS [ 50.616 s]
      [INFO] Hive Shims Common .................................. SUCCESS [07:24 min]
      [INFO] Hive Shims 0.23 .................................... FAILURE [04:17 min]
      [INFO] Hive Shims Scheduler ............................... SKIPPED
      [INFO] Hive Shims ......................................... SKIPPED
      [INFO] Hive Common ........................................ SKIPPED
      [INFO] Hive Service RPC ................................... SKIPPED
      [INFO] Hive Serde ......................................... SKIPPED
      [INFO] Hive Metastore ..................................... SKIPPED
      [INFO] Hive Vector-Code-Gen Utilities ..................... SKIPPED
      [INFO] Hive Llap Common ................................... SKIPPED
      [INFO] Hive Llap Client ................................... SKIPPED
      [INFO] Hive Llap Tez ...................................... SKIPPED
      [INFO] Spark Remote Client ................................ SKIPPED
      [INFO] Hive Query Language ................................ SKIPPED
      [INFO] Hive Llap Server ................................... SKIPPED
      [INFO] Hive Service ....................................... SKIPPED
      [INFO] Hive Accumulo Handler .............................. SKIPPED
      [INFO] Hive JDBC .......................................... SKIPPED
      [INFO] Hive Beeline ....................................... SKIPPED
      [INFO] Hive CLI ........................................... SKIPPED
      [INFO] Hive Contrib ....................................... SKIPPED
      [INFO] Hive Druid Handler ................................. SKIPPED
      [INFO] Hive HBase Handler ................................. SKIPPED
      [INFO] Hive JDBC Handler .................................. SKIPPED
      [INFO] Hive HCatalog ...................................... SKIPPED
      [INFO] Hive HCatalog Core ................................. SKIPPED
      [INFO] Hive HCatalog Pig Adapter .......................... SKIPPED
      [INFO] Hive HCatalog Server Extensions .................... SKIPPED
      [INFO] Hive HCatalog Webhcat Java Client .................. SKIPPED
      [INFO] Hive HCatalog Webhcat .............................. SKIPPED
      [INFO] Hive HCatalog Streaming ............................ SKIPPED
      [INFO] Hive HPL/SQL ....................................... SKIPPED
      [INFO] Hive Llap External Client .......................... SKIPPED
      [INFO] Hive Shims Aggregator .............................. SKIPPED
      [INFO] Hive TestUtils ..................................... SKIPPED
      [INFO] Hive Packaging ..................................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 12:32 min
      [INFO] Finished at: 2018-03-13T14:52:42+08:00
      [INFO] Final Memory: 65M/1191M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project hive-shims-0.23: Compilation failure: Compilation failure:
      [ERROR] /home/data/programs/apache-hive-2.3.2-src/shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java:[1088,29] constructor DistCpOptions in class org.apache.hadoop.tools.DistCpOptions cannot be applied to given types;
      [ERROR] required: org.apache.hadoop.tools.DistCpOptions.Builder
      [ERROR] found: java.util.List<org.apache.hadoop.fs.Path>,org.apache.hadoop.fs.Path
      [ERROR] reason: actual and formal argument lists differ in length
      [ERROR] /home/data/programs/apache-hive-2.3.2-src/shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java:[1089,12] cannot find symbol
      [ERROR] symbol: method setSyncFolder(boolean)
      [ERROR] location: variable options of type org.apache.hadoop.tools.DistCpOptions
      [ERROR] /home/data/programs/apache-hive-2.3.2-src/shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java:[1090,12] cannot find symbol
      [ERROR] symbol: method setSkipCRC(boolean)
      [ERROR] location: variable options of type org.apache.hadoop.tools.DistCpOptions
      [ERROR] /home/data/programs/apache-hive-2.3.2-src/shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java:[1091,12] cannot find symbol
      [ERROR] symbol: method preserve(org.apache.hadoop.tools.DistCpOptions.FileAttribute)
      [ERROR] location: variable options of type org.apache.hadoop.tools.DistCpOptions
      [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 :hive-shims-0.23

      Attachments

        Activity

          People

            Unassigned Unassigned
            gehaijiang gehaijiang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: