Unknown I/O error while extracting contained jar files

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Unknown I/O error while extracting contained jar files

Chris Chang

when i executor  ./bin/flink run  -c  myMainClass  myjar.jar  i got the following exception.  

and it's work fine when i run unzip myjar.jar    

why i  get this exception?

Thanks.


org.apache.flink.client.program.ProgramInvocationException: Unknown I/O error while extracting contained jar files.

at org.apache.flink.client.program.PackagedProgram.extractContainedLibraries(PackagedProgram.java:754)

at org.apache.flink.client.program.PackagedProgram.<init>(PackagedProgram.java:193)

at org.apache.flink.client.CliFrontend.buildProgram(CliFrontend.java:890)

at org.apache.flink.client.CliFrontend.run(CliFrontend.java:228)

at org.apache.flink.client.CliFrontend.parseParameters(CliFrontend.java:1073)

at org.apache.flink.client.CliFrontend$2.call(CliFrontend.java:1120)

at org.apache.flink.client.CliFrontend$2.call(CliFrontend.java:1117)

at org.apache.flink.runtime.security.HadoopSecurityContext$1.run(HadoopSecurityContext.java:43)

at java.security.AccessController.doPrivileged(Native Method)

at javax.security.auth.Subject.doAs(Subject.java:422)

at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)

at org.apache.flink.runtime.security.HadoopSecurityContext.runSecured(HadoopSecurityContext.java:40)

at org.apache.flink.client.CliFrontend.main(CliFrontend.java:1116)

Caused by: java.util.zip.ZipException: error in opening zip file

at java.util.zip.ZipFile.open(Native Method)

at java.util.zip.ZipFile.<init>(ZipFile.java:219)

at java.util.zip.ZipFile.<init>(ZipFile.java:149)

at java.util.jar.JarFile.<init>(JarFile.java:166)

at java.util.jar.JarFile.<init>(JarFile.java:130)

at org.apache.flink.client.program.PackagedProgram.extractContainedLibraries(PackagedProgram.java:672)

... 12 more

Reply | Threaded
Open this post in threaded view
|

Re: Unknown I/O error while extracting contained jar files

rmetzger0
Hi,

which JVM variant and version are you using?
What's your operating system?

This is a pretty generic issue. If you search for "ZipException: error in opening zip file" on google, you'll find plenty of people who have this issue as well.
I think its unrelated to Flink and more of a general JVM issue.

On Wed, Feb 22, 2017 at 6:08 PM, Chris Chang <[hidden email]> wrote:

when i executor  ./bin/flink run  -c  myMainClass  myjar.jar  i got the following exception.  

and it's work fine when i run unzip myjar.jar    

why i  get this exception?

Thanks.


org.apache.flink.client.program.ProgramInvocationException: Unknown I/O error while extracting contained jar files.

at org.apache.flink.client.program.PackagedProgram.extractContainedLibraries(PackagedProgram.java:754)

at org.apache.flink.client.program.PackagedProgram.<init>(PackagedProgram.java:193)

at org.apache.flink.client.CliFrontend.buildProgram(CliFrontend.java:890)

at org.apache.flink.client.CliFrontend.run(CliFrontend.java:228)

at org.apache.flink.client.CliFrontend.parseParameters(CliFrontend.java:1073)

at org.apache.flink.client.CliFrontend$2.call(CliFrontend.java:1120)

at org.apache.flink.client.CliFrontend$2.call(CliFrontend.java:1117)

at org.apache.flink.runtime.security.HadoopSecurityContext$1.run(HadoopSecurityContext.java:43)

at java.security.AccessController.doPrivileged(Native Method)

at javax.security.auth.Subject.doAs(Subject.java:422)

at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)

at org.apache.flink.runtime.security.HadoopSecurityContext.runSecured(HadoopSecurityContext.java:40)

at org.apache.flink.client.CliFrontend.main(CliFrontend.java:1116)

Caused by: java.util.zip.ZipException: error in opening zip file

at java.util.zip.ZipFile.open(Native Method)

at java.util.zip.ZipFile.<init>(ZipFile.java:219)

at java.util.zip.ZipFile.<init>(ZipFile.java:149)

at java.util.jar.JarFile.<init>(JarFile.java:166)

at java.util.jar.JarFile.<init>(JarFile.java:130)

at org.apache.flink.client.program.PackagedProgram.extractContainedLibraries(PackagedProgram.java:672)

... 12 more