1

已经快 3 个小时了,我无法构建它。请任何人提供步骤。所有文件都建议使用 hcatalog-src-0.5.0-incuvating.tar.gz 但这在互联网上的任何地方都不可用(据我搜索)。然后我下载了分支 0.5.0 但根据文档 http://docs.hortonworks.com/HDPDocuments/HDP1/HDP-1.2.0/ds_HCatalog/install.pdf

对于 0.5.0 版,您必须使用命令构建 l=

ant_home/bin/ant -Dhcatalog.version=0.5.0 -Dforrest.home=forrest_home tar  

现在的问题是 build.xml 没有名为“tar”的目标。所以我只是浏览了 build.xml 并尝试了使用目标作为“包”的相同命令

ant_home/bin/ant -Dhcatalog.version=0.5.0 -Dforrest.home=forrest_home package

但随后它向我显示错误。

BUILD FAILED
C:\Users\admnilesh\Desktop\hcatalog-branch-0.5\build.xml:71: The following error
 occurred while executing this line:
C:\Users\nilesh\Desktop\hcatalog-branch-0.5\build-support\ant\deploy.xml:67:
Unable to resolve artifact: Unable to get dependency information: Unable to read
 the metadata file for artifact 'com.sun.jersey:jersey-core:jar': Cannot find pa
rent: net.java:jvnet-parent for project: com.sun.jersey:jersey-project:pom:1.9.1
 for project com.sun.jersey:jersey-project:pom:1.9.1
  com.sun.jersey:jersey-core:jar:1.9.1

from the specified remote repositories:
  apache.snapshots (http://repository.apache.org/snapshots),
  central (http://repo1.maven.org/maven2),
  glassfish-repository (http://maven.glassfish.org/content/groups/glassfish),
  datanucleus (http://www.datanucleus.org/downloads/maven2)

Path to dependency:
        1) org.apache.hcatalog:webhcat:jar:0.5.0-SNAPSHOT

请帮帮我。

4

2 回答 2

1

在过去的几天里,我们遇到了同样的麻烦并在 hcatalog-user 邮件列表中进行了讨论。您可以查看https://issues.apache.org/jira/browse/HCATALOG-601以了解针对此问题所做的工作。

快速总结:Jersey 1.9 依赖于 glassfish maven repo,它不再存在。将您的 jersey dep 版本从 1.9 升级到 1.14,您应该能够构建。

编辑:还有一件事——我们仍在通过发布过程来发布 0.5.0 孵化候选者,最新的候选者目前正在http://people.apache.org/~travis/上发布。我们应该会在几天内看到公开发布。同时,我建议查看我们的 hcatalog-user 邮件列表:http: //incubator.apache.org/hcatalog/mailing_lists.html

于 2013-01-29T20:30:22.370 回答
0

我在给目标“tar”时遇到了同样的错误。在将目标指定为“包”时,构建继续进行但失败并出现以下错误:

satish@dev1$ /usr/bin/ant -Dhcatalog.version=0.5.0 -Dforrest.home=/home/satish/work/forrest/apache-forrest-0.9 package

[artifact:dependencies] Unable to resolve artifact: Missing:
[artifact:dependencies] ----------
[artifact:dependencies] 1) org.apache.hcatalog:hcatalog-core:jar:0.5.0
[artifact:dependencies] 

[artifact:dependencies] 
[artifact:dependencies]   Path to dependency: 
[artifact:dependencies]     1) org.apache.hcatalog:hcatalog-pig-adapter:jar:0.5.0-    incubating
[artifact:dependencies]     2) org.apache.hcatalog:hcatalog-core:jar:0.5.0
[artifact:dependencies] ----------

通过在构建命令行中将 project.version 指定为“0.5.0-incubating”而不是“0.5.0”来解决此问题。错误的原因是 build 将 hcatalog-core 工件安装为 hcatalog-core-0.5.0-incubating.jar。但是,由于 project.version 错误,依赖项目改为搜索 hcatalog-core-0.5.0.jar。

构建成功:

satish@dev1$ /usr/bin/ant -Dhcatalog.version=0.5.0-incubating -Dforrest.home=/home/satish/work/forrest/apache-forrest-0.9 package
于 2013-12-14T06:09:42.703 回答