cloudera / navigator-sdk

Navigator SDK
Apache License 2.0
22 stars 23 forks source link

Sample code SetHiveTableTags doesn't work #88

Open christeoh opened 6 years ago

christeoh commented 6 years ago

Trying to run the code on CDH5.12.2 returns the following error:-

Exception in thread "main" java.lang.RuntimeException:

Read 0 entities.

Entity errors (position : message) -

0 : Id Generation not supported for SourceType: HIVE and EntityType: TABLE

Read 0 relations.

        at com.cloudera.nav.sdk.examples.tags.SetHiveTableTags.main(SetHiveTableTags.java:63)

It looks like Navigator API has changed behaviour from the SDK and the SDK hasn't caught up.

aadarshjajodia commented 6 years ago

Hi @christeoh, CM5.12.2 does not have support for Hive Table ID generation. Please use CM5.13.3, CM5.14.2 and above and it should work.

christeoh commented 6 years ago

Thanks for the prompt response @aadarshjajodia . Is there a workaround for those on lower versions?

aadarshjajodia commented 6 years ago

Hi @christeoh, there is no work around for those on lower versions. Since we have changed how the SDK interacts with the server this is something which is only present on newer versions. The support was initially added for HDFS, PIG entities and as you can from the commits, we are adding other entity types as well.