Hive 编译错误

    技术2022-07-10  137

    $ git clone https://git-wip-us.apache.org/repos/asf/hive.git $ cd hive $ mvn clean package -Pdist -DskipTests -Dmaven.javadoc.skip=true ... main: [exec] /bin/bash: ...hivestandalone-metastoremetastore-common/src/main/resources/saveVersion.sh: No such file or directory [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Hive Storage API 2.7.0-SNAPSHOT .................... SUCCESS [01:05 min] [INFO] Hive 4.0.0-SNAPSHOT ................................ SUCCESS [ 19.537 s] [INFO] Hive Classifications 4.0.0-SNAPSHOT ................ SUCCESS [ 4.696 s] [INFO] Hive Shims Common 4.0.0-SNAPSHOT ................... SUCCESS [ 12.593 s] [INFO] Hive Shims 0.23 4.0.0-SNAPSHOT ..................... SUCCESS [ 16.915 s] [INFO] Hive Shims Scheduler 4.0.0-SNAPSHOT ................ SUCCESS [ 2.320 s] [INFO] Hive Shims 4.0.0-SNAPSHOT .......................... SUCCESS [ 2.552 s] [INFO] Hive Standalone Metastore 4.0.0-SNAPSHOT ........... SUCCESS [ 20.914 s] [INFO] Hive Standalone Metastore Common Code 4.0.0-SNAPSHOT FAILURE [ 17.481 s] [INFO] Hive Common 4.0.0-SNAPSHOT ......................... SKIPPED [INFO] Hive Service RPC 4.0.0-SNAPSHOT .................... SKIPPED [INFO] Hive Serde 4.0.0-SNAPSHOT .......................... SKIPPED [INFO] Hive Metastore 4.0.0-SNAPSHOT ...................... SKIPPED [INFO] Hive Vector-Code-Gen Utilities 4.0.0-SNAPSHOT ...... SKIPPED [INFO] Hive Parser 4.0.0-SNAPSHOT ......................... SKIPPED [INFO] Hive UDF 4.0.0-SNAPSHOT ............................ SKIPPED [INFO] Hive Llap Common 4.0.0-SNAPSHOT .................... SKIPPED [INFO] Hive Llap Client 4.0.0-SNAPSHOT .................... SKIPPED [INFO] Hive Llap Tez 4.0.0-SNAPSHOT ....................... SKIPPED [INFO] Hive Spark Remote Client 4.0.0-SNAPSHOT ............ SKIPPED [INFO] Hive Metastore Server 4.0.0-SNAPSHOT ............... SKIPPED [INFO] Hive Query Language 4.0.0-SNAPSHOT ................. SKIPPED [INFO] Hive Llap Server 4.0.0-SNAPSHOT .................... SKIPPED [INFO] Hive Service 4.0.0-SNAPSHOT ........................ SKIPPED [INFO] Hive Accumulo Handler 4.0.0-SNAPSHOT ............... SKIPPED [INFO] Hive JDBC 4.0.0-SNAPSHOT ........................... SKIPPED [INFO] Hive Beeline 4.0.0-SNAPSHOT ........................ SKIPPED [INFO] Hive CLI 4.0.0-SNAPSHOT ............................ SKIPPED [INFO] Hive Contrib 4.0.0-SNAPSHOT ........................ SKIPPED [INFO] Hive Druid Handler 4.0.0-SNAPSHOT .................. SKIPPED [INFO] Hive HBase Handler 4.0.0-SNAPSHOT .................. SKIPPED [INFO] Hive JDBC Handler 4.0.0-SNAPSHOT ................... SKIPPED [INFO] Hive HCatalog 4.0.0-SNAPSHOT ....................... SKIPPED [INFO] Hive HCatalog Core 4.0.0-SNAPSHOT .................. SKIPPED [INFO] Hive HCatalog Pig Adapter 4.0.0-SNAPSHOT ........... SKIPPED [INFO] Hive HCatalog Server Extensions 4.0.0-SNAPSHOT ..... SKIPPED [INFO] Hive HCatalog Webhcat Java Client 4.0.0-SNAPSHOT ... SKIPPED [INFO] Hive HCatalog Webhcat 4.0.0-SNAPSHOT ............... SKIPPED [INFO] Hive HPL/SQL 4.0.0-SNAPSHOT ........................ SKIPPED [INFO] Hive Streaming 4.0.0-SNAPSHOT ...................... SKIPPED [INFO] Hive Llap External Client 4.0.0-SNAPSHOT ........... SKIPPED [INFO] Hive Shims Aggregator 4.0.0-SNAPSHOT ............... SKIPPED [INFO] Hive Kryo Registrator 4.0.0-SNAPSHOT ............... SKIPPED [INFO] Hive Kudu Handler 4.0.0-SNAPSHOT ................... SKIPPED [INFO] Hive TestUtils 4.0.0-SNAPSHOT ...................... SKIPPED [INFO] Hive Kafka Storage Handler 4.0.0-SNAPSHOT .......... SKIPPED [INFO] Hive Packaging 4.0.0-SNAPSHOT ...................... SKIPPED [INFO] Hive Metastore Tools 4.0.0-SNAPSHOT ................ SKIPPED [INFO] Hive Metastore Tools common libraries 4.0.0-SNAPSHOT SKIPPED [INFO] Hive metastore benchmarks 4.0.0-SNAPSHOT ........... SKIPPED [INFO] Hive Upgrade Acid 4.0.0-SNAPSHOT ................... SKIPPED [INFO] Hive Pre Upgrade Acid 4.0.0-SNAPSHOT ............... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:43 min [INFO] Finished at: 2020-07-01T09:41:04+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (generate-version-annotation) on project hive-standalone-metastore-common: An Ant BuildException has occured: exec returned: 127 [ERROR] around Ant part ...<exec failonerror="true" executable="bash">... @ 4:46 in F:\subsys\mystudy\hive-2\hive\standalone-metastore\metastore-common\target\antrun\build-main.xml [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/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :hive-standalone-metastore-common ... ## 解决方案: 将编译命令至shell环境下执行,即可解决 [INFO] Hive Llap External Client 4.0.0-SNAPSHOT ........... SUCCESS [ 6.954 s] [INFO] Hive Shims Aggregator 4.0.0-SNAPSHOT ............... SUCCESS [ 1.094 s] [INFO] Hive Kryo Registrator 4.0.0-SNAPSHOT ............... SUCCESS [ 15.856 s] [INFO] Hive Kudu Handler 4.0.0-SNAPSHOT ................... SUCCESS [ 36.106 s] [INFO] Hive TestUtils 4.0.0-SNAPSHOT ...................... SUCCESS [ 3.795 s] [INFO] Hive Kafka Storage Handler 4.0.0-SNAPSHOT .......... FAILURE [ 15.163 s] [INFO] Hive Packaging 4.0.0-SNAPSHOT ...................... SKIPPED [INFO] Hive Metastore Tools 4.0.0-SNAPSHOT ................ SKIPPED [INFO] Hive Metastore Tools common libraries 4.0.0-SNAPSHOT SKIPPED [INFO] Hive metastore benchmarks 4.0.0-SNAPSHOT ........... SKIPPED [INFO] Hive Upgrade Acid 4.0.0-SNAPSHOT ................... SKIPPED [INFO] Hive Pre Upgrade Acid 4.0.0-SNAPSHOT ............... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 26:38 min [INFO] Finished at: 2020-07-01T10:45:09+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project kafka-handler: Could not resolve dependencies for project org.apache.hive:kafka-handler:jar:4.0.0-SNAPSHOT: Could not find artifact io.confluent:kafka-avro-serializer:jar:5.4.0 in huaweicloud (https://mirrors.huaweicloud.com/repository/maven/) -> [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/DependencyResolutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :kafka-handler ## 解决 手动下载jar包至本地库中 https://packages.confluent.io/maven/io/confluent/kafka-avro-serializer/5.4.0/ [ERROR] Failed to execute goal on project kafka-handler: Could not resolve dependencies for project org.apache.hive:kafka-handler:jar:4.0.0-SNAPSHOT: Failed to collect dependencies at io.confluent:kafka-avro-serializer:jar:5.4.0: Failed to read artifact descriptor for io.confluent:kafka-avro-serializer:jar:5.4.0: Could not find artifact io.confluent:kafka-schema-registry-parent:pom:5.4.0 in huaweicloud (https://mirrors.huaweicloud.com/repository/maven/) -> [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/DependencyResolutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :kafka-handler ## 解决 手动下载 https://packages.confluent.io/maven/io/confluent/kafka-schema-registry-parent/5.4.0/ https://packages.confluent.io/maven/io/confluent/rest-utils-parent/5.4.0/ https://packages.confluent.io/maven/io/confluent/common/5.4.0/ https://packages.confluent.io/maven/io/confluent/common-parent/5.4.0/ https://packages.confluent.io/maven/io/confluent/kafka-schema-registry-client/5.4.0/ https://packages.confluent.io/maven/io/confluent/common-config/5.4.0/ https://packages.confluent.io/maven/io/confluent/common-utils/5.4.0/
    Processed: 0.035, SQL: 9