cloudera / navigator-sdk

Navigator SDK
Apache License 2.0
22 stars 23 forks source link

Unable to update/add custom properties , tags to Navigator Entities(Hivetable, HDFS..) on Navigator version > 2.9.1 #75

Closed avinashr closed 7 years ago

avinashr commented 7 years ago

Unable to write the custom properties , tags to Navigator Entities(Hivetable, HDFS..) on Navigator version > 2.9.1

Below is the sample code that is being used.

Source hive = client.getSourcesForType(SourceType.HIVE).iterator().next(); Collection sourceList = client.getSourcesForType(SourceType.HIVE); Collection hiveEntityList = new ArrayList();

    HiveTable table = new HiveTable();
    table.setDatabaseName("databasename");
    table.setTableName("tablename");
    table.setSourceId(hive.getIdentity());
    table.setSourceType(SourceType.HIVE);
    table.setIdentity(1234);
     table.setTags(tags);
    table.setProperties(properties);
    hiveEntityList.add(table);
    ResultSet results = plugin.write(hiveEntityList);

The call completes successfully but the custom metadata does not showup on the Navigator UI, but the metadata shows up from the API call but as a new entry but is not linked to an existing entity.

aadarshjajodia commented 7 years ago

Fixed in v2.0