All Products
Search
Document Center

E-MapReduce:Export and import service configurations

Last Updated:Mar 18, 2024

Alibaba Cloud E-MapReduce (EMR) allows you to export service configurations in the XML or JSON format. This way, you can back up, migrate, or restore service configurations of an EMR cluster. You can import the service configurations that are exported in the JSON format to a new cluster as the preset configurations of the cluster. This topic describes how to export and import service configurations of an EMR cluster.

Export service configurations

  1. Log on to the EMR console. In the left-side navigation pane, click EMR on ECS.

  2. In the top navigation bar, select the region where your cluster resides and select a resource group based on your business requirements.

  3. On the EMR on ECS page, find your cluster, move the pointer over the more icon in the Actions column, and then select Export Service Configuration.

  4. In the Export Service Configuration dialog box, select the service configuration files that you want to export and configure the parameters. The following table describes the parameters.

    Parameter

    Description

    Export Mode

    By default, the Export Only Custom or Modified Configurations check box is selected. This indicates that you can export only custom or modified service configurations. If you clear this check box, you will export all service configurations in the current cluster.

    Export Format

    You can select a file export format based on your business requirements.

    • XML: The files that are exported in the XML format can be used for backup, migration, or restoration of service configurations.

    • JSON: The files that are exported in the JSON format can be used as preset configurations for a new cluster. For more information, see Import service configurations.

  5. Click OK.

Import service configurations

Service configuration files that are exported in the JSON format can be used as preset configurations for a new cluster when you create the cluster.

  1. On the EMR on ECS page, click Create Cluster.

  2. In the Advanced Settings section of the Software Configuration step, turn on Custom Software Configuration.

  3. Copy the content of the service configuration files that are exported in the JSON format to the field that appears.

    Hadoop

  4. Click Next: Hardware Configuration to continue creating the cluster.

    For more information about how to create a cluster, see Create a cluster.