2013-10-21 73 views
0

我試圖建立Twitter的大象鳥包,所以我可以用豬用它,但我得到一個錯誤:錯誤建築大象鳥

[INFO] Elephant Bird ..................................... SUCCESS [0.638s] 
[INFO] Elephant Bird Hadoop Compatibility ................ SUCCESS [1.213s] 
[INFO] Elephant Bird Core ................................ FAILURE [0.580s] 
[INFO] Elephant Bird Cascading2 .......................... SKIPPED 
[INFO] Elephant Bird Hive ................................ SKIPPED 
[INFO] Elephant Bird Pig ................................. SKIPPED 
[INFO] Elephant Bird Mahout .............................. SKIPPED 
[INFO] Elephant Bird RCFile .............................. SKIPPED 
[INFO] Elephant Bird Lucene .............................. SKIPPED 
[INFO] Elephant Bird Pig Lucene .......................... SKIPPED 
[INFO] Elephant Bird Examples ............................ SKIPPED 

[ERROR] Failed to execute goal com.github.igor-petruk.protobuf:protobuf-maven-plugin:0.4:run (default) on project elephant-bird-core: Protobuf installation version does not match Protobuf library version -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command 
[ERROR] mvn <goals> -rf :elephant-bird-core 

這裏是我的系統行家信息:

Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800) 
Maven home: /usr/share/maven 
Java version: 1.7.0_45, vendor: Oracle Corporation 
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre 
Default locale: en_US, platform encoding: UTF-8 
OS name: "mac os x", version: "10.8.3", arch: "x86_64", family: "mac" 

我已經安裝了Thrift和protobuf。

編輯根據Jigar的建議,我修復了這裏遇到的第一個與protobuf版本有關的構建錯誤。我還更新了導致錯誤的pom文件中Thrift的版本號。由於錯誤信息表明

[INFO] Elephant Bird ..................................... SUCCESS [0.647s] 
[INFO] Elephant Bird Hadoop Compatibility ................ SUCCESS [1.157s] 
[INFO] Elephant Bird Core ................................ FAILURE [7.434s] 
[INFO] Elephant Bird Cascading2 .......................... SKIPPED 
[INFO] Elephant Bird Hive ................................ SKIPPED 
[INFO] Elephant Bird Pig ................................. SKIPPED 
[INFO] Elephant Bird Mahout .............................. SKIPPED 
[INFO] Elephant Bird RCFile .............................. SKIPPED 
[INFO] Elephant Bird Lucene .............................. SKIPPED 
[INFO] Elephant Bird Pig Lucene .......................... SKIPPED 
[INFO] Elephant Bird Examples ............................ SKIPPED 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 9.987s 
[INFO] Finished at: Mon Oct 21 14:25:09 PDT 2013 
[INFO] Final Memory: 20M/369M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project elephant-bird-core: Compilation failure 
[ERROR] /Users/evanzamir/Pig/pig-jars/elephant-bird/core/src/main/java/org/apache/thrift/Fixtures.java:[118,69] error: cannot find symbol 
[ERROR] -> [Help 1] 
+1

https://github.com/kevinweil/elephant-bird/wiki/Build-errors –

回答

0

Protobuf installation version does not match Protobuf library version

您正在使用協議緩衝區錯誤的版本,但我仍然得到下面的錯誤。 @ jigar-joshi發佈了一個指針,告訴你如何將其更改爲正確的版本。

編輯:以下回答用戶報告的新錯誤。

請務必閱讀錯誤信息並嘗試理解它們。例如,這個人說:

/Users/evanzamir/Pig/pig-jars/elephant-bird/core/src/main/java/org/apache/thrift/Fixtures.java:[118,69] error: cannot find symbol

它的意思是,在文件Fixtures.java,在線路118(字69)你有一個符號(例如,變量或方法名)尚未以前定義(或正確導入/合格)。

+0

謝謝,我也跟着該鏈接並固定初始誤差。但是現在我仍然收到錯誤。請參閱編輯的文章 –

+0

@ evan-zamir我已經更新了我的答案。 – cabad

+0

謝謝@cabad,我的確看過錯誤信息。這不是我的代碼,所以我想我們必須責怪編寫它的Twitter的人。 :) –