java - spark maven package org.apache.spark.mllib.fpm does not exist -


i use maven manage java spark program. in program call fpgrowth algorithm in mllib.fpm.

<dependency> <!--spark denpendency -->   <groupid>org.apache.spark</groupid>   <artifactid>spark-core_2.10</artifacrid>   <version>1.5.1</version> </dependency> 

however there error :package org.apache.spark.mllib.fpm not exist. how solve question?

the problem using mllib not have dependency specified in pom.xml.

as can see spark version 1.5.1.

hence try adding in pom.xml:

<!-- https://mvnrepository.com/artifact/org.apache.spark/spark-mllib_2.10 --> <dependency>     <groupid>org.apache.spark</groupid>     <artifactid>spark-mllib_2.10</artifactid>     <version>1.5.1</version> </dependency> 

this solve issue. !


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -