HI all,
I am new to the project, and am trying to upload entities from a demo
Apache OFBiz database into Atlas. But it seems I am doing something wrong,
and I can't figure out what it is.
The OFBiz database is on postgresql, thus I want to start with uploading
the rdbms_instance. For this I have a json file with following content:
{
"entity": {
"attributes": {
"name": "postgresql instance",
"qualifiedName": "pgn001",
"rdbms_type": "postgresql",
"contact_info": "OFBiz DEMO",
"platform": "Linux",
"hostname": "10.0.0.29",
"protocol": "postgresql protocol",
"port": "5432"
},
"typeName": "rdbms_instance",
"status": "ACTIVE"
}
}
I use following to upload it to Atlas:
curl -u admin:admin -X POST -d postgresql_instance.json -H "Content-Type:
application/json" 'http://10.0.0.216:21000/api/atlas/v2/entity'
When I execute this I get:
There was an error processing your request. It has been logged (ID
b48d8f003c5993b7).*%*
And the log file shows:
2021-10-21 07:29:40,616 ERROR - [pool-2-thread-2 -
7581e34c-980a-40b8-9a5e-6d6d9a184f9f:] ~ Error handling a request:
2946df03fdc0ef66 (ExceptionMapperUtil:32)
com.fasterxml.jackson.core.JsonParseException: Unrecognized token
'postgresql_instance': was expecting ('true', 'false' or 'null')
at [Source: (org.eclipse.jetty.server.HttpInputOverHTTP); line: 1, column:
21]
Can you help me to resolve this?
Thanks in advance, and best regards,
Pierre Smits