Hi,
I'm new to cascading, gradle, and git. I git-cloned the Impatient.git and attempted to build part 1.
Output of "gradle clean jar" is:
:clean UP-TO-DATE
:compileJava
/home/hood/work/cascading/Impatient/part1/src/main/java/impatient/Main.java:50: error: cannot access JobConf
Tap inTap = new Hfs( new TextDelimited( true, "\t" ), inPath );
^
class file for org.apache.hadoop.mapred.JobConf not found
1 error
:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 22.052 secs
If I simply copy the part1 Main.java into a different directory and type "javac Main.java" from that directory it compiles.
It almost seems like my CLASSPATH is being overridden by gradle such that by the time it attempts to compile Main.java the hadoop-core-1.0.4.jar is missing from the CLASSPATH ??
I'm running on OpenIndiana (through VirtualBox on a Windows 7 laptop).
Here's some environment settings:
> java -version
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) Server VM (build 23.6-b04, mixed mode)
> echo $CLASSPATH
.:/home/hood/Downloads/avro-java/avro-1.7.3.jar:/home/hood/Downloads/avro-java/jackson/jackson-core-asl-1.9.11.jar:/home/hood/Downloads/avro-java/jackson/jackson-mapper-asl-1.9.11.jar:/home/hood/Downloads/cascading-2.1.1/cascading-core-2.1.1.jar:/home/hood/Downloads/cascading-2.1.1/cascading-hadoop-2.1.1.jar:/home/hood/Downloads/cascading-2.1.1/cascading-local-2.1.1.jar:/home/hood/cots/hadoop-1.0.4/hadoop-core-1.0.4.jar
> echo $HADOOP_HOME/
/home/hood/cots/hadoop-1.0.4/
Anyway, I'll keep looking at it. I'm sure there's some very basic thing I'm missing, possibly java related (I'm a C++ programmer learning java at the same time).
Any help would be appreciated.
Thanks,
-- Tom