当前位置:   article > 正文

云帆教育大数据分享-Flume-0.9.4源码编译及一些编译出错解决方法_云帆考试系统编译错误

云帆考试系统编译错误

Flume-0.9.4源码编译及一些编译出错解决方法

 由于需要在Flume里面加入一些我需要的代码,这时候就需要重新编译Flume代码,因为在编译Flume源码的时候出现了很多问题,所以写出这篇博客,以此分享给那些也需要编译代码的人一些参考,这里以如何编译Flume-0.9.4源码为例进行说明。
  首先下载Flume0.9.4源码(可以到https://repository.cloudera.com/content/repositories/releases/com/cloudera/flume-distribution/0.9.4-cdh4.0.0/里面下载)之后,解压及编译:

1

[wyp@master Desktop]$ unzip flume-distribution-0.9.4-cdh4.0.0-project.zip

 

2

[wyp@master Desktop]$ cd flume-0.9.4-cdh4.0.0/

 

3

[wyp@master flume-0.9.4-cdh4.0.0]$  mvn package -Pdist -DskipTests -Dtar

这时候会出现下面的错误:

01

[INFO] ------------------------------------------------------------------------

 

02

[INFO] Reactor Summary:

 

03

[INFO]

 

04

[INFO] Flume ............................................. SUCCESS [0.003s]

 

05

[INFO] Flume Core ........................................ FAILURE [5.016s]

 

06

[INFO] Flume Master Config Web Application ............... SKIPPED

 

07

[INFO] Flume Node Web .................................... SKIPPED

 

08

[INFO] Flume Distribution Project ........................ SKIPPED

 

09

[INFO] A log4j appender for Flume ........................ SKIPPED

 

10

[INFO] Flume Hello World Plugin .......................... SKIPPED

 

11

[INFO] Flume HBase Plugin ................................ SKIPPED

 

12

[INFO] ------------------------------------------------------------------------

 

13

[INFO] BUILD FAILURE

 

14

[INFO] ------------------------------------------------------------------------

 

15

[INFO] Total time: 5.798s

 

16

[INFO] Finished at: Wed Jan 22 16:35:13 CST 2014

 

17

[INFO] Final Memory: 15M/136M

 

18

[INFO] ------------------------------------------------------------------------

 

19

[WARNING] The requested profile "dist" could not be activated because it does

 

20

not exist.

 

21

[ERROR] Failed to execute goal org.apache.thrift.tools:maven-thrift-plugin:

 

22

0.1.10:compile (default) on project flume-core: thrift did not exit cleanly.

 

23

Review output for more information. -> [Help 1]

 

24

[ERROR]

 

25

[ERROR] To see the full stack trace of the errors, re-run Maven with the

 

26

-e switch.

 

27

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

 

28

[ERROR]

 

29

[ERROR] For more information about the errors and possible solutions,

 

30

please read the following articles:

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/497785
推荐阅读
相关标签
  

闽ICP备14008679号