[ 
https://issues.apache.org/jira/browse/PIO-112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16118008#comment-16118008
 ] 

Al Costa commented on PIO-112:
------------------------------

Thank you, but I installed scala 2.10.2, built again the module and still got 
the same error:

[root@windows MyRecommendation]# pio train
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in 
[jar:file:/home/al/predictionio/lib/spark/pio-data-hdfs-assembly-0.11.0-incubating.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in 
[jar:file:/home/al/predictionio/lib/pio-assembly-0.11.0-incubating.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
[INFO] [Runner$] Submission command: /home/al/spark/bin/spark-submit --class 
org.apache.predictionio.workflow.CreateWorkflow --jars 
file:/usr/java/jdk1.8.0_131/jre/lib/postgresql-42.1.4.jar,file:/usr/java/jdk1.8.0_131/jre/lib/mysql-connector-java-5.1.43-bin.jar,file:/home/al/predictionio/MyRecommendation/target/scala-2.10/template-scala-parallel-recommendation_2.10-0.1-SNAPSHOT.jar,file:/home/al/predictionio/MyRecommendation/target/scala-2.10/template-scala-parallel-recommendation-assembly-0.1-SNAPSHOT-deps.jar,file:/home/al/predictionio/lib/spark/pio-data-hdfs-assembly-0.11.0-incubating.jar,file:/home/al/predictionio/lib/spark/pio-data-localfs-assembly-0.11.0-incubating.jar,file:/home/al/predictionio/lib/spark/pio-data-elasticsearch1-assembly-0.11.0-incubating.jar,file:/home/al/predictionio/lib/spark/pio-data-jdbc-assembly-0.11.0-incubating.jar,file:/home/al/predictionio/lib/spark/pio-data-hbase-assembly-0.11.0-incubating.jar
 --files 
file:/home/al/predictionio/conf/log4j.properties,file:/home/al/hadoop/etc/hadoop/core-site.xml
 --driver-class-path 
/home/al/predictionio/conf:/usr/java/jdk1.8.0_131/jre/lib/postgresql-42.1.4.jar:/usr/java/jdk1.8.0_131/jre/lib/mysql-connector-java-5.1.43-bin.jar:/home/al/hadoop/etc/hadoop
 --driver-java-options -Dpio.log.dir=/home/al 
file:/home/al/predictionio/lib/pio-assembly-0.11.0-incubating.jar --engine-id 
org.example.recommendation.RecommendationEngine --engine-version 
202579ebeda20d955216756ce7fd3751be7a1c5a --engine-variant 
file:/home/al/predictionio/MyRecommendation/engine.json --verbosity 0 
--json-extractor Both --env 
PIO_ENV_LOADED=1,PIO_STORAGE_SOURCES_MYSQL_PASSWORD=pio,PIO_STORAGE_REPOSITORIES_METADATA_NAME=pio_meta,PIO_FS_BASEDIR=/home/al/.pio_store,PIO_STORAGE_SOURCES_MYSQL_URL=jdbc:mysql://localhost/pio,PIO_HOME=/home/al/predictionio,PIO_FS_ENGINESDIR=/home/al/.pio_store/engines,PIO_STORAGE_SOURCES_PGSQL_URL=jdbc:postgresql://localhost/pio,PIO_STORAGE_SOURCES_MYSQL_TYPE=jdbc,PIO_STORAGE_REPOSITORIES_METADATA_SOURCE=PGSQL,PIO_STORAGE_REPOSITORIES_MODELDATA_SOURCE=PGSQL,PIO_STORAGE_REPOSITORIES_EVENTDATA_NAME=pio_event,PIO_STORAGE_SOURCES_MYSQL_USERNAME=pio,PIO_STORAGE_SOURCES_PGSQL_PASSWORD=pio,PIO_STORAGE_SOURCES_PGSQL_TYPE=jdbc,PIO_FS_TMPDIR=/home/al/.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=/home/al/predictionio/conf
Exception in thread "main" java.lang.NoSuchMethodError: 
scala.reflect.api.JavaUniverse.runtimeMirror(Ljava/lang/ClassLoader;)Lscala/reflect/api/JavaMirrors$JavaMirror;
        at 
org.apache.predictionio.workflow.WorkflowUtils$.getEngine(WorkflowUtils.scala:54)
        at 
org.apache.predictionio.workflow.CreateWorkflow$.liftedTree1$1(CreateWorkflow.scala:196)
        at 
org.apache.predictionio.workflow.CreateWorkflow$.main(CreateWorkflow.scala:195)
        at 
org.apache.predictionio.workflow.CreateWorkflow.main(CreateWorkflow.scala)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:743)
        at 
org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:187)
        at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:212)
        at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:126)
        at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)


>  pio train command not working
> ------------------------------
>
>                 Key: PIO-112
>                 URL: https://issues.apache.org/jira/browse/PIO-112
>             Project: PredictionIO
>          Issue Type: Bug
>            Reporter: Al Costa
>
> When I type *pio train* on the MyRecommendation initial test on a Centos 
> 6-9.el6.12.3.x86_64, java build 1.8.0_131-b11, scala 2.12.2 I get
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in 
> [jar:file:/home/al/predictionio/lib/spark/pio-data-hdfs-assembly-0.11.0-incubating.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in 
> [jar:file:/home/al/predictionio/lib/pio-assembly-0.11.0-incubating.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an 
> explanation.
> SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
> [INFO] [Runner$] Submission command: /home/al/spark/bin/spark-submit --class 
> org.apache.predictionio.workflow.CreateWorkflow --jars 
> file:/usr/java/jdk1.8.0_131/jre/lib/postgresql-42.1.4.jar,file:/usr/java/jdk1.8.0_131/jre/lib/mysql-connector-java-5.1.43-bin.jar,file:/home/al/predictionio/MyRecommendation/target/scala-2.10/template-scala-parallel-recommendation_2.10-0.1-SNAPSHOT.jar,file:/home/al/predictionio/MyRecommendation/target/scala-2.10/template-scala-parallel-recommendation-assembly-0.1-SNAPSHOT-deps.jar,file:/home/al/predictionio/lib/spark/pio-data-hdfs-assembly-0.11.0-incubating.jar,file:/home/al/predictionio/lib/spark/pio-data-localfs-assembly-0.11.0-incubating.jar,file:/home/al/predictionio/lib/spark/pio-data-elasticsearch1-assembly-0.11.0-incubating.jar,file:/home/al/predictionio/lib/spark/pio-data-jdbc-assembly-0.11.0-incubating.jar,file:/home/al/predictionio/lib/spark/pio-data-hbase-assembly-0.11.0-incubating.jar
>  --files 
> file:/home/al/predictionio/conf/log4j.properties,file:/home/al/hadoop/etc/hadoop/core-site.xml
>  --driver-class-path 
> /home/al/predictionio/conf:/usr/java/jdk1.8.0_131/jre/lib/postgresql-42.1.4.jar:/usr/java/jdk1.8.0_131/jre/lib/mysql-connector-java-5.1.43-bin.jar:/home/al/hadoop/etc/hadoop
>  --driver-java-options -Dpio.log.dir=/home/al 
> file:/home/al/predictionio/lib/pio-assembly-0.11.0-incubating.jar --engine-id 
> org.example.recommendation.RecommendationEngine --engine-version 
> 202579ebeda20d955216756ce7fd3751be7a1c5a --engine-variant 
> file:/home/al/predictionio/MyRecommendation/engine.json --verbosity 0 
> --json-extractor Both --env 
> PIO_ENV_LOADED=1,PIO_STORAGE_SOURCES_MYSQL_PASSWORD=pio,PIO_STORAGE_REPOSITORIES_METADATA_NAME=pio_meta,PIO_FS_BASEDIR=/home/al/.pio_store,PIO_STORAGE_SOURCES_MYSQL_URL=jdbc:mysql://localhost/pio,PIO_HOME=/home/al/predictionio,PIO_FS_ENGINESDIR=/home/al/.pio_store/engines,PIO_STORAGE_SOURCES_PGSQL_URL=jdbc:postgresql://localhost/pio,PIO_STORAGE_SOURCES_MYSQL_TYPE=jdbc,PIO_STORAGE_REPOSITORIES_METADATA_SOURCE=PGSQL,PIO_STORAGE_REPOSITORIES_MODELDATA_SOURCE=PGSQL,PIO_STORAGE_REPOSITORIES_EVENTDATA_NAME=pio_event,PIO_STORAGE_SOURCES_MYSQL_USERNAME=pio,PIO_STORAGE_SOURCES_PGSQL_PASSWORD=pio,PIO_STORAGE_SOURCES_PGSQL_TYPE=jdbc,PIO_FS_TMPDIR=/home/al/.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=/home/al/predictionio/conf
> Exception in thread "main" java.lang.NoSuchMethodError: 
> scala.reflect.api.JavaUniverse.runtimeMirror(Ljava/lang/ClassLoader;)Lscala/reflect/api/JavaMirrors$JavaMirror;
>       at 
> org.apache.predictionio.workflow.WorkflowUtils$.getEngine(WorkflowUtils.scala:54)
>       at 
> org.apache.predictionio.workflow.CreateWorkflow$.liftedTree1$1(CreateWorkflow.scala:196)
>       at 
> org.apache.predictionio.workflow.CreateWorkflow$.main(CreateWorkflow.scala:195)
>       at 
> org.apache.predictionio.workflow.CreateWorkflow.main(CreateWorkflow.scala)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:498)
>       at 
> org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:743)
>       at 
> org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:187)
>       at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:212)
>       at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:126)
>       at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to