You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by madhu phatak <ph...@gmail.com> on 2012/04/02 07:51:58 UTC
Re: setting sample text-files error
Hi,
Can you tell which version of Hadoop you are using? It seems like
duplicate jars are on the classpath.
2012/1/23 Aleksandar Hudić <al...@gmail.com>
> Hi
>
> I am trying to setup node and test the word count and I have a problem with
> last few steps.
>
> after I pack classes in the jar and follow to the next step
>
> Assuming that:
>
> /home/ahudic/wordcount/input - input directory in HDFS
> /home/ahudic/wordcount/output - output directory in HDFS
> Sample text-files as input:
>
> $ bin/hadoop dfs -ls /home/ahudic/wordcount/input/
> /home/ahudic/wordcount/input/file01
> /home/ahudic/wordcount/input/file02
>
> I get this error:
>
>
> Exception in thread "main" java.lang.NoSuchMethodError:
>
> org.apache.commons.cli.OptionBuilder.withArgPattern(Ljava/lang/String;I)Lorg/apache/commons/cli/OptionBuilder;
> at
>
> org.apache.hadoop.util.GenericOptionsParser.buildGeneralOptions(GenericOptionsParser.java:181)
> at
>
> org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:341)
> at
>
> org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:136)
> at
>
> org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:121)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:59)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
> at org.apache.hadoop.fs.FsShell.main(FsShell.java:1854)
>
> --
> *
> *
> *Mit freundlichen **Grüßen** / With kind regards*
> *
> *
> *Aleksandar Hudić, MSc
> aleksandar.hudic@gmail.com
> Mobile: +43 680 3303 660
> **** **+385 98 871 710 ** * **
>
--
https://github.com/zinnia-phatak-dev/Nectar