oozie 4.0.0生成错误-无法解析hcatalog依赖项

vlju58qv  于 2021-06-02  发布在  Hadoop
关注(0)|答案(2)|浏览(346)

hadoop版本1.2.1
maven版本-3.0.5
配置单元版本-0.14.0
清管器版本-0.14.0
当我开始用下面的命令构建oozie时
./mkdistro.sh-dskiptests文件
我得到下面的错误

[INFO] Apache Oozie Share Lib Sqoop ...................... SKIPPED
[INFO] Apache Oozie Share Lib Streaming .................. SKIPPED
[INFO] Apache Oozie Share Lib Distcp ..................... SKIPPED
[INFO] Apache Oozie WebApp ............................... SKIPPED
[INFO] Apache Oozie Examples ............................. SKIPPED
[INFO] Apache Oozie Share Lib ............................ SKIPPED
[INFO] Apache Oozie Tools ................................ SKIPPED
[INFO] Apache Oozie MiniOozie ............................ SKIPPED
[INFO] Apache Oozie Distro ............................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:13.847s
[INFO] Finished at: Sun Aug 09 13:22:12 IST 2015
[INFO] Final Memory: 38M/273M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project oozie-hcatalog: Could not resolve dependencies for project org.apache.oozie:oozie-hcatalog:jar:0.5.0.oozie-4.0.0: Failed to collect dependencies for [org.apache.hcatalog:hcatalog-server-extensions:jar:0.5.0-incubating (compile), org.apache.hcatalog:hcatalog-core:jar:0.5.0-incubating (compile), org.apache.hcatalog:webhcat-java-client:jar:0.5.0-incubating (compile), org.apache.hive:hive-common:jar:0.14.0 (compile), org.apache.hive:hive-metastore:jar:0.14.0 (compile), org.apache.hive:hive-exec:jar:0.14.0 (compile), org.apache.hive:hive-serde:jar:0.14.0 (compile), org.apache.thrift:libfb303:jar:0.7.0 (compile), org.codehaus.jackson:jackson-core-asl:jar:1.8.8 (compile), org.codehaus.jackson:jackson-mapper-asl:jar:1.8.8 (compile)]: Failed to read artifact descriptor for org.apache.hive:hive-builtins:jar:0.14.0: Could not transfer artifact org.apache.hive:hive-builtins:pom:0.14.0 from/to Codehaus repository (http://repository.codehaus.org/): repository.codehaus.org: Name or service not known: Unknown host repository.codehaus.org: Name or service not known -> [Help 1]

由于这个错误,它似乎无法解析hcatalog上的依赖关系。但是既然我使用的是hive-0.14,其中hcatalog是在hive中构建的,那么有没有排除hcatalog依赖性的方法呢。或者这个错误意味着其他的东西如何解决这个问题?

zd287kbt

zd287kbt1#

我通过禁用repository.codehaus.org上的依赖项修复了这个问题,因为5月份以后回购不可用。其他依赖项来自maven存储库。

anauzrmj

anauzrmj2#

“hcatalog内置于配置单元中”
不完全正确:hcatalog允许任何应用程序(pig、spark、sqoop等)访问hive元存储;它通常与配置单元安装工具包捆绑在一起,但是可以在不使用其他配置单元库的情况下提取和使用它。
实际上,oozie为hive(hive操作的默认值)和hcatalog(需要访问hive表的pig/spark/sqoop操作的附加和可选的sharelib)绑定了两个不同的sharelib。

相关问题