0

I was following the tutorial Apache PredictionIO Docker.When I was the step "Build Template"

# pio-docker build --verbose

It went an error.

[root@docker01 MyRecommendation]# pio-docker build --verbose
[INFO] [Engine$] Using command '/usr/share/predictionio/sbt/sbt' at /templates/MyRecommendation 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.13.0.jar is absent.
[INFO] [Engine$] Going to run: /usr/share/predictionio/sbt/sbt  package assemblyPackageDependency in /templates/MyRecommendation
[ERROR] [Engine$] Error: Invalid or corrupt jarfile /root/.sbt/launchers/1.2.8/sbt-launch.jar
[ERROR] [Engine$] Return code of build command: /usr/share/predictionio/sbt/sbt  package assemblyPackageDependency is 1. Aborting.
[root@docker01 MyRecommendation]# 

1.I've made the dirs

/templates/MyRecommendation

,I don't know some how why the command

pio-docker

,always need that dirs,nor the next dirs

templates/MyRecommendation

.My current dirs is

/root/predictionio/docker/templates/MyRecommendation

to execute the command

# pio-docker build --verbose

2.

/usr/share/predictionio/sbt/sbt

That file do not exists,before I made a softlinks to it.now if I execute it ,it works fine.In the original tutorial

Installing with Docker

,it didn't tell you to do it .

  • I've got it!!!I enter the dirs of ```MyRecommendation```,used the command ```sbt```then ```package```.It packaged the template,and just simply going down the next steps.Everything is fine. – jinwei li Jun 01 '19 at 00:59

1 Answers1

0

You must remove .sbt folder so fixed this error.

koorosh
  • 1
  • 2