sunjincheng created FLINK-12001:
----------------------------------- Summary: Test AvroExternalJarProgramITCase, get `JAR file does not exist` Error. Key: FLINK-12001 URL: https://issues.apache.org/jira/browse/FLINK-12001 Project: Flink Issue Type: Bug Components: Formats (JSON, Avro, Parquet, ORC, SequenceFile) Affects Versions: 1.8.0 Reporter: sunjincheng Assignee: sunjincheng Fix For: 1.8.0 When I run `mvn clean verify` I got the follows error: {code} [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.328 s <<< FAILURE! - in org.apache.flink.formats.avro.AvroExternalJarProgramITCase [ERROR] org.apache.flink.formats.avro.AvroExternalJarProgramITCase Time elapsed: 2.328 s <<< ERROR! {code} And run `AvroExternalJarProgramITCase` in IDE, I also got the follows error: {code} org.apache.flink.client.program.ProgramInvocationException: JAR file does not exist '/Users/jincheng/work/opensource/FLINK-MERGE/flink-formats/flink-avro/maven-test-jar.jar' at org.apache.flink.client.program.PackagedProgram.checkJarFile(PackagedProgram.java:777) at org.apache.flink.client.program.PackagedProgram.<init>(PackagedProgram.java:183) at org.apache.flink.client.program.PackagedProgram.<init>(PackagedProgram.java:108) at org.apache.flink.formats.avro.AvroExternalJarProgramITCase.testExternalProgram(AvroExternalJarProgramITCase.java:74) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) at org.junit.rules.RunRules.evaluate(RunRules.java:20) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68) at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) {code} And test JAR file is placed in `target` folder. So we should change the jar file path. What do you think? -- This message was sent by Atlassian JIRA (v7.6.3#76005) |
Free forum by Nabble | Edit this page |