Thanks Tom.  I’ve made the change and now I have another set of errors.

********************************************************************************
build.sbt
import AssemblyKeys._

assemblySettings

name := "template-scala-parallel-similarproduct"

organization := "org.apache.predictionio"

parallelExecution in Test := false

test in assembly := {}

libraryDependencies ++= Seq(
  "org.apache.predictionio"    %% "apache-predictionio-core"          % 
pioVersion.value % "provided",
  "org.apache.spark" %% "spark-core"    % "1.3.0" % "provided",
  "org.apache.spark" %% "spark-mllib"   % "1.3.0" % "provided",
  "org.scalatest"    %% "scalatest"     % "2.2.1" % "test")— 

*********************************************************************************

ERRORS
vagrant:tapster-episode-similar2/ $ pio build                                   
                                                                                
                                                                     [16:11:22]
[INFO] [Console$] Using existing engine manifest JSON at 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/manifest.json
[INFO] [Console$] Using command 
'/home/vagrant/apache-predictionio-0.10.0-incubating/sbt/sbt' at the current 
working directory to build.
[INFO] [Console$] If the path above is incorrect, this process will fail.
[INFO] [Console$] Uber JAR disabled. Making sure 
lib/pio-assembly-0.10.0-incubating.jar is absent.
[INFO] [Console$] Going to run: 
/home/vagrant/apache-predictionio-0.10.0-incubating/sbt/sbt  package 
assemblyPackageDependency
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/ALSAlgorithm.scala:3:
 object prediction is not a member of package io
[ERROR] [Console$] [error] import io.prediction.controller.P2LAlgorithm
[ERROR] [Console$] [error]           ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/ALSAlgorithm.scala:4:
 object prediction is not a member of package io
[ERROR] [Console$] [error] import io.prediction.controller.Params
[ERROR] [Console$] [error]           ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/ALSAlgorithm.scala:5:
 object prediction is not a member of package io
[ERROR] [Console$] [error] import io.prediction.data.storage.BiMap
[ERROR] [Console$] [error]           ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/ALSAlgorithm.scala:20:
 not found: type Params
[ERROR] [Console$] [error]   seed: Option[Long]) extends Params
[ERROR] [Console$] [error]                               ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/ALSAlgorithm.scala:24:
 not found: type BiMap
[ERROR] [Console$] [error]   val itemStringIntMap: BiMap[String, Int],
[ERROR] [Console$] [error]                         ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/ALSAlgorithm.scala:44:
 not found: type P2LAlgorithm
[ERROR] [Console$] [error]   extends P2LAlgorithm[PreparedData, ALSModel, 
Query, PredictedResult] {
[ERROR] [Console$] [error]           ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/ALSAlgorithm.scala:62:
 not found: value BiMap
[ERROR] [Console$] [error]     val userStringIntMap = 
BiMap.stringInt(data.users.keys)
[ERROR] [Console$] [error]                            ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/ALSAlgorithm.scala:63:
 not found: value BiMap
[ERROR] [Console$] [error]     val itemStringIntMap = 
BiMap.stringInt(data.items.keys)
[ERROR] [Console$] [error]                            ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/ALSAlgorithm.scala:68:
 value collectAsMap is not a member of org.apache.spark.rdd.RDD[U]
[ERROR] [Console$] [error] possible cause: maybe a semicolon is missing before 
`value collectAsMap'?
[ERROR] [Console$] [error]     }.collectAsMap.toMap
[ERROR] [Console$] [error]       ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/ALSAlgorithm.scala:85:
 missing parameter type for expanded function
[ERROR] [Console$] [error] The argument types of an anonymous function must be 
fully known. (SLS 8.5)
[ERROR] [Console$] [error] Expected type was: ? => Boolean
[ERROR] [Console$] [error]       }.filter { case ((u, i), v) =>
[ERROR] [Console$] [error]                ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/CooccurrenceAlgorithm.scala:3:
 object prediction is not a member of package io
[ERROR] [Console$] [error] import io.prediction.controller.P2LAlgorithm
[ERROR] [Console$] [error]           ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/CooccurrenceAlgorithm.scala:4:
 object prediction is not a member of package io
[ERROR] [Console$] [error] import io.prediction.controller.Params
[ERROR] [Console$] [error]           ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/CooccurrenceAlgorithm.scala:5:
 object prediction is not a member of package io
[ERROR] [Console$] [error] import io.prediction.data.storage.BiMap
[ERROR] [Console$] [error]           ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/CooccurrenceAlgorithm.scala:12:
 not found: type Params
[ERROR] [Console$] [error] ) extends Params
[ERROR] [Console$] [error]           ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/CooccurrenceAlgorithm.scala:16:
 not found: type BiMap
[ERROR] [Console$] [error]   val itemStringIntMap: BiMap[String, Int],
[ERROR] [Console$] [error]                         ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/CooccurrenceAlgorithm.scala:28:
 not found: type P2LAlgorithm
[ERROR] [Console$] [error]   extends P2LAlgorithm[PreparedData, 
CooccurrenceModel, Query, PredictedResult] {
[ERROR] [Console$] [error]           ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/CooccurrenceAlgorithm.scala:32:
 not found: value BiMap
[ERROR] [Console$] [error]     val itemStringIntMap = 
BiMap.stringInt(data.items.keys)
[ERROR] [Console$] [error]                            ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/CooccurrenceAlgorithm.scala:57:
 not found: type BiMap
[ERROR] [Console$] [error]     itemStringIntMap: BiMap[String, Int]): Map[Int, 
Array[(Int, Int)]] = {
[ERROR] [Console$] [error]                       ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/CooccurrenceAlgorithm.scala:43:
 value collectAsMap is not a member of org.apache.spark.rdd.RDD[U]
[ERROR] [Console$] [error] possible cause: maybe a semicolon is missing before 
`value collectAsMap'?
[ERROR] [Console$] [error]     }.collectAsMap.toMap
[ERROR] [Console$] [error]       ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/CooccurrenceAlgorithm.scala:70:
 value join is not a member of org.apache.spark.rdd.RDD[Nothing]
[ERROR] [Console$] [error]     val cooccurrences: RDD[((Int, Int), Int)] = 
userItem.join(userItem)
[ERROR] [Console$] [error]                                                      
    ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/DataSource.scala:3:
 object prediction is not a member of package io
[ERROR] [Console$] [error] import io.prediction.controller.PDataSource
[ERROR] [Console$] [error]           ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/DataSource.scala:4:
 object prediction is not a member of package io
[ERROR] [Console$] [error] import io.prediction.controller.EmptyEvaluationInfo
[ERROR] [Console$] [error]           ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/DataSource.scala:5:
 object prediction is not a member of package io
[ERROR] [Console$] [error] import io.prediction.controller.EmptyActualResult
[ERROR] [Console$] [error]           ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/DataSource.scala:6:
 object prediction is not a member of package io
[ERROR] [Console$] [error] import io.prediction.controller.Params
[ERROR] [Console$] [error]           ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/DataSource.scala:7:
 object prediction is not a member of package io
[ERROR] [Console$] [error] import io.prediction.data.storage.Event
[ERROR] [Console$] [error]           ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/DataSource.scala:8:
 object prediction is not a member of package io
[ERROR] [Console$] [error] import io.prediction.data.store.PEventStore
[ERROR] [Console$] [error]           ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/DataSource.scala:16:
 not found: type Params
[ERROR] [Console$] [error] case class DataSourceParams(appName: String) extends 
Params
[ERROR] [Console$] [error]                                                      
^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/DataSource.scala:19:
 not found: type PDataSource
[ERROR] [Console$] [error]   extends PDataSource[TrainingData,
[ERROR] [Console$] [error]           ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/DataSource.scala:28:
 not found: value PEventStore
[ERROR] [Console$] [error]     val usersRDD: RDD[(String, User)] = 
PEventStore.aggregateProperties(
[ERROR] [Console$] [error]                                         ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/DataSource.scala:45:
 not found: value PEventStore
[ERROR] [Console$] [error]     val itemsRDD: RDD[(String, Item)] = 
PEventStore.aggregateProperties(

▽
[ERROR] [Console$] [error]                                         ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/DataSource.scala:63:
 not found: value PEventStore
[ERROR] [Console$] [error]     val viewEventsRDD: RDD[ViewEvent] = 
PEventStore.find(
[ERROR] [Console$] [error]                                         ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/Engine.scala:3:
 object prediction is not a member of package io
[ERROR] [Console$] [error] import io.prediction.controller.IEngineFactory
[ERROR] [Console$] [error]           ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/Engine.scala:4:
 object prediction is not a member of package io
[ERROR] [Console$] [error] import io.prediction.controller.Engine
[ERROR] [Console$] [error]           ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/Engine.scala:25:
 not found: type IEngineFactory
[ERROR] [Console$] [error] object SimilarProductEngine extends IEngineFactory {
[ERROR] [Console$] [error]                                     ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/Engine.scala:27:
 not found: type Engine
[ERROR] [Console$] [error]     new Engine(
[ERROR] [Console$] [error]         ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/Preparator.scala:3:
 object prediction is not a member of package io
[ERROR] [Console$] [error] import io.prediction.controller.PPreparator
[ERROR] [Console$] [error]           ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/Preparator.scala:10:
 not found: type PPreparator
[ERROR] [Console$] [error]   extends PPreparator[TrainingData, PreparedData] {
[ERROR] [Console$] [error]           ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/Serving.scala:3:
 object prediction is not a member of package io
[ERROR] [Console$] [error] import io.prediction.controller.LServing
[ERROR] [Console$] [error]           ^
[ERROR] [Console$] [error] 
/home/vagrant/apache-predictionio-0.10.0-incubating/tapster-episode-similar2/src/main/scala/Serving.scala:6:
 not found: type LServing
[ERROR] [Console$] [error]   extends LServing[Query, PredictedResult] {
[ERROR] [Console$] [error]           ^
[ERROR] [Console$] [error] 39 errors found
[ERROR] [Console$] [error] (compile:compile) Compilation failed
[ERROR] [Console$] [error] Total time: 21 s, completed Oct 12, 2016 4:11:55 PM
[ERROR] [Console$] Return code of previous step is 1. Aborting.
Jim Miller

On October 12, 2016 at 5:27:48 PM, Tom Chan (yukhei.c...@gmail.com) wrote:

There is still an instance of "io.prediction" that is not changed to  
"org.apache.predictionio"  
in your "libraryDependencies".  

Tom  

On Wed, Oct 12, 2016 at 2:06 PM, Jim Miller <jemiller1...@gmail.com> wrote:  

> Thanks for the fast response, Donald. I am still having problems tho. I  
> have the output and the build.sbt below.  
>  
>  
> vagrant:tapster-episode-similar2/ $ pio build  
>  
>  
> [INFO] [Console$] Using command 
> '/home/vagrant/apache-predictionio-0.10.0-incubating/sbt/sbt'  
> at the current working directory to build.  
> [INFO] [Console$] If the path above is incorrect, this process will fail.  
> [INFO] [Console$] Uber JAR disabled. Making sure 
> lib/pio-assembly-0.10.0-incubating.jar  
> is absent.  
> [INFO] [Console$] Going to run: 
> /home/vagrant/apache-predictionio-0.10.0-incubating/sbt/sbt  
> package assemblyPackageDependency  
> [ERROR] [Console$] [error] (*:update) sbt.ResolveException: unresolved  
> dependency: io.prediction#apache-predictionio-core_2.10;0.10.0-incubating:  
> not found  
> [ERROR] [Console$] [error] Total time: 17 s, completed Oct 12, 2016  
> 3:05:54 PM  
> [ERROR] [Console$] Return code of previous step is 1. Aborting.  
>  
>  
> build.sbt  
> import AssemblyKeys._  
>  
> assemblySettings  
>  
> name := "template-scala-parallel-similarproduct"  
>  
> organization := "org.apache.predictionio"  
>  
> parallelExecution in Test := false  
>  
> test in assembly := {}  
>  
> libraryDependencies ++= Seq(  
> "io.prediction" %% "apache-predictionio-core" %  
> pioVersion.value % "provided",  
> "org.apache.spark" %% "spark-core" % "1.3.0" % "provided",  
> "org.apache.spark" %% "spark-mllib" % "1.3.0" % "provided",  
> "org.scalatest" %% "scalatest" % "2.2.1" % "test")  
>  
>  
> Thanks,  
>  
> Jim  
>  
>  
> --  
> Jim Miller  
>  
> On October 12, 2016 at 3:58:56 PM, Donald Szeto (don...@apache.org) wrote:  
>  
> Hi Jim,  
>  
> Please open up build.sbt and update:  
>  
> io.prediction -> org.apache.predictionio  
> core -> apache-predictionio-core  
>  
> This should unblock your build.  
>  
> Regards,  
> Donald  
>  
> On Wednesday, October 12, 2016, Jim Miller <jemiller1...@gmail.com> wrote:  
>  
> > Hi all,  
> >  
> > I am getting this error while trying out the Tapster Demo. From this  
> > output can you lead me in the right direction?  
> >  
> >  
> > vagrant:tapster-episode-similar/ $ pio build  
> >  
> >  
> > [INFO] [Console$] Using command '/home/vagrant/apache-  
> predictionio-0.10.0-incubating/sbt/sbt'  
> > at the current working directory to build.  
> > [INFO] [Console$] If the path above is incorrect, this process will fail.  
> > [INFO] [Console$] Uber JAR disabled. Making sure lib/pio-assembly-0.10.0-  
> incubating.jar  
> > is absent.  
> > [INFO] [Console$] Going to run: /home/vagrant/apache-  
> predictionio-0.10.0-incubating/sbt/sbt  
> > package assemblyPackageDependency  
> > [ERROR] [Console$] [error] (*:update) sbt.ResolveException: unresolved  
> > dependency: io.prediction#core_2.10;0.10.0-incubating: not found  
> > [ERROR] [Console$] [error] Total time: 28 s, completed Oct 12, 2016  
> > 11:35:33 AM  
> > [ERROR] [Console$] Return code of previous step is 1. Aborting.  
> >  
> >  
> > Thanks,  
> >  
> > Jim  
> >  
> >  
> >  
> > --  
> > Jim Miller  
> >  
>  

Reply via email to