(It isn't my book alone -- I did not write the clustering part.) 0.8-SNAPSHOT depends on 1.0.4 actually. Try the latest code in SVN. This is not the source of your problem though. You are not including Hadoop's dependencies (like commons logging) in your project. Why, is specific to how you tried to configure your project.
On Thu, Nov 8, 2012 at 1:23 PM, Dan Filimon <[email protected]>wrote: > Hi! > > I'm having trouble with the following code (an updated version of the > basic clustering code in Sean Owen's book): > https://gist.github.com/4038746 > > It compiles just fine, but I'm using a project based on Mahout for the > dependencies and class path and it won't run. > > It initially threw a NoClassDefFoundError for > org/apache/hadoop/io/Writable. > > It turns out that the Hadoop Mahout 0.8 depends on is 0.20.204.0 but I > only have 1.0.4 installed on my machine so I updated the dependencies > in IntelliJ to include the Hadoop JARs that I have. > > Now, it's failing because it can't find another class: > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/commons/logging/LogFactory > > I can see this dependency available when I imported the Maven project > but it doesn't seem to be on the classpath. > Any ideas? > Thanks! >
