Hadoop版本-1.2.1
Maven版本 - 3.0.5
hive版本 - 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依赖。或者错误意味着如何解决这个问题?
答案 0 :(得分:1)
“hcatalog内置于hive”
不完全正确:HCatalog允许任何应用程序(Pig,Spark,Sqoop等)访问Hive Metastore;它通常与Hive安装工具包捆绑在一起,但它可以被提取并与其余的Hive库一起使用。
事实上,Oozie为Hive捆绑两个不同的ShareLib(Hive操作的默认设置)和HCatalog(附加 - 和可选 - 用于Pig / Spark / Sqoop动作的ShareLib,需要访问Hive表)。
答案 1 :(得分:0)
我通过禁用对repository.codehaus.org的依赖来解决这个问题,因为在may之后repo不可用。其他依赖项来自maven存储库。