Is hadoop jar command class name case sensitive? -


i started learning hadoop 1.1.2 recently.

when begin running wordcount case, 2 kind of codes both fine.

command a:

hadoop jar /usr/local/hadoop/hadoop-examples-1.1.2.jar wordcount input output 

command b:

hadoop jar /usr/local/hadoop/hadoop-examples-1.1.2.jar wordcount input output 

the difference main class name wordcount.

so question weather main class name wordcount case insensitive or not default?

update:

@amar said wordcount won't work fine , have checked right. mislead document here. official document need update.

but still don't know why must wordcount.

try running without wordcount, like: hadoop jar /usr/local/hadoop/hadoop-examples-1.1.2.jar input output

you receive follows:

unknown program 'input' chosen. valid program names are:   aggregatewordcount: aggregate based map/reduce program counts words in input files.   aggregatewordhist: aggregate based map/reduce program computes histogram of words in input files.   dbcount: example job count pageview counts database.   grep: map/reduce program counts matches of regex in input.   join: job effects join on sorted, equally partitioned datasets   multifilewc: job counts words several files.   pentomino: map/reduce tile laying program find solutions pentomino problems.   pi: map/reduce program estimates pi using monte-carlo method.   randomtextwriter: map/reduce program writes 10gb of random textual data per node.   randomwriter: map/reduce program writes 10gb of random data per node.   secondarysort: example defining secondary sort reduce.   sleep: job sleeps @ each map , reduce task.   sort: map/reduce program sorts data written random writer.   sudoku: sudoku solver.   teragen: generate data terasort   terasort: run terasort   teravalidate: checking results of terasort   wordcount: map/reduce program counts words in input files. 

so first argument is not main-class name, rather example program's name want run.

so, shouldn't accept wordcount, isn't me. following command has same result shown above:

bin/hadoop jar hadoop-examples-1.0.4.jar wordcount license.txt output


for information: main-class defined in meta-inf/manifest.mf file contained in jar : main-class: org/apache/hadoop/examples/exampledriver


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -