Question

I tried to build maven package from this source https://github.com/mpercy/flume-load-gen.
But, when I build it using mvn clean package, I got errors like this :

[ERROR] /home/vincentius/Documents/flume-load-gen-master/src/main/java/org/apache/flume/tcphammer/Hammer.java:[67,12] error: no suitable method found for info(String,String,int)
[ERROR] 
[ERROR] method Logger.info(Marker,String,Throwable) is not applicable
[ERROR] (actual argument String cannot be converted to Marker by method invocation conversion)
[ERROR] method Logger.info(Marker,String,Object[]) is not applicable
[ERROR] (actual argument String cannot be converted to Marker by method invocation conversion)
[ERROR] method Logger.info(Marker,String,Object,Object) is not applicable
[ERROR] (actual and formal argument lists differ in length)
[ERROR] method Logger.info(Marker,String,Object) is not applicable
[ERROR] (actual argument String cannot be converted to Marker by method invocation conversion)
[ERROR] method Logger.info(Marker,String) is not applicable
[ERROR] (actual and formal argument lists differ in length)
[ERROR] method Logger.info(String,Throwable) is not applicable
[ERROR] (actual and formal argument lists differ in length)
[ERROR] method Logger.info(String,Object[]) is not applicable
[ERROR] (actual and formal argument lists differ in length)
[ERROR] method Logger.info(String,Object,Object) is not applicable
[ERROR] (actual argument int cannot be converted to Object by method invocation conversion)
[ERROR] method Logger.info(String,Object) is not applicable
[ERROR] (actual and formal argument lists differ in length)
[ERROR] method Logger.info(String) is not applicable
[ERROR] (actual and formal argument lists differ in length)
[ERROR] /home/vincentius/Documents/flume-load-gen-master/src/main/java/org/apache/flume/tcphammer/Hammer.java:[137,25] error: incompatible types
[ERROR] 
[ERROR] could not parse error message:   required: Object
[ERROR] found:    long
[ERROR] /home/vincentius/Documents/flume-load-gen-master/src/main/java/org/apache/flume/tcphammer/Hammer.java:138: error: incompatible types
[ERROR] curLogIntervalNanosSlept / 1000000,
[ERROR] ^
[ERROR] 
[ERROR] could not parse error message:   required: Object
[ERROR] found:    long
[ERROR] /home/vincentius/Documents/flume-load-gen-master/src/main/java/org/apache/flume/tcphammer/Hammer.java:139: error: cannot find symbol
[ERROR] String.format("%.2f", (100 * (double) curLogIntervalNanosSlept / (double) logDelta)),
[ERROR] ^
[ERROR] 
[ERROR] could not parse error message:   symbol:   method format(String,double)
[ERROR] location: class String
[ERROR] /home/vincentius/Documents/flume-load-gen-master/src/main/java/org/apache/flume/tcphammer/Hammer.java:140: error: incompatible types
[ERROR] curLogIntervalEventsSent,
[ERROR] ^
[ERROR] 
[ERROR] could not parse error message:   required: Object
[ERROR] found:    long
[ERROR] /home/vincentius/Documents/flume-load-gen-master/src/main/java/org/apache/flume/tcphammer/Hammer.java:141: error: cannot find symbol
[ERROR] String.format("%.2f", (double) curLogIntervalEventsSent / ((double) logDelta / 1000000000D)),
[ERROR] ^
[ERROR] 
[ERROR] could not parse error message:   symbol:   method format(String,double)
[ERROR] location: class String
[ERROR] /home/vincentius/Documents/flume-load-gen-master/src/main/java/org/apache/flume/tcphammer/Hammer.java:142: error: incompatible types
[ERROR] eventCount,
[ERROR] ^
[ERROR] -> [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/MojoFailureException

I think maven use wrong slf4j logger in this case. But, I really don't know how to fix this. Anyone can help? thanks!

Was it helpful?

Solution

Consider opening an issue at https://github.com/mpercy/flume-load-gen/issues because it is free software.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top