I wont be extending classes or interface since I have to generate classes on
the fly,
reading some arbitrary xml schemas at runtime.
I'm thinking of just parsing the xml schema in clojure and generating a
list (which would
contain a text representation of how I would generate a normal java cl
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
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
> <http://tinyurl.com/mqv2os>
> and <http://tinyurl.com/lznlg2>.
>
> -SS
>
>
>
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 cod
Hello All,
When every I write clj code that involves cond. It always involves a
"do" in almost all of the classes.
somethiing like
(cond
condition1 (do exp1 exp2 exp)
condition2 (do exp1 exp2 ...)
true (do ...))
Is there a better way (without the explicit "do"