FAQ
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

Search Discussions

  • Hairong Kuang at Apr 28, 2009 at 6:39 pm
    You should use the cli jar that goes with hadoop distribution under
    directory "lib".

    Hairong

    On 4/27/09 4:03 PM, "Thushara Wijeratna" 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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
categorieshadoop
postedApr 27, '09 at 11:03p
activeApr 28, '09 at 6:39p
posts2
users2
websitehadoop.apache.org...
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase