cloudera / navigator-sdk

Navigator SDK
Apache License 2.0
22 stars 23 forks source link

Adding custom field to HiveTable Entity #63

Closed manucbilagi closed 8 years ago

manucbilagi commented 8 years ago

Hi Cloudera,

I want to add a custom field of type **_"INT"_**to every hive table so that I can later call something like _**setCustomField(value)**_ Can you please guide me how it can be done?

changhiskhan commented 8 years ago

If you want the values to be int instead of string, you have to create a managed metadata field. This can be done by:

  1. extending the existing Hive model
  2. Annotate the new field with @MProperty(register=true, fieldType = CustomPropertyType.INTEGER)

Note that this requires Nav-2.6+

manucbilagi commented 8 years ago

Thanks for your input. Currently our cluster has Nav - 2.4.4.