Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # user >> setting sample text-files error


Copy link to this message
-
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ć <[EMAIL PROTECTED]>

> 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
> [EMAIL PROTECTED]
> Mobile:     +43 680 3303 660
>                 **** **+385 98 871 710  ** *  **
>

--
https://github.com/zinnia-phatak-dev/Nectar
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB