Re: Basic hadoop example in clojure.

2009-07-27 Thread RD
Hi Emeka, thanks for the reply, I know the old code had some bugs. But taking the suggestion by Stuart i.e instead of using maxtemperature directly I tried using (Class/forName "maxtemperature") and this worked. So I'm not sure if I was referring to different class-paths in my code. regards, RD

Re: Basic hadoop example in clojure.

2009-07-27 Thread Emeka
RD,I don't know about the gen-class, to be sincere with you I have not used. But clojure follows a standard and natural sequence if you look closely. What you used in your former code were referring to different class path and the paths were not even defined. The below is from clojure.org A stand-

Re: Basic hadoop example in clojure.

2009-07-27 Thread RD
Hi Stuart, Thanks for the link Relating to the hadoop code I posted above, I got it to compile by putting the code under a namespace and changing the class names appropriately , but still I have no clue as to why the code didn't work without the namespace. I'll defenitely check the link tho

Re: Basic hadoop example in clojure.

2009-07-27 Thread Stuart Sierra
Hi rdsr, The problem is that you're trying to use the "maxtemperature" as a class name before it's finished compiling. To work around that, use (Class/forName "maxtemperature") instead. You can also see my (very task-specific) Hadoop/Clojure integration at and

Basic hadoop example in clojure.

2009-07-27 Thread RD
Hi all, I'm having trouble converting the basic hadoop example to clojure. Here's my code. (ns maxtemperature (:gen-class) (:import [org.apache.hadoop.io IntWritable Text] [org.apache.hadoop.mapred JobConf JobClient FileInputFormat FileOutputFormat