flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Till Rohrmann <trohrm...@apache.org>
Subject Re: Wildcards with --classpath parameter in CLI
Date Wed, 27 Apr 2016 08:49:37 GMT
Hi Ken,

I think it would be a good addition to support wildcards for the classpath
option. That makes life much easier if you want to specify multiple jars to
be included in the classpath. If you want to take the lead here, then it
would be great :-)

Cheers,
Till


On Wed, Apr 27, 2016 at 6:43 AM, Ken Krugler <kkrugler_lists@transpac.com>
wrote:

> Hi all,
>
> If I want to include all of the jars in a directory, I thought I could do
> --classpath file://<path to directory/*, the same as with the -cp option
> for a regular java program.
>
> But this doesn’t seem to work. I believe it’s because JDK tools do the
> expansion before creating the URLs used by the classloader, but Flink code
> doesn’t do any such special processing, and just creates URLs - see
> ProgramOptions.java, via  classpaths.add(new URL(path));
>
> Should I file an issue w/a patch? Or is there some reason to not support
> wildcards?
>
> Thanks,
>
> — Ken
>
> --------------------------
> Ken Krugler
> +1 530-210-6378
> http://www.scaleunlimited.com
> custom big data solutions & training
> Hadoop, Cascading, Cassandra & Solr
>
>
>
>

Mime
View raw message