Wildcards with --classpath parameter in CLI

2016-04-26 Thread Ken Krugler
Hi all,

If I want to include all of the jars in a directory, I thought I could do 
--classpath file://http://www.scaleunlimited.com
custom big data solutions & training
Hadoop, Cascading, Cassandra & Solr





Re: Wildcards with --classpath parameter in CLI

2016-04-27 Thread Till Rohrmann
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 
wrote:

> Hi all,
>
> If I want to include all of the jars in a directory, I thought I could do
> --classpath file:// 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
>
>
>
>


Re: Wildcards with --classpath parameter in CLI

2016-04-27 Thread Ufuk Celebi
+1 :-)

On Wed, Apr 27, 2016 at 10:49 AM, Till Rohrmann  wrote:
> 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 
> wrote:
>>
>> Hi all,
>>
>> If I want to include all of the jars in a directory, I thought I could do
>> --classpath file://> 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
>>
>>
>>
>