Hive 源码

hive 编译
  • issue

Failed to execute goal com.github.os72:protoc-jar-maven-plugin:3.5.1.1:run (default) on project hive-standalone-metastore: Error resolving artifact: com.google.protobuf:protoc:2.5.0: The following artifacts could not be resolved: com.google.protobuf:protoc:exe:osx-aarch_64:2.5.0 (absent): Could not transfer artifact com.google.protobuf:protoc:exe:osx-aarch_64:2.5.0 from/to maven-default-http-blocker (http://0.0.0.0/)

可以增加编译选项

 -Dos.arch=x86_64

可参见
https://qileq.com/article/202202230001/

  • issue

[ERROR] Failed to execute goal on project hive-service: Could not resolve dependencies for project org.apache.hive:hive-service:jar:3.1.3: Failed to collect dependencies at org.apache.directory.server:apacheds-server-integ:jar:1.5.6 -> org.apache.directory.client.ldap:ldap-client-api:jar:0.1-SNAPSHOT: Failed to read artifact descriptor for org.apache.directory.client.ldap:ldap-client-api:jar:0.1-SNAPSHOT: The following artifacts could not be resolved: org.apache.directory.client.ldap:ldap-client-api:pom:0.1-SNAPSHOT (absent): Could not transfer artifact org.apache.directory.client.ldap:ldap-client-api:pom:0.1-SNAPSHOT from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [tbds (http://tbdsrepo.oa.com/repository/tbds/, default, disabled),

添加 repo

<repository>
    <id>Codehaus repository</id>
    <name>codehaus-mule-repo</name>
    <url>https://repository-master.mulesoft.org/nexus/content/groups/public/</url>
    <layout>default</layout>
</repository>

该问题,可以参见 这个 hive issue : https://issues.apache.org/jira/browse/HIVE-21777

  • issue
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project hive-webhcat: Compilation failure
[ERROR] hive/hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/Main.java:[258,31] 对于FilterHolder(java.lang.Class<org.apache.hadoop.hdfs.web.AuthFilter>), 找不到合适的构造器
[ERROR]     构造器 org.eclipse.jetty.servlet.FilterHolder.FilterHolder(org.eclipse.jetty.servlet.Source)不适用
[ERROR]       (参数不匹配; java.lang.Class<org.apache.hadoop.hdfs.web.AuthFilter>无法转换为org.eclipse.jetty.servlet.Source)
[ERROR]     构造器 org.eclipse.jetty.servlet.FilterHolder.FilterHolder(java.lang.Class<? extends javax.servlet.Filter>)不适用
[ERROR]       (参数不匹配; java.lang.Class<org.apache.hadoop.hdfs.web.AuthFilter>无法转换为java.lang.Class<? extends javax.servlet.Filter>)
[ERROR]     构造器 org.eclipse.jetty.servlet.FilterHolder.FilterHolder(javax.servlet.Filter)不适用
[ERROR]       (参数不匹配; java.lang.Class<org.apache.hadoop.hdfs.web.AuthFilter>无法转换为javax.servlet.Filter)
[ERROR] 

将 maven 版本 从 3.9.4 降低到 3.2.5 后该问题解决

相关推荐

  1. Hive

    2024-01-06 08:50:03       54 阅读
  2. hive数据字段长度问题

    2024-01-06 08:50:03       36 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-01-06 08:50:03       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-06 08:50:03       106 阅读
  3. 在Django里面运行非项目文件

    2024-01-06 08:50:03       87 阅读
  4. Python语言-面向对象

    2024-01-06 08:50:03       96 阅读

热门阅读

  1. 搭建网站环境(IIS+php+mysql)

    2024-01-06 08:50:03       52 阅读
  2. Websocket实时更新商品信息

    2024-01-06 08:50:03       50 阅读
  3. Spring Boot和Spring主要区别:

    2024-01-06 08:50:03       60 阅读
  4. k8s-二进制部署

    2024-01-06 08:50:03       51 阅读
  5. Ubuntu20.04安装suiteCRM

    2024-01-06 08:50:03       56 阅读
  6. 使用conda管理Python虚拟环境

    2024-01-06 08:50:03       61 阅读
  7. conda

    conda

    2024-01-06 08:50:03      58 阅读
  8. conda创建、查看、删除虚拟环境

    2024-01-06 08:50:03       57 阅读
  9. 从0开始的编程生活

    2024-01-06 08:50:03       54 阅读
  10. Sentinel 使用

    2024-01-06 08:50:03       52 阅读
  11. EasyExcel的追加写入(新增POI、CSV)

    2024-01-06 08:50:03       56 阅读
  12. 使用Android 协程代替Handler

    2024-01-06 08:50:03       51 阅读