You should add spark-mllib_2.10 as a dependency instead of declaring
it as the artifactId. And always use the same version for spark-core
and spark-mllib. I saw you used 1.3.0 for spark-core but 1.4.0 for
spark-mllib, which is not guaranteed to work. If you set the scope to
provided, mllib jar
even if the following POM is also not working:
project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=
http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd;
parent
These two imports are missing and thus FP-growth is not compiling...
import org.apache.spark.*mllib.fpm.FPGrowth*;
import org.apache.spark.*mllib.fpm.FPGrowthModel*;
How to include the dependency in the POM file?
On Sat, Jun 13, 2015 at 4:26 AM, masoom alam masoom.a...@wanclouds.net
wrote:
This is not working:
dependency !-- Spark dependency --
groupIdorg.apache.spark.mlib/groupId
artifactIdspark-mlib/artifactId
!--version1.3.0/version --
scopeprovided/scope
/dependency
On Sat, Jun 13, 2015 at 11:56 PM, masoom alam
*Getting the following error:*
[INFO]
[INFO]
[INFO] Building example 0.0.1
[INFO]
Downloading:
Hi every one,
I am trying to run the FP growth example. I have tried to compile the
following POM file:
project
groupIdcom.oreilly.learningsparkexamples.mini/groupId
artifactIdlearning-spark-mini-example/artifactId
modelVersion4.0.0/modelVersion
nameexample/name
Thanks for the answer. Any example?
On Jun 13, 2015 2:13 PM, Sonal Goyal sonalgoy...@gmail.com wrote:
I think you need to add dependency to spark mllib too.
On Jun 13, 2015 11:10 AM, masoom alam masoom.a...@wanclouds.net wrote:
Hi every one,
I am trying to run the FP growth example. I have