BookmarkSubscribeRSS Feed
ajain59
Calcite | Level 5

Hi,

 

I am trying to run map reduce wordcount example as shown in below example.

 

But I donot have wordcount jar available. 

 

http://support.sas.com/documentation/cdl/en/proc/70377/HTML/default/viewer.htm#p0pxnmn7ufoi1vn11sqyw...

 

Can I request you to share the wordcount Jar and its appropriate classes.

My SAS Hadoop set up is as follows:

 

SAS 9.4 

Cloudera CDH5.8 VM

Both are connected well and HDFS configuration are correct as HDFS commands are working properly.

 

 

Thanks,

Ashish Jain 

 

1 REPLY 1
JBailey
Barite | Level 11

Hi @ajain59

 

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-1.2.0.1.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-1.2.0.1.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;

Best wishes,

Jeff

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 928 views
  • 0 likes
  • 2 in conversation