<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: problem about compiling mahout from source in cdh5 environment in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-about-compiling-mahout-from-source-in-cdh5/m-p/19386#M3072</link>
    <description>&lt;P&gt;at this point, I didn't do any modification yet&lt;/P&gt;</description>
    <pubDate>Fri, 26 Sep 2014 08:09:43 GMT</pubDate>
    <dc:creator>Li Wei</dc:creator>
    <dc:date>2014-09-26T08:09:43Z</dc:date>
    <item>
      <title>problem about compiling mahout from source in cdh5 environment</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-about-compiling-mahout-from-source-in-cdh5/m-p/19308#M3061</link>
      <description>&lt;P&gt;I am using cdh5 with hadoop version Hadoop 2.3.0-cdh5.1.3&lt;/P&gt;&lt;P&gt;I got this&amp;nbsp;mahout-0.9-cdh5.1.3-src.tar.gz from this location:&amp;nbsp;&lt;A href="http://archive.cloudera.com/cdh5/cdh/5/" target="_blank"&gt;http://archive.cloudera.com/cdh5/cdh/5/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I tried to compile this mahout from source with mvn using the followed&amp;nbsp;command line:&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;mvn -Dhadoop2.version=2.3.0-cdh5.1.3 -DskipTests clean package&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;then I got this error:&lt;/P&gt;&lt;P class="p1"&gt;[INFO] Scanning for projects...&lt;/P&gt;&lt;P class="p1"&gt;[WARNING]&lt;/P&gt;&lt;P class="p1"&gt;[WARNING] Some problems were encountered while building the effective model for org.apache.mahout:mahout-buildtools:jar:0.9-cdh5.1.3&lt;/P&gt;&lt;P class="p1"&gt;[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-site-plugin is missing. @ line 47, column 15&lt;/P&gt;&lt;P class="p1"&gt;[WARNING]&lt;/P&gt;&lt;P class="p1"&gt;[WARNING] Some problems were encountered while building the effective model for org.apache.mahout:mahout-math-scala:jar:0.9-cdh5.1.3&lt;/P&gt;&lt;P class="p1"&gt;[WARNING] 'build.plugins.plugin.version' for org.scala-tools:maven-scala-plugin is missing. @ org.apache.mahout:mahout-math-scala:[unknown-version], /home/powerlee/mahout-0.9-cdh5.1.3/math-scala/pom.xml, line 108, column 15&lt;/P&gt;&lt;P class="p1"&gt;[WARNING]&lt;/P&gt;&lt;P class="p1"&gt;[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.&lt;/P&gt;&lt;P class="p1"&gt;[WARNING]&lt;/P&gt;&lt;P class="p1"&gt;[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.&lt;/P&gt;&lt;P class="p1"&gt;[WARNING]&lt;/P&gt;&lt;P class="p1"&gt;[ERROR] The projects in the reactor contain a cyclic reference: Edge between 'Vertex{label='org.apache.mahout:mahout-buildtools:0.9-cdh5.1.3'}' and 'Vertex{label='org.apache.mahout:mahout:0.9-cdh5.1.3'}' introduces to cycle in the graph org.apache.mahout:mahout:0.9-cdh5.1.3 --&amp;gt; org.apache.mahout:mahout-buildtools:0.9-cdh5.1.3 --&amp;gt; org.apache.mahout:mahout:0.9-cdh5.1.3 -&amp;gt; [Help 1]&lt;/P&gt;&lt;P class="p1"&gt;[ERROR]&lt;/P&gt;&lt;P class="p1"&gt;[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.&lt;/P&gt;&lt;P class="p1"&gt;[ERROR] Re-run Maven using the -X switch to enable full debug logging.&lt;/P&gt;&lt;P class="p1"&gt;[ERROR]&lt;/P&gt;&lt;P class="p1"&gt;[ERROR] For more information about the errors and possible solutions, please read the following articles:&lt;/P&gt;&lt;P class="p1"&gt;[ERROR] [Help 1] &lt;A href="http://cwiki.apache.org/confluence/display/MAVEN/ProjectCycleException" target="_blank"&gt;http://cwiki.apache.org/confluence/display/MAVEN/ProjectCycleException&lt;/A&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Is there any idea about how to compile the mahout from source in cdh5&amp;nbsp;environment ?&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;I had also tried to use mahout-distribution-0.9-src.tar.gz from apache web site to compile. However, it probably cannot run in this cloudera hadoop 2 environment, even the compilation was succeed, because of the&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;compatibility about mahout with hadoop 2. When running, a common error would be:&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;java.lang.IncompatibleClassChangeError: Found interface org.apache.hadoop.mapreduce.JobContext, but class was expected&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:08:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-about-compiling-mahout-from-source-in-cdh5/m-p/19308#M3061</guid>
      <dc:creator>Li Wei</dc:creator>
      <dc:date>2022-09-16T09:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: problem about compiling mahout from source in cdh5 environment</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-about-compiling-mahout-from-source-in-cdh5/m-p/19314#M3062</link>
      <description>&lt;P&gt;Yes, I've seen this too. The issue is that you need to not build "buildtools". Our packaging system, I believe, does not build or include this since it is not relevant. You can simply comment out "&amp;lt;module&amp;gt;buildtools&amp;lt;/module&amp;gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't believe Mahout 0.9 works with any Hadoop 2 distribution out of the box, no. You can get it to work with the right build profile settings though. We also contributed some fixes to the project (after 0.9) to make it work, and these are backported in the CDH release.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You don't need to build any of this if you just want the artifacts. They're published at&amp;nbsp;&lt;A href="https://repository.cloudera.com/artifactory/cloudera-repos/" target="_blank"&gt;https://repository.cloudera.com/artifactory/cloudera-repos/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course they are also already present in CDH.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2014 12:10:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-about-compiling-mahout-from-source-in-cdh5/m-p/19314#M3062</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2014-09-25T12:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: problem about compiling mahout from source in cdh5 environment</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-about-compiling-mahout-from-source-in-cdh5/m-p/19362#M3064</link>
      <description>&lt;P&gt;Yes, I want to make a little bit of modification on mahout, that why I need to compile from source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried what you said: comment out&amp;nbsp;&lt;SPAN&gt;"&amp;lt;module&amp;gt;buildtools&amp;lt;/module&amp;gt;". Luckily, it started to download dependence and compile. Succeed of building mahout math, but met an error when compiling mahout core:&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project mahout-core: Compilation failure: Compilation failure:&lt;BR /&gt;[ERROR] /home/powerlee/mahout-0.9-cdh5.1.3/core/src/main/java/org/apache/mahout/classifier/df/tools/Frequencies.java:[28,30] package org.apache.hadoop.conf does not exist&lt;BR /&gt;[ERROR] /home/powerlee/mahout-0.9-cdh5.1.3/core/src/main/java/org/apache/mahout/classifier/df/tools/Frequencies.java:[29,30] package org.apache.hadoop.conf does not exist&lt;BR /&gt;[ERROR] /home/powerlee/mahout-0.9-cdh5.1.3/core/src/main/java/org/apache/mahout/classifier/df/tools/Frequencies.java:[30,28] package org.apache.hadoop.fs does not exist&lt;BR /&gt;[ERROR] /home/powerlee/mahout-0.9-cdh5.1.3/core/src/main/java/org/apache/mahout/classifier/df/tools/Frequencies.java:[31,28] package org.apache.hadoop.fs does not exist&lt;BR /&gt;[ERROR] /home/powerlee/mahout-0.9-cdh5.1.3/core/src/main/java/org/apache/mahout/classifier/df/tools/Frequencies.java:[32,30] cannot find symbol&lt;BR /&gt;[ERROR] symbol: class Tool&lt;BR /&gt;[ERROR] location: package org.apache.hadoop.util&lt;BR /&gt;[ERROR] /home/powerlee/mahout-0.9-cdh5.1.3/core/src/main/java/org/apache/mahout/classifier/df/tools/Frequencies.java:[33,30] cannot find symbol&lt;BR /&gt;[ERROR] symbol: class ToolRunner&lt;BR /&gt;[ERROR] location: package org.apache.hadoop.util&lt;BR /&gt;[ERROR] /home/powerlee/mahout-0.9-cdh5.1.3/core/src/main/java/org/apache/mahout/classifier/df/tools/Frequencies.java:[45,40] cannot find symbol&lt;BR /&gt;[ERROR] symbol: class Configured&lt;BR /&gt;[ERROR] /home/powerlee/mahout-0.9-cdh5.1.3/core/src/main/java/org/apache/mahout/classifier/df/tools/Frequencies.java:[45,62] cannot find symbol&lt;BR /&gt;[ERROR] symbol: class Tool&lt;BR /&gt;[ERROR] /home/powerlee/mahout-0.9-cdh5.1.3/core/src/main/java/org/apache/mahout/vectorizer/collocations/llr/GramKey.java:[25,28] package org.apache.hadoop.io does not exist&lt;BR /&gt;[ERROR] /home/powerlee/mahout-0.9-cdh5.1.3/core/src/main/java/org/apache/mahout/vectorizer/collocations/llr/GramKey.java:[26,28] package org.apache.hadoop.io does not exist&lt;BR /&gt;[ERROR] /home/powerlee/mahout-0.9-cdh5.1.3/core/src/main/java/org/apache/mahout/vectorizer/collocations/llr/GramKey.java:[27,28] package org.apache.hadoop.io does not exist&lt;BR /&gt;[ERROR] /home/powerlee/mahout-0.9-cdh5.1.3/core/src/main/java/org/apache/mahout/vectorizer/collocations/llr/Gram.java:[27,28] package org.apache.hadoop.io does not exist&lt;BR /&gt;[ERROR] /home/powerlee/mahout-0.9-cdh5.1.3/core/src/main/java/org/apache/mahout/vectorizer/collocations/llr/Gram.java:[28,28] package org.apache.hadoop.io does not exist&lt;BR /&gt;[ERROR] /home/powerlee/mahout-0.9-cdh5.1.3/core/src/main/java/org/apache/mahout/vectorizer/collocations/llr/Gram.java:[29,28] package org.apache.hadoop.io does not exist&lt;BR /&gt;[ERROR] /home/powerlee/mahout-0.9-cdh5.1.3/core/src/main/java/org/apache/mahout/vectorizer/collocations/llr/Gram.java:[38,27] cannot find symbol&lt;BR /&gt;[ERROR] symbol: class BinaryComparable&lt;BR /&gt;[ERROR] /home/powerlee/mahout-0.9-cdh5.1.3/core/src/main/java/org/apache/mahout/vectorizer/collocations/llr/Gram.java:[38,55] cannot find symbol&lt;BR /&gt;[ERROR] symbol: class WritableComparable&lt;BR /&gt;[ERROR] /home/powerlee/mahout-0.9-cdh5.1.3/core/src/main/java/org/apache/mahout/vectorizer/collocations/llr/Gram.java:[38,74] cannot find symbol&lt;BR /&gt;[ERROR] symbol: class BinaryComparable&lt;BR /&gt;[ERROR] /home/powerlee/mahout-0.9-cdh5.1.3/core/src/main/java/org/apache/mahout/vectorizer/collocations/llr/GramKey.java:[32,36] cannot find symbol&lt;BR /&gt;[ERROR] symbol: class BinaryComparable&lt;BR /&gt;[ERROR] /home/powerlee/mahout-0.9-cdh5.1.3/core/src/main/java/org/apache/mahout/vectorizer/collocations/llr/GramKey.java:[32,64] cannot find symbol&lt;BR /&gt;[ERROR] symbol: class WritableComparable&lt;BR /&gt;[ERROR] /home/powerlee/mahout-0.9-cdh5.1.3/core/src/main/java/org/apache/mahout/vectorizer/collocations/llr/GramKey.java:[32,83] cannot find symbol&lt;BR /&gt;[ERROR] symbol: class BinaryComparable&lt;BR /&gt;[ERROR] /home/powerlee/mahout-0.9-cdh5.1.3/core/src/main/java/org/apache/mahout/math/hadoop/stochasticsvd/DenseBlockWritable.java:[24,28] package org.apache.hadoop.io does not exist&lt;BR /&gt;[ERROR] /home/powerlee/mahout-0.9-cdh5.1.3/core/src/main/java/org/apache/mahout/math/hadoop/stochasticsvd/DenseBlockWritable.java:[38,44] cannot find symbol&lt;BR /&gt;[ERROR] symbol: class Writable&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Do you know what's the problem here? I guess it should be some problem about hadoop version...&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 04:05:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-about-compiling-mahout-from-source-in-cdh5/m-p/19362#M3064</guid>
      <dc:creator>Li Wei</dc:creator>
      <dc:date>2014-09-26T04:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: problem about compiling mahout from source in cdh5 environment</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-about-compiling-mahout-from-source-in-cdh5/m-p/19382#M3070</link>
      <description>&lt;P&gt;This looks like errors in the modifications you made. This string is not in the original source code for instance:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;packagejavax.servlet不存在&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 08:06:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-about-compiling-mahout-from-source-in-cdh5/m-p/19382#M3070</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2014-09-26T08:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: problem about compiling mahout from source in cdh5 environment</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-about-compiling-mahout-from-source-in-cdh5/m-p/19384#M3071</link>
      <description>&lt;P&gt;&lt;SPAN&gt;sorry&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"packagejavax.servlet不存在" is just error message means "&lt;SPAN&gt;packagejavax.servlet does not exist&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 08:08:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-about-compiling-mahout-from-source-in-cdh5/m-p/19384#M3071</guid>
      <dc:creator>Li Wei</dc:creator>
      <dc:date>2014-09-26T08:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: problem about compiling mahout from source in cdh5 environment</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-about-compiling-mahout-from-source-in-cdh5/m-p/19386#M3072</link>
      <description>&lt;P&gt;at this point, I didn't do any modification yet&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 08:09:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-about-compiling-mahout-from-source-in-cdh5/m-p/19386#M3072</guid>
      <dc:creator>Li Wei</dc:creator>
      <dc:date>2014-09-26T08:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: problem about compiling mahout from source in cdh5 environment</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-about-compiling-mahout-from-source-in-cdh5/m-p/19390#M3073</link>
      <description>&lt;P&gt;Oh right, OK. Is Maven able to download the depenendencies? you don't see earlier errors?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 08:20:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-about-compiling-mahout-from-source-in-cdh5/m-p/19390#M3073</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2014-09-26T08:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem about compiling mahout from source in cdh5 environment</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-about-compiling-mahout-from-source-in-cdh5/m-p/19392#M3074</link>
      <description>&lt;P&gt;Ah, add "-Dhadoop.profile=23" to the build line. Does that work?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 08:31:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-about-compiling-mahout-from-source-in-cdh5/m-p/19392#M3074</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2014-09-26T08:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: problem about compiling mahout from source in cdh5 environment</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-about-compiling-mahout-from-source-in-cdh5/m-p/19396#M3075</link>
      <description>&lt;P&gt;Yes, you are right this time it works. Thanks a lot!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After successfully built mahout, I ran a sample job, it also worked well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me just make it clear of whole&amp;nbsp;procedure in case some one else needs the same help:&lt;/P&gt;&lt;P&gt;First, just&amp;nbsp;comment out "&amp;lt;module&amp;gt;buildtools&amp;lt;/module&amp;gt;" in pom.xml, no other changes&lt;/P&gt;&lt;P&gt;Second, just run: mvn&amp;nbsp;-Dhadoop.profile=23&amp;nbsp;-DskipTests clean package&lt;/P&gt;&lt;P&gt;Then you get what you want&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way, I still wonder how this "&lt;SPAN&gt;-Dhadoop.profile=23&lt;/SPAN&gt;"&amp;nbsp;affects everything. Can you explain it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 08:57:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-about-compiling-mahout-from-source-in-cdh5/m-p/19396#M3075</guid>
      <dc:creator>Li Wei</dc:creator>
      <dc:date>2014-09-26T08:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: problem about compiling mahout from source in cdh5 environment</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-about-compiling-mahout-from-source-in-cdh5/m-p/19398#M3076</link>
      <description>&lt;P&gt;Have a look at the parent packaging pom to see some additional settings like this that affect the CDH packaging. I don't know how much they're documented beyond this as it's generally rare for anyone to try to rebuild the source. Still, it ought not be hard.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Sep 2014 09:01:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/problem-about-compiling-mahout-from-source-in-cdh5/m-p/19398#M3076</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2014-09-26T09:01:02Z</dc:date>
    </item>
  </channel>
</rss>

