@@ -49,7 +49,7 @@ public class EmbeddedServiceDefsUtil {
4949 private static final Logger LOG = LoggerFactory .getLogger (EmbeddedServiceDefsUtil .class );
5050
5151 // following servicedef list should be reviewed/updated whenever a new embedded service-def is added
52- public static final String DEFAULT_BOOTSTRAP_SERVICEDEF_LIST = "tag,gds,hdfs,hbase,hive,kms,knox,storm,yarn,kafka,solr,atlas,nifi,nifi-registry,sqoop,kylin,elasticsearch,presto,trino,ozone,kudu,schema-registry,nestedstructure" ;
52+ public static final String DEFAULT_BOOTSTRAP_SERVICEDEF_LIST = "tag,gds,hdfs,hbase,hive,kms,knox,storm,yarn,kafka,solr,atlas,nifi,nifi-registry,sqoop,kylin,elasticsearch,presto,trino,ozone,kudu,schema-registry,nestedstructure,polaris " ;
5353 public static final String EMBEDDED_SERVICEDEF_TAG_NAME = "tag" ;
5454 public static final String EMBEDDED_SERVICEDEF_GDS_NAME = "gds" ;
5555 public static final String EMBEDDED_SERVICEDEF_HDFS_NAME = "hdfs" ;
@@ -75,6 +75,7 @@ public class EmbeddedServiceDefsUtil {
7575 public static final String EMBEDDED_SERVICEDEF_OZONE_NAME = "ozone" ;
7676 public static final String EMBEDDED_SERVICEDEF_KUDU_NAME = "kudu" ;
7777 public static final String EMBEDDED_SERVICEDEF_NESTEDSTRUCTURE_NAME = "nestedstructure" ;
78+ public static final String EMBEDDED_SERVICEDEF_POLARIS_NAME = "polaris" ;
7879
7980 public static final String PROPERTY_CREATE_EMBEDDED_SERVICE_DEFS = "ranger.service.store.create.embedded.service-defs" ;
8081 public static final String HDFS_IMPL_CLASS_NAME = "org.apache.ranger.services.hdfs.RangerServiceHdfs" ;
@@ -123,6 +124,7 @@ public class EmbeddedServiceDefsUtil {
123124 private RangerServiceDef ozoneServiceDef ;
124125 private RangerServiceDef kuduServiceDef ;
125126 private RangerServiceDef nestedStructureServiveDef ;
127+ private RangerServiceDef polarisServiceDef ;
126128 private RangerServiceDef tagServiceDef ;
127129 private RangerServiceDef gdsServiceDef ;
128130
@@ -186,6 +188,7 @@ public void init(ServiceStore store) {
186188 ozoneServiceDef = getOrCreateServiceDef (store , EMBEDDED_SERVICEDEF_OZONE_NAME );
187189 kuduServiceDef = getOrCreateServiceDef (store , EMBEDDED_SERVICEDEF_KUDU_NAME );
188190 nestedStructureServiveDef = getOrCreateServiceDef (store , EMBEDDED_SERVICEDEF_NESTEDSTRUCTURE_NAME );
191+ polarisServiceDef = getOrCreateServiceDef (store , EMBEDDED_SERVICEDEF_POLARIS_NAME );
189192
190193 gdsServiceDef = getOrCreateServiceDef (store , EMBEDDED_SERVICEDEF_GDS_NAME );
191194
@@ -289,6 +292,10 @@ public long getNestedStructureServiceDefId() {
289292 return getId (nestedStructureServiveDef );
290293 }
291294
295+ public long getPolarisServiceDefId () {
296+ return getId (polarisServiceDef );
297+ }
298+
292299 public long getTagServiceDefId () {
293300 return getId (tagServiceDef );
294301 }
0 commit comments