03-22-2017 05:15 AM
I am trying to run map reduce wordcount example as shown in below example.
But I donot have wordcount jar available.
Can I request you to share the wordcount Jar and its appropriate classes.
My SAS Hadoop set up is as follows:
Cloudera CDH5.8 VM
Both are connected well and HDFS configuration are correct as HDFS commands are working properly.
04-25-2017 11:16 AM
The wordcount JAR will be on the cluster somewhere. There may be a way of getting it off the web. Here is an example which shows the general form of the JAR name (it is in the comments):
/* Run the Word Count sample program on Moby **bleep** */ /* hadoop-examples-18.104.22.168.3.0.0-96.jar */ proc hadoop options=cfg user="bob" verbose; mapreduce input='/user/bob/Books/moby_dick.txt' output='/user/bob/outBook' jar='C:\Hadoop_examples\hadoop-examples-22.214.171.124.3.0.0-96.jar' outputkey="org.apache.hadoop.io.Text" outputvalue="org.apache.hadoop.io.IntWritable" reduce="org.apache.hadoop.examples.WordCount$IntSumReducer" combine="org.apache.hadoop.examples.WordCount$IntSumReducer" map="org.apache.hadoop.examples.WordCount$TokenizerMapper"; run;