已经快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=using命令
ant_home/bin/ant -Dhcatalog.version=0.5.0 -Dforrest.home=forrest_home tar 现在的问题是build.xml没有名为'tar‘的目标。所以我只是浏览了build.xml,并尝试了使用target作为'package‘的相同命令。
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请帮帮我。
发布于 2013-01-30 04:30:22
在过去的几天里,我们已经遇到了同样的问题,并在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用户邮件列表:http://incubator.apache.org/hcatalog/mailing_lists.html
发布于 2013-12-14 14:09:43
当给目标"tar“时,我得到了同样的错误。在将目标指定为"package“时,构建将继续进行,但会失败,并显示以下错误:
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-孵化”而不是"0.5.0“,解决了此问题。错误的原因是构建程序将hcatalog core工件安装为hcatalog core-0.5.0-incubating.jar。然而,由于错误的核心,依赖项目改为搜索hcatalog- project.version -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 packagehttps://stackoverflow.com/questions/14476644
复制相似问题