02-06-2015 01:57 AM
I am using the free demo of cloudera on GoGrid (CDH5)
and cannot seem to make the WordCount tutorial work http://www.cloudera.com/content/cloudera/en/documentation/HadoopTutorial/CDH4/Hadoop-Tutorial/ht_wor...
I have tried many approaches. I read somewhere that the tutorial was for an old version of CDH hence you needed to change the code:
So I changed the code
But even with that it does'nt work.
I want to compile using a command like
assuming I put the WordCount.java code in the folder /TEST/wordcount_classes I go to this folder and do
javac -classpath /usr/lib/hadoop/client-0.20/\* WordCount.java
but it fails producing an error of the type:
WordCount.java:51: cannot find symbol
symbol : variable FileOutputFormat
location: class org.myorg.AvkashWordCount
FileOutputFormat.setOutputPath(job, new Path(args));
What am I doing wrong ??
Thanks so much
02-06-2015 07:06 AM