$ hadoop com.sun.tools.javac.Main file_name.java
$ jar cf jar_name.jar file_name*.class
$ hadoop jar jar_name.jar WordCount /user/user_name/wordcount/input /user/user_name/wordcount/output
$ hadoop fs -cat /user/user_name/wordcount/output/part-r-00000
Program | Purpose |
---|---|
prgm1 | Word Count |
prgm2 | how many files the word has been mentioned |
prgm5 | Words positions and no of occurences in file |