I mean to also include the URLs that detail all of the Hadoop artifact ids 
(since you are using CDH4 and we are still on 3):

https://ccp.cloudera.com/display/CDH4DOC/Using+the+CDH4+Maven+Repository
https://ccp.cloudera.com/display/CDHDOC/Using+the+CDH3+Maven+Repository

Chris Adams
Senior Manager, Software Engineering
eDataSource

402.203.6466 | direct
[email protected]

On Jul 10, 2012, at 4:00 PM, Chris Guirl wrote:

> buildr looks like a very capable tool for building Java programs, but
> I have had a lot of trouble with using it for very simple Hadoop jobs.
> I discussed this on IRC a little yesterday, but wasn't able to make
> much progress. Full disclosure: I haven't done a lot of Java
> development, and haven't use Ant, Maven, or any other Java build tool
> (I am trying to avoid using them, they look pretty bad).
> 
> I am using Cloudera's CDH4 Hadoop distribution, installed via packages
> for Ubuntu 12.04. Cloudera provides a Maven repository [1] which I am
> using; the artifact downloads successfully. The JAR seems to contain
> only a pom.properties and pom.xml. The actual .jar files containing
> the classes are in /usr/lib/hadoop/client-0.20, which is specified via
> the $CLASSPATH environment variable for manual compilation with javac.
> 
> When I run `buildr compile`, I get errors similar to those I got when
> compiling with javac without the $CLASSPATH properly set. For example:
> 
> src/main/java/AvgDist.java:6: package org.apache.hadoop.fs does not exist
> import org.apache.hadoop.fs.Path;
> 
> My buildfile is attached.
> 
> Chris Guirl
> 
> [1] https://ccp.cloudera.com/display/CDH4B2/Using+the+CDH4+Maven+Repository

Reply via email to