You should use the cli jar that goes with hadoop distribution under
directory "lib".

Hairong


On 4/27/09 4:03 PM, "Thushara Wijeratna" <thu...@gmail.com> wrote:

> hi,
> 
> i can't compile hadoop/util/GenericOptionsParser.java as there seems to be
> no method called:
> OptionBuilder.withArgPattern
> 
> this bit fails:
> 
>     Option property = OptionBuilder.withArgName("property=value")
>     .hasArgs()
>     .withArgPattern("=", 1)
>     .withDescription("use value for given property")
>     .create('D');
> 
> with:
> 
> cannot find symbol method withArgPattern(java.lang.String,int)
> 
> this may be a new method in commons CLI that is not available in the 1.2
> version. where do i find this?
> 
> thanks,
> thushara

Reply via email to