2013-01-23 24 views
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如何構建Apache HCatalog 0.5.0?

版本0.5.0

你必須建立L =使用命令

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

現在的問題是,這個build.xml不有一個名爲'焦油'的目標。所以我只是瀏覽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 

請幫我一把。

回答

1

我們一直有同樣的麻煩,並在最近幾天在hcatalog-user郵件列表上討論過它。你可以看看https://issues.apache.org/jira/browse/HCATALOG-601來看看這個問題正在做些什麼。

雖然快速總結:澤西島1.9取決於玻璃魚maven回購,它不再存在。將你的球衣版本從1.9升至1.14,你應該可以建造。

編輯:還有一件事 - 我們正在通過發佈流程發佈0.5.0孵化候選人,目前最新的候選人正在登錄http://people.apache.org/~travis/。我們應該在幾天內看到公開發布。與此同時,我建議在我們的目錄用戶郵件列表上戳一下:http://incubator.apache.org/hcatalog/mailing_lists.html

+0

我已經下載了0.5版本,但這個問題仍然存在。我可以知道任何我該如何解決? – Kevin

0

我在給出目標「tar」時得到了同樣的錯誤。對指定目標的「包」,構建繼續領先,但失敗,以下錯誤:

[email protected]$ /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 artifact安裝爲hcatalog-core-0.5.0-incubating.jar。但是由於錯誤的project.version,依賴項目卻在尋找hcatalog-core-0.5.0.jar。

構建成功,但有:

[email protected]$ /usr/bin/ant -Dhcatalog.version=0.5.0-incubating -Dforrest.home=/home/satish/work/forrest/apache-forrest-0.9 package