Import/export of services
ADCM offers the import and export of services. For a service, import is essentially a transfer of the specific service settings. The service settings being imported are listed in the product bundle, precisely, in the import
section of the service description.
The settings that are available for import are called exported settings. The exported settings for a service are listed in the export
section of the service description.
Import defines what settings a service is able to receive from other services. Hence, no service is imported or exported physically. Only the settings are being transferred.
For instance, let us have a hadoop
cluster that contains a ranger
service as able to be imported from another cluster. Then the ranger
service will contain the exported settings in the export
section of the ranger
service description. Those settings become available for the ranger
service when it is imported into other clusters and can now be accessed at configuration level.
IMPORTANT
Imports are product-specific and are not included into a product by default. Imports are present in a product only if imports are explicitly declared in the product bundle.
|
Everything that concerns the import and export of services is also true for clusters.
Import subsection
You can view the cluster imports in the Import subsection.
To change the set of service settings that are being imported, click a checkbox in the relevant service. To save the changes, click Import.
NOTE
The export of services is not represented in the ADCM interface. You can view the service’s exported settings in the service description. The description contains sections and configurations that are being exported.
|
Mandatory imports
If a service requires some imports, those imports are called the mandatory imports.
For instance, let us create a cluster and add the monitoring
service to it. The monitoring client inside a cluster is useless by itself — the client is able to accumulate data, yet it doesn’t know where to send it. To send data, the monitoring client needs the information from an external service, that, essentially, what an import is.
The main idea behind the import of services is to allow the re-use of service settings. ADCM might contain a lot of clusters and for them not to contain the similar services physically, we allow the import of just their settings.
For example, there are some common services, such as the monitoring
service or the ranger
service, that are frequently needed. Those services become candidates for re-use, so a standalone monitoring
cluster is created for all other clusters to access. This allows you to avoid the clusters containing the services they don’t directly need.
Example of cluster imports
Let us have the ADH
cluster that contains various services. We’d like the ADH
cluster to receive configurations from the Monitoring
cluster — that might be useful for migration tasks or to integrate with some external services. To do this, we need the Graphite
or Grafana
settings to be imported.
In order to change the set of settings that is being imported, do the following:
-
Navigate to the Import subsection of the
ADH
cluster.The first step of changing imports -
The Import subsection shows the settings that are available for import. You can change what is being imported by clicking a checkbox. To save the changes, click Import.
The second step of changing imports
Example of service imports
Let us have the ADS
cluster that contains various services. We’d like the Monitoring Clients
service of the ADS
cluster to receive configurations from the Monitoring
cluster. To do this, we need the Graphite
or Grafana
settings to be imported. Those settings will be mandatory imports.
In order to change the set of settings that is being imported, do the following:
-
Navigate to the Import subsection of the
ADS
cluster. Select the Services tab, then selectMonitoring Clients
in the Import to field.The first step of changing imports -
In this case, the settings are mandatory for import. You can change what is being imported by clicking a checkbox. To save the changes, click Import.
The second step of changing imports