Ahh I didn't use the latest snapshot, alright so I need to install ant. brb
with an update
Am Donnerstag, 28. August 2014 12:14:19 UTC+2 schrieb Curtis Mosters:
>
> Well not more infos in the command. Here again my updated JSON:
>
> Author ETL:
>
> {
> "config": {
> "log": "debug"
> },
> "extractor" : {
> "jdbc": { "driver": "com.mysql.jdbc.Driver",
> "url": "jdbc:mysql://localhost/test",
> "userName": "root",
> "userPassword": "",
> "query": "select * from Author" }
> },
> "transformers" : [
> { log : { prefix: "BEFORE->" } },
> { "vertex": { "class": "Author"} },
> { log : { prefix: "AFTER->" } }
> ],
> "loader" : {
> "orientdb": {
> "dbURL": "plocal:D:\Eclipse LaTeX\DB - orientdb\databases\Test6",
> dbUser: "root",
> dbPassword: "root",
> dbAutoDropIfExists: false,
> dbAutoCreate: true,
> tx: false,
> wal: false,
> batchCommit: 1000,
> dbType: "graph",
> indexes: [{class:"Author", fields:["id:string"], type:
> "UNIQUE_HASH_INDEX" }]
> }
> }
> }
>
>
>
> and output:
>
> D:\Eclipse LaTeX\DB - orientdb\bin>oetl.bat backup\luca\Author.json
> OrientDB etl v.1.7.8 (build @BUILD@) www.orientechnologies.com
> BEGIN ETL PROCESSOR
> BEFORE->{id:1,name:asdd}
> AFTER->v(Author)[#11:0]
> BEFORE->{id:2,name:aasdasd}
> AFTER->v(Author)[#11:1]
> END ETL PROCESSOR
> + extracted 3 records (29 records/sec) - 3 records -> loaded 2 vertices (
> 19 vert
> ices/sec) Total time: 3103ms [0 warnings, 0 errors]
>
>
>
> and the Post/Edge ETL:
>
> {
> "config": {
> "log": "debug"
> },
> "extractor" : {
> "jdbc": { "driver": "com.mysql.jdbc.Driver",
> "url": "jdbc:mysql://localhost/test",
> "userName": "root",
> "userPassword": "",
> "query": "select * from Post" }
> },
> "transformers" : [
> { log : { prefix: "BEFORE->" } },
> { "vertex": { "class": "Post"} },
> { log : { prefix: "MIDDLE->" } },
> { "edge": { "class": "Wrote", "direction" : "in",
> "joinFieldName": "author_id",
> "lookup":"Author.id", "unresolvedLinkAction":"WARNING"} },
> { log : { prefix: "AFTER->" } }
> ],
> "loader" : {
> "orientdb": {
> "dbURL": "plocal:D:\Eclipse LaTeX\DB - orientdb\databases\Test6",
> dbUser: "root",
> dbPassword: "root",
> dbAutoDropIfExists: false,
> dbAutoCreate: true,
> tx: false,
> wal: false,
> batchCommit: 1000,
> dbType: "graph",
> indexes: [{class:"Post", fields:["id:string"], type:
> "UNIQUE_HASH_INDEX" }]
> }
> }
> }
>
>
>
> and it's output:
>
> D:\Eclipse LaTeX\DB - orientdb\bin>oetl.bat backup\luca\Post.json
> OrientDB etl v.1.7.8 (build @BUILD@) www<span style="color: #660;"
> class="styled
> ...
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.