private void installAutoInstance(Long clusterId, String clusterName, Service service, ViewEntity viewEntity, String viewName, ViewConfig viewConfig, AutoInstanceConfig autoConfig, Collection<String> roles) throws SystemException, ValidationException {
    LOG.info("Auto creating instance of view " + viewName + " for cluster " + clusterName + ".");
    ViewInstanceEntity viewInstanceEntity = createViewInstanceEntity(viewEntity, viewConfig, autoConfig);
    updateHiveLLAPSettingsIfRequired(viewInstanceEntity, service);
    viewInstanceEntity.setClusterHandle(clusterId);
    installViewInstance(viewInstanceEntity);
    setViewInstanceRoleAccess(viewInstanceEntity, roles);
    try {
      setViewUrl(viewInstanceEntity);
    } catch (Exception urlCreateException) {
      LOG.error("Error while creating an auto URL for the view instance {}, Url should be created in view instance settings", viewInstanceEntity.getViewName());
      LOG.error("View URL creation error ", urlCreateException);
    }

  }
Receive notification that a new service has been added to a cluster.
</p>
Used for view instance auto creation.

@param event the service installed event
ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java