atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Avi Levi <avile...@gmail.com>
Subject Creating a new entity
Date Sun, 25 Dec 2016 16:02:37 GMT
Hi

I'm trying to create an entity, using the url:
admin:admin@sandbox.hortonworks.com:21000/api/atlas/entities

and the following body:
[{
  "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Reference",
  "id": {
    "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Id",
    "id": "-1466683608564093000",
    "version": 0,
    "typeName": "DataSet",
    "state": "ACTIVE"
  },
  "typeName": "DataSet",
  "values": {
    "qualifiedName": "default@cluster1",
    "name": "default"
  },
  "traitNames": [],
  "traits": {}
}]


I get what seems to be a valid response, but without entity ids:

{
  "requestId": "qtp1613255205-87 - 268121f0-fb70-43af-9898-7f05ac0c267d",
  "entities": {}
}

Atlas's logs writes the following corresponding statements:

2016-12-25 12:12:55,860 INFO  - [qtp1613255205-87 -
268121f0-fb70-43af-9898-7f05ac0c267d:] ~ submitting entities
{"jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference","id":{"jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id","id":"-1466683608564093000","version":0,"typeName":"DataSet","state":"ACTIVE"},"typeName":"DataSet","values":{"qualifiedName":"default@cluster1","description":"Default
dataset","name":"default"},"traitNames":[],"traits":{}}
(EntityResource:131)

2016-12-25 12:12:55,865 INFO  - [qtp1613255205-87 -
268121f0-fb70-43af-9898-7f05ac0c267d:] ~ graph commit
(GraphTransactionInterceptor:46)

2016-12-25 12:12:55,866 INFO  - [qtp1613255205-87 -
268121f0-fb70-43af-9898-7f05ac0c267d:] ~ Putting 0 events
(HBaseBasedAuditRepository:117)

2016-12-25 12:12:55,866 INFO  - [qtp1613255205-87 -
268121f0-fb70-43af-9898-7f05ac0c267d:] ~ Created entities []
(EntityResource:134)

as you can see, no errors or any clue as to whats wrong.

can someone point me in the right direction?
thanks a lot
Avi

Mime
View raw message