我在linux上对flink的flink-connector-kafka-0.10 这个module进行测试,执行mvn test 没有问题,但是执行 mvn
integration-test 失败,如下:
执行命令:
cd flink-connectors/flink-connector-kafka-0.10
mvn integration-test -Dtest=Kafka010ProducerITCase
日志:
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for
org.apache.flink:flink-connector-kafka-0.10_2.11:jar:1.10-SNAPSHOT
[WARNING] 'artifactId' contains an expression but should be a constant. @
org.apache.flink:flink-connector-kafka-0.10_${scala.binary.version}:[unknown-version],
/home/j-gaofeilong-jk/software/flink/flink-master/flink-connectors/flink-connector-kafka-0.10/pom.xml,
line 33, column 14
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten
the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support
building such malformed projects.
[WARNING]
[INFO]
[INFO] --< org.apache.flink:flink-connector-kafka-0.10_2.11 >--
[INFO] Building flink-connector-kafka-0.10 1.10-SNAPSHOT
[INFO] [ jar ]-
[INFO]
[INFO] --- maven-checkstyle-plugin:2.17:check (validate) @
flink-connector-kafka-0.10_2.11 ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-maven-version) @
flink-connector-kafka-0.10_2.11 ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-maven) @
flink-connector-kafka-0.10_2.11 ---
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) @
flink-connector-kafka-0.10_2.11 ---
[INFO]
[INFO] --- directory-maven-plugin:0.1:highest-basedir (directories) @
flink-connector-kafka-0.10_2.11 ---
[INFO] Highest basedir set to: /home/j-gaofeilong-jk/software/flink/flink-master
[INFO]
[INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles)
@ flink-connector-kafka-0.10_2.11 ---
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @
flink-connector-kafka-0.10_2.11 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @
flink-connector-kafka-0.10_2.11 ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @
flink-connector-kafka-0.10_2.11 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @
flink-connector-kafka-0.10_2.11 ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.22.1:test (default-test) @
flink-connector-kafka-0.10_2.11 ---
[INFO] Surefire report directory:
/home/j-gaofeilong-jk/software/flink/flink-master/flink-connectors/flink-connector-kafka-0.10/target/surefire-reports
[INFO]
[INFO] ---
[INFO] T E S T S
[INFO] ---
[INFO] Running
org.apache.flink.streaming.connectors.kafka.Kafka010ProducerITCase
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.26 s
<<< FAILURE! - in
org.apache.flink.streaming.connectors.kafka.Kafka010ProducerITCase
[ERROR] org.apache.flink.streaming.connectors.kafka.Kafka010ProducerITCase
Time elapsed: 0.259 s <<< ERROR!
java.io.IOException: No such file or directory
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR]
Kafka010ProducerITCase.org.apache.flink.streaming.connectors.kafka.Kafka010ProducerITCase
» IO
[INFO]
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO]
[INFO]
[INFO] BUILD FAILURE
[INFO]
[INFO] Total time: 6.063 s
[INFO] Finished at: 2019-09-30T16:31:39+08:00
[INFO]
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on
project flink-connector-kafka-0.10_2.11: There are test failures.
[ERROR]
[ERROR] Please refer to
/home/j-gaofeilong-jk/software/flink/flink-master/flink-connectors/flink-connector-kafka-0.10/target/surefire-reports
for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump,
[date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on
project flink-connector-kafka-0.10_2.11: There are test failures.
Please refer to
/home/j-gaofeilong-jk/software/flink/flink-master/flink-conne