elephant-bird
elephant-bird copied to clipboard
error: no suitable constructor found while doing building jar (mvn package)
Hi,
I am facing below error though all pre-requisite are met including Thrift 0.7.0,protoc and jdk 1.7.55 version.
[INFO]
[INFO] Elephant Bird ...................................... SUCCESS [01:06 min]
[INFO] Elephant Bird Hadoop Compatibility ................. SUCCESS [03:09 min]
[INFO] Elephant Bird Core ................................. FAILURE [01:12 min]
[INFO] Elephant Bird Cascading2 ........................... SKIPPED
[INFO] Elephant Bird Crunch ............................... 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: 05:28 min
[INFO] Finished at: 2014-08-29T13:41:54+05:30
[INFO] Final Memory: 26M/161M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (default-testCompile) on project elephant-bird-core: Compilation failure: Compilation failure:
[ERROR] /u01/Installables/PIG_Related/elephant-bird-master/core/target/generated-test-sources/thrift/thrift/test/OneOfEach.java:[189,8] error: no suitable constructor found for FieldValueMetaData(byte,boolean)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable
[ERROR](actual argument boolean cannot be converted to String by method invocation conversion)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable
[ERROR](actual and formal argument lists differ in length)
[ERROR] /u01/Installables/PIG_Related/elephant-bird-master/core/target/generated-test-sources/thrift/com/twitter/elephantbird/thrift/test/TestUnion.java:[110,8] error: no suitable constructor found for FieldValueMetaData(byte,boolean)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable
[ERROR](actual argument boolean cannot be converted to String by method invocation conversion)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable
[ERROR](actual and formal argument lists differ in length)
[ERROR] /u01/Installables/PIG_Related/elephant-bird-master/core/target/generated-test-sources/thrift/thrift/test/Base64.java:[129,8] error: no suitable constructor found for FieldValueMetaData(byte,boolean)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable
[ERROR](actual argument boolean cannot be converted to String by method invocation conversion)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable
[ERROR](actual and formal argument lists differ in length)
[ERROR] /u01/Installables/PIG_Related/elephant-bird-master/core/target/generated-test-sources/thrift/thrift/test/Base64.java:[131,8] error: no suitable constructor found for FieldValueMetaData(byte,boolean)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable
[ERROR](actual argument boolean cannot be converted to String by method invocation conversion)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable
[ERROR](actual and formal argument lists differ in length)
[ERROR] /u01/Installables/PIG_Related/elephant-bird-master/core/target/generated-test-sources/thrift/thrift/test/Base64.java:[133,8] error: no suitable constructor found for FieldValueMetaData(byte,boolean)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable
[ERROR](actual argument boolean cannot be converted to String by method invocation conversion)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable
[ERROR](actual and formal argument lists differ in length)
[ERROR] /u01/Installables/PIG_Related/elephant-bird-master/core/target/generated-test-sources/thrift/thrift/test/Base64.java:[135,8] error: no suitable constructor found for FieldValueMetaData(byte,boolean)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable
[ERROR](actual argument boolean cannot be converted to String by method invocation conversion)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable
[ERROR](actual and formal argument lists differ in length)
[ERROR] /u01/Installables/PIG_Related/elephant-bird-master/core/target/generated-test-sources/thrift/thrift/test/Base64.java:[137,8] error: no suitable constructor found for FieldValueMetaData(byte,boolean)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable
[ERROR](actual argument boolean cannot be converted to String by method invocation conversion)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable
[ERROR](actual and formal argument lists differ in length)
[ERROR] /u01/Installables/PIG_Related/elephant-bird-master/core/target/generated-test-sources/thrift/thrift/test/Base64.java:[139,8] error: no suitable constructor found for FieldValueMetaData(byte,boolean)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable
[ERROR](actual argument boolean cannot be converted to String by method invocation conversion)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable
[ERROR](actual and formal argument lists differ in length)
[ERROR] /u01/Installables/PIG_Related/elephant-bird-master/core/target/generated-test-sources/thrift/thrift/test/CompactProtoTestStruct.java:[355,8] error: no suitable constructor found for FieldValueMetaData(byte,boolean)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable
[ERROR](actual argument boolean cannot be converted to String by method invocation conversion)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable
[ERROR](actual and formal argument lists differ in length)
[ERROR] /u01/Installables/PIG_Related/elephant-bird-master/core/target/generated-test-sources/thrift/thrift/test/CompactProtoTestStruct.java:[382,12] error: no suitable constructor found for FieldValueMetaData(byte,boolean)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable
[ERROR](actual argument boolean cannot be converted to String by method invocation conversion)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable
[ERROR](actual and formal argument lists differ in length)
[ERROR] /u01/Installables/PIG_Related/elephant-bird-master/core/target/generated-test-sources/thrift/thrift/test/CompactProtoTestStruct.java:[409,12] error: no suitable constructor found for FieldValueMetaData(byte,boolean)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable
[ERROR](actual argument boolean cannot be converted to String by method invocation conversion)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable
[ERROR](actual and formal argument lists differ in length)
[ERROR] /u01/Installables/PIG_Related/elephant-bird-master/core/target/generated-test-sources/thrift/thrift/test/CompactProtoTestStruct.java:[442,12] error: no suitable constructor found for FieldValueMetaData(byte,boolean)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable
[ERROR](actual argument boolean cannot be converted to String by method invocation conversion)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable
[ERROR](actual and formal argument lists differ in length)
[ERROR] /u01/Installables/PIG_Related/elephant-bird-master/core/target/generated-test-sources/thrift/thrift/test/CompactProtoTestStruct.java:[471,12] error: no suitable constructor found for FieldValueMetaData(byte,boolean)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable
[ERROR](actual argument boolean cannot be converted to String by method invocation conversion)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable
[ERROR](actual and formal argument lists differ in length)
[ERROR] /u01/Installables/PIG_Related/elephant-bird-master/core/target/generated-test-sources/thrift/thrift/test/ComparableUnion.java:[96,8] error: no suitable constructor found for FieldValueMetaData(byte,boolean)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable
[ERROR](actual argument boolean cannot be converted to String by method invocation conversion)
[ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable
[ERROR](actual and formal argument lists differ in length)
[ERROR] /u01/Installables/PIG_Related/elephant-bird-master/core/target/generated-test-sources/thrift/com/twitter/elephantbird/thrift/test/TestBinaryInListMap.java:[107,16] error: no suitable constructor found for FieldValueMetaData(byte,boolean)
[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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn
Regards, Snehotosh
elephant-bird 4.5 with Thrift 0.7.0 installed
$ protoc --version libprotoc 2.4.1 $ java -version java version "1.7.0_67" Java(TM) SE Runtime Environment (build 1.7.0_67-b01) Java HotSpot(TM) Server VM (build 24.65-b04, mixed mode)
[INFO] ------------------------------------------------------------------------ [INFO] Building Elephant Bird Core 4.5 [INFO] ------------------------------------------------------------------------
[WARNING] Checksum validation failed, could not read expected checksum: Failed to transfer file: http://maven.twttr.com/org/apache/thrift/libthrift/0.7.0/libthrift-0.7.0.pom.sha1. Return code is: 300 for http://maven.twttr.com/org/apache/thrift/libthrift/0.7.0/libthrift-0.7.0.pom [WARNING] Checksum validation failed, could not read expected checksum: Failed to transfer file: http://maven.twttr.com/org/apache/thrift/libthrift/0.7.0/libthrift-0.7.0.pom.sha1. Return code is: 300 for http://maven.twttr.com/org/apache/thrift/libthrift/0.7.0/libthrift-0.7.0.pom
[WARNING] Checksum validation failed, could not read expected checksum: Failed to transfer file: http://maven.twttr.com/org/apache/thrift/libthrift/0.7.0/libthrift-0.7.0.jar.sha1. Return code is: 300 for http://maven.twttr.com/org/apache/thrift/libthrift/0.7.0/libthrift-0.7.0.jar [WARNING] Checksum validation failed, could not read expected checksum: Failed to transfer file: http://maven.twttr.com/org/apache/thrift/libthrift/0.7.0/libthrift-0.7.0.jar.sha1. Return code is: 300 for http://maven.twttr.com/org/apache/thrift/libthrift/0.7.0/libthrift-0.7.0.jar
[INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /usr/local/hadoop-environment/elephant-bird/core/target/generated-test-sources/thrift/thrift/test/OneOfEach.java:[189,8] error: no suitable constructor found for FieldValueMetaData(byte,boolean) [ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable (actual argument boolean cannot be converted to String by method invocation conversion) constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable (actual and formal argument lists differ in length) /usr/local/hadoop-environment/elephant-bird/core/target/generated-test-sources/thrift/com/twitter/elephantbird/thrift/test/TestBinaryInListMap.java:[107,16] error: no suitable constructor found for FieldValueMetaData(byte,boolean) [ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable (actual argument boolean cannot be converted to String by method invocation conversion) constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable (actual and formal argument lists differ in length) /usr/local/hadoop-environment/elephant-bird/core/target/generated-test-sources/thrift/thrift/test/CompactProtoTestStruct.java:[355,8] error: no suitable constructor found for FieldValueMetaData(byte,boolean) [ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable (actual argument boolean cannot be converted to String by method invocation conversion) constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable (actual and formal argument lists differ in length) /usr/local/hadoop-environment/elephant-bird/core/target/generated-test-sources/thrift/thrift/test/CompactProtoTestStruct.java:[382,12] error: no suitable constructor found for FieldValueMetaData(byte,boolean) [ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable (actual argument boolean cannot be converted to String by method invocation conversion) constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable (actual and formal argument lists differ in length) /usr/local/hadoop-environment/elephant-bird/core/target/generated-test-sources/thrift/thrift/test/CompactProtoTestStruct.java:[409,12] error: no suitable constructor found for FieldValueMetaData(byte,boolean) [ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable (actual argument boolean cannot be converted to String by method invocation conversion) constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable (actual and formal argument lists differ in length) /usr/local/hadoop-environment/elephant-bird/core/target/generated-test-sources/thrift/thrift/test/CompactProtoTestStruct.java:[442,12] error: no suitable constructor found for FieldValueMetaData(byte,boolean) [ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable (actual argument boolean cannot be converted to String by method invocation conversion) constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable (actual and formal argument lists differ in length) /usr/local/hadoop-environment/elephant-bird/core/target/generated-test-sources/thrift/thrift/test/CompactProtoTestStruct.java:[471,12] error: no suitable constructor found for FieldValueMetaData(byte,boolean) [ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable (actual argument boolean cannot be converted to String by method invocation conversion) constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable (actual and formal argument lists differ in length) /usr/local/hadoop-environment/elephant-bird/core/target/generated-test-sources/thrift/thrift/test/Base64.java:[129,8] error: no suitable constructor found for FieldValueMetaData(byte,boolean) [ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable (actual argument boolean cannot be converted to String by method invocation conversion) constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable (actual and formal argument lists differ in length) /usr/local/hadoop-environment/elephant-bird/core/target/generated-test-sources/thrift/thrift/test/Base64.java:[131,8] error: no suitable constructor found for FieldValueMetaData(byte,boolean) [ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable (actual argument boolean cannot be converted to String by method invocation conversion) constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable (actual and formal argument lists differ in length) /usr/local/hadoop-environment/elephant-bird/core/target/generated-test-sources/thrift/thrift/test/Base64.java:[133,8] error: no suitable constructor found for FieldValueMetaData(byte,boolean) [ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable (actual argument boolean cannot be converted to String by method invocation conversion) constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable (actual and formal argument lists differ in length) /usr/local/hadoop-environment/elephant-bird/core/target/generated-test-sources/thrift/thrift/test/Base64.java:[135,8] error: no suitable constructor found for FieldValueMetaData(byte,boolean) [ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable (actual argument boolean cannot be converted to String by method invocation conversion) constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable (actual and formal argument lists differ in length) /usr/local/hadoop-environment/elephant-bird/core/target/generated-test-sources/thrift/thrift/test/Base64.java:[137,8] error: no suitable constructor found for FieldValueMetaData(byte,boolean) [ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable (actual argument boolean cannot be converted to String by method invocation conversion) constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable (actual and formal argument lists differ in length) /usr/local/hadoop-environment/elephant-bird/core/target/generated-test-sources/thrift/thrift/test/Base64.java:[139,8] error: no suitable constructor found for FieldValueMetaData(byte,boolean) [ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable (actual argument boolean cannot be converted to String by method invocation conversion) constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable (actual and formal argument lists differ in length) /usr/local/hadoop-environment/elephant-bird/core/target/generated-test-sources/thrift/com/twitter/elephantbird/thrift/test/TestUnion.java:[110,8] error: no suitable constructor found for FieldValueMetaData(byte,boolean) [ERROR] constructor FieldValueMetaData.FieldValueMetaData(byte,String) is not applicable (actual argument boolean cannot be converted to String by method invocation conversion) constructor FieldValueMetaData.FieldValueMetaData(byte) is not applicable (actual and formal argument lists differ in length) /usr/local/hadoop-environment/elephant-bird/core/target/generated-test-sources/thrift/thrift/test/ComparableUnion.java:[96,8] error: no suitable constructor found for FieldValueMetaData(byte,boolean)
Regards.
I have skipped the problem with $ sudo mvn -Dmaven.test.skip=true package and I've tried my project Twitter Data Collection works with it.