Hi! In the latest master and in the upcoming 1.1, all files in the lib folder will be shipped to the Yarn cluster and added to the class path. In Flink version <= 1.0.x no files will be added to the ship files by default (only the flink-dist*.jar will be shipped).
Regardless of the version, if you use the `addShipFiles(..)` method on YarnClusterDescriptor or --yarnship parameter on the CLI, then all files specified will be shipped. Cheers, Max On Mon, Jul 25, 2016 at 1:39 PM, Aljoscha Krettek <aljos...@apache.org> wrote: > Looping in Max directly because he probably knows the Yarn stuff best. > > @Max: Do you have any idea how to do this? > > On Fri, 22 Jul 2016 at 05:46 김동일 <kim.s...@gmail.com> wrote: >> >> I’saw the source code of >> flink-yarn/src/main/java/org/apache/flink/yarn/AbstractYarnClusterDescriptor.java >> Flink ships the FLINK_LIB_DIR and add to classpath only jar files. >> I want to know how to add resource file to classpath. >> >> Best Regards, >> Dong-iL, Kim. >> >> On Jul 22, 2016, at 4:28 AM, Dong iL, Kim <kim.s...@gmail.com> wrote: >> >> Hello. >> I have a flink cluster on yarn. >> I wanna add FLINK_LIB_DIR to classpath. >> because hibernate.cfg.xml need to be on the classpath. >> when i'm using stand alone cluster, just add FLINK_LIB_DIR to >> FLINK_CLASSPATH. >> but on yarn, Fixing config.sh, yarn-session.sh and flink-daemon.sh is not >> working. >> >> Best Regards, >> Dong-iL, Kim. >> >> -- >> <A HREF="http://www.kiva.org" TARGET="_top"> >> <IMG SRC="http://www.kiva.org/images/bannerlong.png" WIDTH="460" >> HEIGHT="60" ALT="Kiva - loans that change lives" BORDER="0" >> ALIGN="BOTTOM"></A>