How to create properites using ETL process

43 views
Skip to first unread message

eswar reddy

unread,
Aug 17, 2016, 3:09:20 AM8/17/16
to OrientDB
hi

I am trying to load data from sql to orientdb using ETL process everything fine the data is loading  but the properties are not created (means columns are not showing)  any one help me please


thanks

etl_tool.json

user.w...@gmail.com

unread,
Aug 17, 2016, 9:03:22 AM8/17/16
to OrientDB
Hi,

you have to use

"dbAutoCreateProperties": true

see my example:

"loader" : {
       
"orientdb" : {
           
"dbURL" : "remote:localhost/property_etl",
           
"dbUser" : "root",
           
"dbPassword" : "root",
           
"dbAutoCreate" : true,
           
"tx" : false,
           
"batchCommit" : 1000,
           
"class" : "CARD",
           
"dbType" : "graph",
           
"serverUser" : "root",
           
"serverPassword" : "root",
           
"dbAutoCreateProperties": true,
           
"classes": [ { "name": "CARD", "extends", "V" } ]
       
}
   
}

Hope it helps.

Regards,
Michela

eswar reddy

unread,
Aug 18, 2016, 1:55:17 AM8/18/16
to OrientDB
sorry no use .same issue coming...

alessand...@gmail.com

unread,
Aug 18, 2016, 3:34:27 AM8/18/16
to OrientDB
Hi,
I have tried with this code

{
 
"config" : {
 
"log" : "debug"
 
},
 
 
"begin" : [],
 
 
"source" : {
 
"file" : {
 
"path" : "CARD.csv"
 
}
 
},
 
"extractor": { "csv": {
 
"ignoreEmptyLines": true,
                           
"nullValue": "N/A",
                           
"columnsOnFirstLine": true
                         
}
                 
},
   
"transformers": [
           
{ "vertex": { "class": "CARD" } }
       
],
 
"loader" : {
 
"orientdb" : {
 
"dbURL" : "remote:localhost/databases/ORDB",

 
"dbUser" : "root",
 
"dbPassword" : "root",
 
"dbAutoCreate" : true,
 
"tx" : false,
 
"batchCommit" : 1000,
 
"class" : "CARD",
 
"dbType" : "graph",
 
"serverUser" : "root",
 
"serverPassword" : "root",
 
"dbAutoCreateProperties": true,
 
"classes": [ { "name": "CARD", "extends", "V" } ]
 
}
 
}
}

and this CARD.csv

ID,CARD_NAME,CATEGORY_NAME,TYPE_NAME,CARD_REF_NAME,INVENTORY_STATUS_CODE,EQUIPMENT_NAME,CHASSIS_NAME
889124,BLOCK B1,GENERIC,GENERIC,10 PR-C,IPL,DP:DATA:L3639664,chassis02

and it worked for me.



Hope it helps,

Alessandro





Reply all
Reply to author
Forward
0 new messages