差不多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,并使用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
请帮帮我。
答案 0 :(得分:1)
我们遇到了同样的麻烦,并在过去几天在hcatalog用户邮件列表中进行了讨论。您可以查看https://issues.apache.org/jira/browse/HCATALOG-601以查看有关此问题的操作。
快速摘要:泽西岛1.9取决于不再存在的玻璃鱼maven回购。将您的平针织版本从1.9升到1.14,您应该能够构建。
编辑:还有一件事 - 我们仍然会通过发布流程发布0.5.0孵化候选人,最新候选人目前正在http://people.apache.org/~travis/。我们应该在几天内看到公开发布。与此同时,我建议在我们的hcatalog用户邮件列表中查看:http://incubator.apache.org/hcatalog/mailing_lists.html
答案 1 :(得分: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