Hi Sebastian, would you post the full stack trace? would you go to Spark master and look into more detailed Spark log of the failure? it may give more hint where in engine code trigger the null pointer exception
You could also follow here to debug and see if the data is imported as expected, or add some debug message in your engine to get more info https://predictionio.incubator.apache.org/customize/troubleshooting/ On Sat, Jul 8, 2017 at 5:12 AM, Vaghawan Ojha <[email protected]> wrote: > Hi, > > As much as I can understand from the error message, the Null Exception > happens when you have wrong data or no data at all. Please make sure > everything is fine in your data. > > Sometimes, the event store can store the data you provide, but the > template you might be using may need other kind of data, so please make > sure you're following the right doc and providing the right kind of data. > > Thanks > > On Sat, Jul 8, 2017 at 2:39 PM, Sebastian Fix <[email protected]> > wrote: > >> 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$sch >> eduler$DAGScheduler$$failJobAndIndependentStages(DAGScheduler.scala:1431) >> Caused by: java.lang.NullPointerException >> >> >> Best regards >> Sebastian >> >> >> Am 08.07.2017 um 09:52 schrieb Kenneth Chan <[email protected]>: >> >> 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 < >> [email protected]> 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://pr >> edictionio.incubator.apache.org/templates/ecommercerecommend >> ation/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","eve >> nt":"buy","targetEntityType":"item","targetEntityId“:"product001“} >> >> >> Only the Import for Transactions is working I found this template here: >> https://gist.github.com/vaghawan/0a5fb8ddb85e03631dd50 >> 0d7c8f0677d#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 >> >> >> >> >> >
