java - Faunus json reader error in json file format -


i'm using json file load nodes , edges faunus gremlin gives me error this...

java.io.ioexception: jsonobject text must end '}' @ character 1 of {     @ com.thinkaurelius.faunus.formats.graphson.faunusgraphsonutility.fromjson(faunusgraphsonutility.java:76)     @ com.thinkaurelius.faunus.formats.graphson.graphsonrecordreader.nextkeyvalue(graphsonrecordreader.java:41) 

i have format json file (actual file)...

{             "mode": "normal",         "vertices": [             {                 "_id": "5",                 "postid": "5",                 "vtype": "post",                 "_type": "vertex"             },             {                 "_id": "definitions",                 "_type": "vertex",                 "count": "9",                 "tagid": "definitions"             }             ]         } {     "mode": "normal",      "edges": [         {             "_outv": "definitions",              "_type": "edge",              "_id": 0,              "_inv": "5",              "_label": "totalauthoris"         }           ]             } 

here's @ did @ gremlin: http://i.imgur.com/wzzomw9.png

basically ran g.v after loading faunus.properties

is format correct or should else resolve error. can't understand problem creeping from.

thanks in advance

your example shows format not valid json format readable faunus (aka titan-hadoop). example shows edge list format produced blueprints graphson writer. faunus requires adjacency list format shown in documentation (correctly mentioned in comment konstantin on original question):

http://s3.thinkaurelius.com/docs/titan/0.5.4/graphson-io-format.html

the adjacency list allows such file split among hadoop nodes when faunus goes read it.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

php - Find a regex to take part of Email -

javascript - Function overwritting -