Member since
03-03-2020
4
Posts
0
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1102 | 03-03-2020 02:22 AM |
08-13-2020
08:23 AM
Hey ! I want to deploy the hortonworks hdp sandbox, however i don' t want (and can't) use DHCP: I have to set a static IP. When I start the sandbox in vmware player, it doesn't find any valid IP to use and launch the centOS terminal. To set a static IP, i want to edit the ifcfg-ens33 file in the network-scripts directory. However I don't have the rights to do so, and when I try to sudo, I need to type the password of the "splash" user. Does someone know what is the password? Or does someone know how to set a static IP in another way ? Thanks
... View more
Labels:
- Labels:
-
Manual Installation
03-03-2020
02:22 AM
**bleep** I'm so dumb curl -s -i -X POST -H 'Content-Type: application/json' 'Accept: application/json' -u admin:$MDP_ATLAS "$ATLAS_BASE_URL/v2/entity/bulk" -d '{"entities":[{ "typeName": "Referenceable", "attributes": {"qualifiedName":"some.qualified.name1"}}, { "typeName": "Referenceable", "attributes": {"qualifiedName":"some.qualified.name2"}}]}' I tried it before but without putting entites in [ ]
... View more
03-03-2020
02:11 AM
Hi, I'm kinda a beginner in using REST API and i want to create multiple entities at the same time. Watching documentation, you can do it with v2/ENTITY/BULK, however i don't understand how the json file have to be formatted. When I create ONE entity, I do it with v2/ENTITY i just do it like this: curl -s -i -X POST -H 'Content-Type: application/json' 'Accept: application/json' -u admin:$MDP_ATLAS "$ATLAS_BASE_URL/v2/entity" -d '{"entities":{ "typeName": "Referenceable", "attributes": {"qualifiedName":"some.qualified.name1"}}}' But with BULK the doc is saying to format the file like this: {
"entities" : [ {
"classifications" : [ {
"entityGuid" : "...",
"entityStatus" : "ACTIVE",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ { }, { } ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}, {
"entityGuid" : "...",
"entityStatus" : "ACTIVE",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ { }, { } ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
} ],
"createTime" : 12345,
"createdBy" : "...",
"guid" : "...",
"homeId" : "...",
"meanings" : [ {
"confidence" : 12345,
"createdBy" : "...",
"description" : "...",
"displayText" : "...",
"expression" : "...",
"relationGuid" : "...",
"source" : "...",
"status" : "OBSOLETE",
"steward" : "...",
"termGuid" : "..."
}, {
"confidence" : 12345,
"createdBy" : "...",
"description" : "...",
"displayText" : "...",
"expression" : "...",
"relationGuid" : "...",
"source" : "...",
"status" : "PROPOSED",
"steward" : "...",
"termGuid" : "..."
} ],
"provenanceType" : 12345,
"proxy" : true,
"relationshipAttributes" : {
"property1" : { },
"property2" : { }
},
"status" : "ACTIVE",
"updateTime" : 12345,
"updatedBy" : "...",
"version" : 12345,
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}, {
"classifications" : [ {
"entityGuid" : "...",
"entityStatus" : "ACTIVE",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ { }, { } ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}, {
"entityGuid" : "...",
"entityStatus" : "ACTIVE",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ { }, { } ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
} ],
"createTime" : 12345,
"createdBy" : "...",
"guid" : "...",
"homeId" : "...",
"meanings" : [ {
"confidence" : 12345,
"createdBy" : "...",
"description" : "...",
"displayText" : "...",
"expression" : "...",
"relationGuid" : "...",
"source" : "...",
"status" : "DISCOVERED",
"steward" : "...",
"termGuid" : "..."
}, {
"confidence" : 12345,
"createdBy" : "...",
"description" : "...",
"displayText" : "...",
"expression" : "...",
"relationGuid" : "...",
"source" : "...",
"status" : "VALIDATED",
"steward" : "...",
"termGuid" : "..."
} ],
"provenanceType" : 12345,
"proxy" : true,
"relationshipAttributes" : {
"property1" : { },
"property2" : { }
},
"status" : "DELETED",
"updateTime" : 12345,
"updatedBy" : "...",
"version" : 12345,
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
} ],
"referredEntities" : {
"property1" : {
"classifications" : [ {
"entityGuid" : "...",
"entityStatus" : "DELETED",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ { }, { } ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}, {
"entityGuid" : "...",
"entityStatus" : "DELETED",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ { }, { } ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
} ],
"createTime" : 12345,
"createdBy" : "...",
"guid" : "...",
"homeId" : "...",
"meanings" : [ {
"confidence" : 12345,
"createdBy" : "...",
"description" : "...",
"displayText" : "...",
"expression" : "...",
"relationGuid" : "...",
"source" : "...",
"status" : "IMPORTED",
"steward" : "...",
"termGuid" : "..."
}, {
"confidence" : 12345,
"createdBy" : "...",
"description" : "...",
"displayText" : "...",
"expression" : "...",
"relationGuid" : "...",
"source" : "...",
"status" : "OTHER",
"steward" : "...",
"termGuid" : "..."
} ],
"provenanceType" : 12345,
"proxy" : true,
"relationshipAttributes" : {
"property1" : { },
"property2" : { }
},
"status" : "ACTIVE",
"updateTime" : 12345,
"updatedBy" : "...",
"version" : 12345,
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
},
"property2" : {
"classifications" : [ {
"entityGuid" : "...",
"entityStatus" : "ACTIVE",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ { }, { } ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}, {
"entityGuid" : "...",
"entityStatus" : "ACTIVE",
"propagate" : true,
"removePropagationsOnEntityDelete" : true,
"validityPeriods" : [ { }, { } ],
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
} ],
"createTime" : 12345,
"createdBy" : "...",
"guid" : "...",
"homeId" : "...",
"meanings" : [ {
"confidence" : 12345,
"createdBy" : "...",
"description" : "...",
"displayText" : "...",
"expression" : "...",
"relationGuid" : "...",
"source" : "...",
"status" : "PROPOSED",
"steward" : "...",
"termGuid" : "..."
}, {
"confidence" : 12345,
"createdBy" : "...",
"description" : "...",
"displayText" : "...",
"expression" : "...",
"relationGuid" : "...",
"source" : "...",
"status" : "DISCOVERED",
"steward" : "...",
"termGuid" : "..."
} ],
"provenanceType" : 12345,
"proxy" : true,
"relationshipAttributes" : {
"property1" : { },
"property2" : { }
},
"status" : "DELETED",
"updateTime" : 12345,
"updatedBy" : "...",
"version" : 12345,
"attributes" : {
"property1" : { },
"property2" : { }
},
"typeName" : "..."
}
}
} And I don't understand how I should write that file. Let's say I want to create two entities with BULK: {"entities":{ "typeName": "Referenceable", "attributes": {"qualifiedName":"some.qualified.name1"}}}
AND
{"entities":{ "typeName": "Referenceable", "attributes": {"qualifiedName":"some.qualified.name2"}}} How can I do that ? Can someone explain me how to write that file ? I thank you for the time you took to read my request, have a good day 😃 .
... View more
Labels:
- Labels:
-
Apache Atlas