[
https://issues.apache.org/jira/browse/FLINK-1637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14345404#comment-14345404
]
ASF GitHub Bot commented on FLINK-1637:
---------------------------------------
GitHub user rmetzger opened a pull request:
https://github.com/apache/flink/pull/450
[FLINK-1637] Reduce number of files in uberjar for java 6
It seems that we've recently surpassed the magic number of 65536 files in
our YARN uberjar.
Java 6 is not able to read jar files with so "many" files.
Therefore, I added a check to our travis tests which verify that the number
of files in the jar is lower than 65k.
To to solve the problem for now, I've removed the
`flink-streaming-connectors` from the distribution.
If users want to use them, they can just add them as a dependency and they
should be fine (assuming our classloading is working properly).
I've also removed `flink-hbase` which is also a module users can easily get
through mvn central.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rmetzger/flink flink1637
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/450.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #450
----
commit f3c80c6cab02e9f049cdefceff424f4d431c37e1
Author: Robert Metzger <[email protected]>
Date: 2015-03-03T11:44:21Z
[FLINK-1637] Reduce number of files in uberjar for java 6
----
> Flink uberjar does not work with Java 6
> ---------------------------------------
>
> Key: FLINK-1637
> URL: https://issues.apache.org/jira/browse/FLINK-1637
> Project: Flink
> Issue Type: Bug
> Affects Versions: 0.9
> Environment: Java 6
> Reporter: Robert Metzger
> Assignee: Robert Metzger
> Priority: Critical
>
> Apparently the uberjar created by maven shade does not work with java 6
> {code}
> /jre1.6.0_45/bin/java -classpath
> flink-0.9-SNAPSHOT/lib/flink-dist-0.9-SNAPSHOT-yarn-uberjar.jar
> org.apache.flink.client.CliFrontend
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/flink/client/CliFrontend
> Caused by: java.lang.ClassNotFoundException:
> org.apache.flink.client.CliFrontend
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> Could not find the main class: org.apache.flink.client.CliFrontend. Program
> will exit.
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)