java.lang.ClassNotFoundException when running EMR
I want to run a simple jar application, the common word count example, on
EMR to make sure my set up is correct.
My program executes correctly on my own computer when I run hadoop but
fails when I try to upload it to EMR.
The command I used:
elastic-mapreduce --jobflow $JOBFLOW --jar s3://<bucketname>/wordcount.jar
--main-class WordCount --args
s3://<bucketname>/sample_input,s3://<bucketname>/sample_out
--enable-debugging
And I'm getting errors such as:
Caused by: java.lang.ClassNotFoundException: WordCount$Map
I only put my files in s3 because I couldn't get it to work otherwise. how
do I scp my jars and use the correct path when I run it via command line?
No comments:
Post a Comment