You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by Thushara Wijeratna <th...@gmail.com> on 2009/04/28 01:03:11 UTC
compiling hadoop
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
Re: compiling hadoop
Posted by Hairong Kuang <ha...@yahoo-inc.com>.
You should use the cli jar that goes with hadoop distribution under
directory "lib".
Hairong
On 4/27/09 4:03 PM, "Thushara Wijeratna" <th...@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