Description
ID for service-defs are auto-generated during creation in the current version. In earlier version (0.4), the equivalent of service-def is assetType - which had the following pre-defined values:
{ HDFS: 1, HBase:2, Hive:3, Knox:5, Storm:6 }.
It will be good to maintain service-def IDs for HDFS/HBase/Hive/Knox/Strom same as their equivalent assetType from earlier version. These service-defs are created when Ranger Admin starts up for the first time (or during upgrade from the earlier version). Creating these service-defs in the correct order should get them the desired IDs in most deployments.
Also noticed that AppConstants.java has 1037 assigned to two class-types: CLASS_TYPE_RANGER_POLICY_WITH_ASSIGNED_ID and CLASS_TYPE_XA_KMS_KEY. This needs to be fixed.