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://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/0a5fb8ddb85e03631dd500d7c8f067 > 7d#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 > > >
