PredictionIO / Demo-Tapster

Other
23 stars 20 forks source link

Invalid app name #6

Closed davidsf closed 9 years ago

davidsf commented 9 years ago

In the training step, the command fails:

pio train -- --driver-memory 4g

[INFO] [Console$] Using existing engine manifest JSON at /opt/PredictionIO/tapster-episode-similar/manifest.json
[INFO] [Runner$] Submission command: /opt/spark-1.4.1-bin-hadoop2.6/bin/spark-submit --driver-memory 4g --class io.prediction.workflow.CreateWorkflow --jars file:/opt/PredictionIO/tapster-episode-similar/target/scala-2.10/template-scala-parallel-similarproduct_2.10-0.1-SNAPSHOT.jar,file:/opt/PredictionIO/tapster-episode-similar/target/scala-2.10/template-scala-parallel-similarproduct-assembly-0.1-SNAPSHOT-deps.jar --files file:/opt/PredictionIO/conf/log4j.properties --driver-class-path /opt/PredictionIO/conf file:/opt/PredictionIO/lib/pio-assembly-0.9.4.jar --engine-id g0CmxuGQdUnqMQXBGtXm0IuoejS4ofMa --engine-version f8b844d2f1cb3a65f5a33bea39f50f7dd3d33853 --engine-variant file:/opt/PredictionIO/tapster-episode-similar/engine.json --verbosity 0 --json-extractor Both --env PIO_ENV_LOADED=1,PIO_ACCESS_KEY=OvPm8SbcFkICcHJo5G4wKl3Ebfr8JZ8R4xVml6QII9U0j8wa4qjxg5Cm2hMEt2z4,PIO_STORAGE_REPOSITORIES_METADATA_NAME=pio_meta,PIO_FS_BASEDIR=/home/ubuntu/.pio_store,PIO_HOME=/opt/PredictionIO,PIO_FS_ENGINESDIR=/home/ubuntu/.pio_store/engines,PIO_STORAGE_SOURCES_PGSQL_URL=jdbc:postgresql://localhost/pio,PIO_STORAGE_REPOSITORIES_METADATA_SOURCE=PGSQL,PIO_STORAGE_REPOSITORIES_MODELDATA_SOURCE=PGSQL,PIO_STORAGE_REPOSITORIES_EVENTDATA_NAME=pio_event,PIO_STORAGE_SOURCES_PGSQL_PASSWORD=pio,PIO_STORAGE_SOURCES_PGSQL_TYPE=jdbc,PIO_FS_TMPDIR=/home/ubuntu/.pio_store/tmp,PIO_STORAGE_SOURCES_PGSQL_USERNAME=pio,PIO_STORAGE_REPOSITORIES_MODELDATA_NAME=pio_model,PIO_STORAGE_REPOSITORIES_EVENTDATA_SOURCE=PGSQL,PIO_CONF_DIR=/opt/PredictionIO/conf
[INFO] [Engine] Extracting datasource params...
[INFO] [WorkflowUtils$] No 'name' is found. Default empty String will be used.
[INFO] [Engine] Datasource params: (,DataSourceParams(tapster-episode-similar))
[INFO] [Engine] Extracting preparator params...
[INFO] [Engine] Preparator params: (,Empty)
[INFO] [Engine] Extracting serving params...
[INFO] [Engine] Serving params: (,Empty)
[INFO] [Remoting] Starting remoting
[INFO] [Remoting] Remoting started; listening on addresses :[akka.tcp://sparkDriver@10.36.4.130:39315]
[INFO] [Engine$] EngineWorkflow.train
[INFO] [Engine$] DataSource: org.template.similarproduct.DataSource@601ef1a3
[INFO] [Engine$] Preparator: org.template.similarproduct.Preparator@4cf7ff2
[INFO] [Engine$] AlgorithmList: List(org.template.similarproduct.ALSAlgorithm@6dc9aeff)
[INFO] [Engine$] Data sanity check is on.
[ERROR] [Common$] Invalid app name tapster-episode-similar
Exception in thread "main" java.lang.IllegalArgumentException: Invalid app name tapster-episode-similar
    at io.prediction.data.store.Common$$anonfun$appNameToId$2.apply(Common.scala:47)
    at io.prediction.data.store.Common$$anonfun$appNameToId$2.apply(Common.scala:45)
    at scala.Option.getOrElse(Option.scala:120)
    at io.prediction.data.store.Common$.appNameToId(Common.scala:45)
    at io.prediction.data.store.PEventStore$.aggregateProperties(PEventStore.scala:103)
    at org.template.similarproduct.DataSource.readTraining(DataSource.scala:31)
    at org.template.similarproduct.DataSource.readTraining(DataSource.scala:18)
    at io.prediction.controller.PDataSource.readTrainingBase(PDataSource.scala:37)
    at io.prediction.controller.Engine$.train(Engine.scala:640)
    at io.prediction.controller.Engine.train(Engine.scala:174)
    at io.prediction.workflow.CoreWorkflow$.runTrain(CoreWorkflow.scala:65)
    at io.prediction.workflow.CreateWorkflow$.main(CreateWorkflow.scala:247)
    at io.prediction.workflow.CreateWorkflow.main(CreateWorkflow.scala)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:665)
    at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:170)
    at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:193)
    at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:112)
    at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
davidsf commented 9 years ago

Ok, given the appName="tapster" the training works ok. Closing, sorry for the noise.

nareshvelu96 commented 7 years ago

Where have you done the change?

appName="tapster"

DonOndeje commented 6 years ago

Where have you done the change?...I have a similar issue

DonOndeje commented 6 years ago

Never mind found the solution on this link https://groups.google.com/forum/#!topic/predictionio-user/QtXnIOkMVKo