You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@predictionio.apache.org by Noelia Osés Fernández <no...@vicomtech.org> on 2017/10/18 15:14:10 UTC

Recommendation template

Hi all,

Seeing as I couldn't get the UR template to work I decided to try my luck
with other templates. I have now tried with the Recommendation template as
downloaded from:

https://github.com/apache/incubator-predictionio-template-recommender

I'm using basically the same setup as before:

predictionio-0.11.0-incubating
elasticsearch 1.7.6
hbase 1.2.6
spark-1.6.3-bin-hadoop2.6

And the error I get while running the integration test is the following:

The data import seems to run correctly and then

Building and deploying model
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
[jar:file:/home/VICOMTECH/noses/PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/lib/spark/pio-data-hdfs-assembly-0.11.0-incubating.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/home/VICOMTECH/noses/PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/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]
[WARN] [Template$]
/home/VICOMTECH/noses/PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/recomapp/template.json
does not exist. Template metadata will not be available. (This is safe to
ignore if you are not working on a template.)
[INFO] [Engine$] Using command
'/home/VICOMTECH/noses/PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/sbt/sbt'
at
/home/VICOMTECH/noses/PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/recomapp
to build.
[INFO] [Engine$] If the path above is incorrect, this process will fail.
[INFO] [Engine$] Uber JAR disabled. Making sure
lib/pio-assembly-0.11.0-incubating.jar is absent.
[INFO] [Engine$] Going to run:
/home/VICOMTECH/noses/PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/sbt/sbt
package assemblyPackageDependency in
/home/VICOMTECH/noses/PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/recomapp
[INFO] [Engine$] [info] Loading project definition from
/home/VICOMTECH/noses/PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/recomapp/project
[INFO] [Engine$] [info] Set current project to
template-scala-parallel-recommendation (in build
file:/home/VICOMTECH/noses/PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/recomapp/)
[INFO] [Engine$] [success] Total time: 1 s, completed 18-Oct-2017 17:07:45
[INFO] [Engine$] [info] Including from cache: scala-library-2.11.8.jar
[INFO] [Engine$] [info] Checking every *.class/*.jar file's SHA-1.
[INFO] [Engine$] [info] Merging files...
[INFO] [Engine$] [warn] Merging 'META-INF/MANIFEST.MF' with strategy
'discard'
[INFO] [Engine$] [warn] Strategy 'discard' was applied to a file
[INFO] [Engine$] [info] Assembly up to date:
/home/VICOMTECH/noses/PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/recomapp/target/scala-2.11/template-scala-parallel-recommendation-assembly-0.1-SNAPSHOT-deps.jar
[INFO] [Engine$] [success] Total time: 1 s, completed 18-Oct-2017 17:07:46
[INFO] [Engine$] Compilation finished successfully.
[INFO] [Engine$] Looking for an engine...
[ERROR] [Engine$] No engine found. Your build might have failed. Aborting.

Why is this happening? How can I fix this?

Thank you all for your help.
Noelia

Re: Recommendation template

Posted by Noelia Osés Fernández <no...@vicomtech.org>.
Thanks for the advice, Donald!

Where can I get it?

On 18 October 2017 at 17:40, Donald Szeto <do...@apache.org> wrote:

> Hey Noelia,
>
> Since you are using PIO 0.11 you may want to use the previous template
> version that was targeted for PIO 0.11. The latest version is targeted to
> 0.12’s default stack, which is Scala 2.11.
>
> The only difference between these two template versions is targeting
> different PIO versions. There is no feature difference.
>
> Regards,
> Donald
>
> On Wed, Oct 18, 2017 at 8:14 AM Noelia Osés Fernández <no...@vicomtech.org>
> wrote:
>
>> Hi all,
>>
>> Seeing as I couldn't get the UR template to work I decided to try my luck
>> with other templates. I have now tried with the Recommendation template as
>> downloaded from:
>>
>> https://github.com/apache/incubator-predictionio-template-recommender
>>
>> I'm using basically the same setup as before:
>>
>> predictionio-0.11.0-incubating
>> elasticsearch 1.7.6
>> hbase 1.2.6
>> spark-1.6.3-bin-hadoop2.6
>>
>> And the error I get while running the integration test is the following:
>>
>> The data import seems to run correctly and then
>>
>> Building and deploying model
>> SLF4J: Class path contains multiple SLF4J bindings.
>> SLF4J: Found binding in [jar:file:/home/VICOMTECH/
>> noses/PredictionIO/apache-predictionio-0.11.0-
>> incubating/PredictionIO-0.11.0-incubating/lib/spark/pio-
>> data-hdfs-assembly-0.11.0-incubating.jar!/org/slf4j/
>> impl/StaticLoggerBinder.class]
>> SLF4J: Found binding in [jar:file:/home/VICOMTECH/
>> noses/PredictionIO/apache-predictionio-0.11.0-
>> incubating/PredictionIO-0.11.0-incubating/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]
>> [WARN] [Template$] /home/VICOMTECH/noses/PredictionIO/apache-
>> predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/recomapp/template.json
>> does not exist. Template metadata will not be available. (This is safe to
>> ignore if you are not working on a template.)
>> [INFO] [Engine$] Using command '/home/VICOMTECH/noses/
>> PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/sbt/sbt'
>> at /home/VICOMTECH/noses/PredictionIO/apache-predictionio-0.11.0-
>> incubating/PredictionIO-0.11.0-incubating/recomapp to build.
>> [INFO] [Engine$] If the path above is incorrect, this process will fail.
>> [INFO] [Engine$] Uber JAR disabled. Making sure lib/pio-assembly-0.11.0-incubating.jar
>> is absent.
>> [INFO] [Engine$] Going to run: /home/VICOMTECH/noses/PredictionIO/apache-
>> predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/sbt/sbt
>> package assemblyPackageDependency in /home/VICOMTECH/noses/
>> PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.
>> 0-incubating/recomapp
>> [INFO] [Engine$] [info] Loading project definition from
>> /home/VICOMTECH/noses/PredictionIO/apache-predictionio-0.11.0-
>> incubating/PredictionIO-0.11.0-incubating/recomapp/project
>> [INFO] [Engine$] [info] Set current project to template-scala-parallel-recommendation
>> (in build file:/home/VICOMTECH/noses/PredictionIO/apache-
>> predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/recomapp/)
>> [INFO] [Engine$] [success] Total time: 1 s, completed 18-Oct-2017 17:07:45
>> [INFO] [Engine$] [info] Including from cache: scala-library-2.11.8.jar
>> [INFO] [Engine$] [info] Checking every *.class/*.jar file's SHA-1.
>> [INFO] [Engine$] [info] Merging files...
>> [INFO] [Engine$] [warn] Merging 'META-INF/MANIFEST.MF' with strategy
>> 'discard'
>> [INFO] [Engine$] [warn] Strategy 'discard' was applied to a file
>> [INFO] [Engine$] [info] Assembly up to date: /home/VICOMTECH/noses/
>> PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.
>> 0-incubating/recomapp/target/scala-2.11/template-scala-
>> parallel-recommendation-assembly-0.1-SNAPSHOT-deps.jar
>> [INFO] [Engine$] [success] Total time: 1 s, completed 18-Oct-2017 17:07:46
>> [INFO] [Engine$] Compilation finished successfully.
>> [INFO] [Engine$] Looking for an engine...
>> [ERROR] [Engine$] No engine found. Your build might have failed. Aborting.
>>
>> Why is this happening? How can I fix this?
>>
>> Thank you all for your help.
>> Noelia
>>
>>
>>
>>
>>
>>
>>
>>


-- 
<http://www.vicomtech.org>

Noelia Osés Fernández, PhD
Senior Researcher |
Investigadora Senior

noses@vicomtech.org
+[34] 943 30 92 30
Data Intelligence for Energy and
Industrial Processes | Inteligencia
de Datos para Energía y Procesos
Industriales

<https://www.linkedin.com/company/vicomtech>
<https://www.youtube.com/user/VICOMTech>
<ht...@Vicomtech_IK4>

member of:  <http://www.graphicsmedia.net/>     <http://www.ik4.es>

Legal Notice - Privacy policy <http://www.vicomtech.org/en/proteccion-datos>

Re: Recommendation template

Posted by Donald Szeto <do...@apache.org>.
Hey Noelia,

Since you are using PIO 0.11 you may want to use the previous template
version that was targeted for PIO 0.11. The latest version is targeted to
0.12’s default stack, which is Scala 2.11.

The only difference between these two template versions is targeting
different PIO versions. There is no feature difference.

Regards,
Donald

On Wed, Oct 18, 2017 at 8:14 AM Noelia Osés Fernández <no...@vicomtech.org>
wrote:

> Hi all,
>
> Seeing as I couldn't get the UR template to work I decided to try my luck
> with other templates. I have now tried with the Recommendation template as
> downloaded from:
>
> https://github.com/apache/incubator-predictionio-template-recommender
>
> I'm using basically the same setup as before:
>
> predictionio-0.11.0-incubating
> elasticsearch 1.7.6
> hbase 1.2.6
> spark-1.6.3-bin-hadoop2.6
>
> And the error I get while running the integration test is the following:
>
> The data import seems to run correctly and then
>
> Building and deploying model
> SLF4J: Class path contains multiple SLF4J bindings.
> SLF4J: Found binding in
> [jar:file:/home/VICOMTECH/noses/PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/lib/spark/pio-data-hdfs-assembly-0.11.0-incubating.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> SLF4J: Found binding in
> [jar:file:/home/VICOMTECH/noses/PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/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]
> [WARN] [Template$]
> /home/VICOMTECH/noses/PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/recomapp/template.json
> does not exist. Template metadata will not be available. (This is safe to
> ignore if you are not working on a template.)
> [INFO] [Engine$] Using command
> '/home/VICOMTECH/noses/PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/sbt/sbt'
> at
> /home/VICOMTECH/noses/PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/recomapp
> to build.
> [INFO] [Engine$] If the path above is incorrect, this process will fail.
> [INFO] [Engine$] Uber JAR disabled. Making sure
> lib/pio-assembly-0.11.0-incubating.jar is absent.
> [INFO] [Engine$] Going to run:
> /home/VICOMTECH/noses/PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/sbt/sbt
> package assemblyPackageDependency in
> /home/VICOMTECH/noses/PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/recomapp
> [INFO] [Engine$] [info] Loading project definition from
> /home/VICOMTECH/noses/PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/recomapp/project
> [INFO] [Engine$] [info] Set current project to
> template-scala-parallel-recommendation (in build
> file:/home/VICOMTECH/noses/PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/recomapp/)
> [INFO] [Engine$] [success] Total time: 1 s, completed 18-Oct-2017 17:07:45
> [INFO] [Engine$] [info] Including from cache: scala-library-2.11.8.jar
> [INFO] [Engine$] [info] Checking every *.class/*.jar file's SHA-1.
> [INFO] [Engine$] [info] Merging files...
> [INFO] [Engine$] [warn] Merging 'META-INF/MANIFEST.MF' with strategy
> 'discard'
> [INFO] [Engine$] [warn] Strategy 'discard' was applied to a file
> [INFO] [Engine$] [info] Assembly up to date:
> /home/VICOMTECH/noses/PredictionIO/apache-predictionio-0.11.0-incubating/PredictionIO-0.11.0-incubating/recomapp/target/scala-2.11/template-scala-parallel-recommendation-assembly-0.1-SNAPSHOT-deps.jar
> [INFO] [Engine$] [success] Total time: 1 s, completed 18-Oct-2017 17:07:46
> [INFO] [Engine$] Compilation finished successfully.
> [INFO] [Engine$] Looking for an engine...
> [ERROR] [Engine$] No engine found. Your build might have failed. Aborting.
>
> Why is this happening? How can I fix this?
>
> Thank you all for your help.
> Noelia
>
>
>
>
>
>
>
>