Reply
Highlighted
New Contributor
Posts: 1
Registered: ‎04-08-2016

Modifying Custom Metadata - Cloudera Navigator API REST

Hello,

 

I'm developing a script that uses the Navigator API REST to modify the custom metadata for existing tables, columns and files of the cluster, but after a lot of tests, the API REST seems to works OK but in some cases the response is OK but it didn't modify the custom metadata, so How can I check or control when the API REST can't modify the custom metadata?

 

Environment:

cdh5.5.1

Using PUT /v8/entities/

 

Example of PUT and the response even the table, file or column was NOT modified (please note that the response it's the same even NOT works properly:

 

 

curl http://hostname:port/api/v8/entities/db2a57ea7c16756eda71ef195f19ed66 -u user:pass -X\

PUT -H Content-Type: application/json\

-d '{"name":"TEST NAME","description":"TEST DESC","tags":["ANY TAG"]}'


% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 104 0 163k --:--:-- --:--:-- --:--:-- 163k
114 810 0 810 0 104 1275 163 --:--:-- --:--:-- --:--:-- 1113
{
"identity" : "db2a57ea7c16756eda71ef195f19ed66",
"originalName" : "name_field",
"originalDescription" : "TEST DESC",
"sourceId" : "4f3e6518363eaef52d239ff4fae31a1d",
"firstClassParentId" : "830b6e6bf0c239ced0647e828e083340",
"parentPath" : "/path/table",
"extractorRunId" : "4f3e6518363eaef52d239ff4fae31a1d##22529",
"name" : "TEST NAME",
"description" : "TEST DESC",
"tags" : [ "ANY TAG" ],
"properties" : {
"__cloudera_internal__hueLink" : "http://hostname:port/metastore/table/path/table"
},
"technicalProperties" : null,
"dataType" : "string",
"type" : "FIELD",
"sourceType" : "HIVE",
"userEntity" : false,
"deleted" : false,
"internalType" : "hv_column"
} % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
107 1072 0 1072 0 0 11861 0 --:--:-- --:--:-- --:--:-- 12044
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
105 1372 105 1372 0 0 229k 0 --:--:-- --:--:-- --:--:-- 267k
0 1372 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
0 1372 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
0 1372 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0
0 1372 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0
0 1372 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
0 1372 0 0 0 0 0 0 --:--:-- 0:00:06 --:--:-- 0
21 1372 21 280 0 0 43 0 0:00:31 0:00:06 0:00:25 63

 

Any help will be highly appreciated,

Thanks a lot in advance,

 

Announcements
New solutions