predictionio-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastian Fix <sebastian....@smartgate.ch>
Subject Exception: Job aborted due to stage failure: Task 0 in stage 3.0 failed 1 times,
Date Sat, 08 Jul 2017 08:54:46 GMT
Hey Keneth

Thank for the answer.

I’managed to import the following data:


After running „pio build“ i get the following error during the „pio train“ process:

[ERROR] [Executor] Exception in task 0.0 in stage 3.0 (TID 9)
[WARN] [TaskSetManager] Lost task 0.0 in stage 3.0 (TID 9, localhost): java.lang.NullPointerException

[ERROR] [TaskSetManager] Task 0 in stage 3.0 failed 1 times; aborting job
Exception in thread "main" org.apache.spark.SparkException: Job aborted due to stage failure:
Task 0 in stage 3.0 failed 1 times, most recent failure: Lost task 0.0 in stage 3.0 (TID 9,
localhost): java.lang.NullPointerException

Driver stacktrace:
at org.apache.spark.scheduler.DAGScheduler.org$apache$spark$scheduler$DAGScheduler$$failJobAndIndependentStages(DAGScheduler.scala:1431)
Caused by: java.lang.NullPointerException


Best regards
Sebastian


Am 08.07.2017 um 09:52 schrieb Kenneth Chan <kenneth@apache.org<mailto:kenneth@apache.org>>:

re: " i’m always getting an exception with the initial load from User & Product"
what's the error you got?

On Fri, Jul 7, 2017 at 12:46 PM, Sebastian Fix <sebastian.fix@smartgate.ch<mailto:sebastian.fix@smartgate.ch>>
wrote:
Hello together,

I finally got the System running and would like to import some initial data now.

I’m using the E-Commerce-Template: http://predictionio.incubator.apache.org/templates/ecommercerecommendation/quickstart/

I've the following data’s i would like to import:

  *   User data

  *   Products data

  *   Transaction data

When i try to use the pio import --appid 1 --input import/data-user.json command i’m always
getting an exception with the initial load from User & Product. My .json file is following
the structure mentioned on the tutorial.


  *   For User Data: {"event":"$set","entityType":"user","entityId":"user001","eventTime":““}
  *   For Products  {"event":"$set","entityType“:"item","entityId“:"product001","eventTime":““}

  *   For Transactions: {"entityId“:"user001","entityType":"user","event":"buy","targetEntityType":"item","targetEntityId“:"product001“}

Only the Import for Transactions is working I found this template here: https://gist.github.com/vaghawan/0a5fb8ddb85e03631dd500d7c8f0677d#file-data-sample-json

So my quesiton, how can I import Data’s like


  *   User Data
  *   User Categories
  *   Product Data
  *   Product Categories

with a .json file? What is the file structure?

Thanks for any help,
Sebastian




Mime
View raw message