No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

FusionInsight HD 6.5.0 Administrator Guide 02

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Backing up Elasticsearch Metadata

Backing up Elasticsearch Metadata

Scenario

To ensure Elasticsearch metadata security in security mode or before and after a critical operation (such as upgrade or migration) on ZooKeeper, Elasticsearch metadata in security mode needs to be backed up. The backup data can be used to recover the system in time if an exception occurs or the operation has not achieved the expected result, minimizing the adverse impact on services.

This section describes how to create an Elasticsearch data backup task and back up data on FusionInsight Manager. Both automatic backup tasks and manual backup tasks are supported.

Metadata backup is not required for Elasticsearch clusters in non-security mode.

Prerequisites

  • A standby cluster for backing up data has been created. For details, see Software Installation.
  • The HDFS and Yarn services have been installed if data needs to be backed up to HDFS.
  • The NAS server has been deployed if data needs to be backed up to NAS.
  • The backup type, period, policy, and other specifications have been planned based on the service requirements, and you have checked whether there is sufficient space on the following path of the active and standby management nodes: data storage path/LocalBackup/
  • Cross-cluster mutual trust has been configured for the active and standby clusters if data needs to be backed up to the standby cluster and the active cluster is deployed in security mode. For details, see Configuring Cross-Cluster Mutual Trust Relationships. If the active cluster is deployed in normal mode, cross-cluster mutual trust is not required.
  • Cross-cluster replication has been configured for the active and standby clusters. For details, see Enabling Cross-Cluster Replication.
  • Time of the active and standby clusters is consistent, and the Network Time Protocol (NTP) service in the active and standby clusters use the same time source.

Procedure

  1. Log in to FusionInsight Manager, and choose O&M > Backup and Restoration > Backup Management.
  2. Click Create.
  3. On the displayed page, set Name to the name of a backup task.
  4. Set Mode to Periodic or Manual based on site requirement. Periodic indicates that a backup task is periodically executed, and Manual indicates that a backup task is manually executed.

    To create a periodic task, set the following parameters:
    • Started: indicates the time when the task is started for the first time.
    • Period: indicates the interval for executing the backup task. The unit can be hour or day.
    • Backup Policy: Only Full backup every time is supported.

  5. In the Configuration area, select Elasticsearch under Metadata and other data.

    NOTE:

    If there are multiple Elasticsearch services, all Elasticsearch services are backed up by default. You can click Assign Service to specify the Elasticsearch service to be backed up.

  6. In the displayed Elasticsearch area, set Path Type to the backup directory type.

    The following backup directory types are supported:
    • LocalDir: indicates that the backup files are stored on the local disk of the active management node and the standby management node automatically synchronizes the backup file. The backup files are stored in the data storage path/LocalBackup/ directory by default. If LocalDir is selected, Maximum Number of Backup Copies needs to be configured to specify the number of backup files that can be retained in the backup directory.
    • RemoteHDFS: indicates that the backup files are stored in the HDFS directory of the standby cluster. If this parameter is selected, set the following parameters:
      • Target NameNode IP Address: indicates the service plane IP address of the active or standby NameNode in the standby cluster.
      • Target Path: indicates the HDFS directory for storing standby cluster backup data. The path cannot be an HDFS hidden directory, such as snapshot or recycle bin directory, or a default system directory.
      • Maximum Number of Backup Copies: indicates the number of backup files that can be retained in the backup directory.
      • Queue Name: indicates the name of the Yarn queue used for backup task execution. The name must be the same as the name of the queue that is running properly in the cluster.
    • NFS: indicates that backup files are stored in the NAS over the NFS protocol. If this parameter is selected, set the following parameters:
      • Server IP Address: indicates the IP address of the NAS server.
      • Server Shared Path: indicates the configured shared directory on the NAS server.
    • CIFS: indicates that backup files are stored in the NAS over the CIFS protocol. If this parameter is selected, set the following parameters:
      • Server IP Address: indicates the IP address of the NAS server.
      • Port: indicates the port ID used by the CIFS protocol to connect to the NAS server. The default value is 445.
      • Username: indicates the user name configured when you set the CIFS protocol.
      • Password: indicates the password configured when you set the CIFS protocol.
      • Server Shared Path: indicates the configured shared directory on the NAS server.
      • Maximum Number of Backup Copies: indicates the number of backup files that can be retained in the backup directory.

  7. Click OK to save the configurations.
  8. In the backup task list, locate the row where the created task resides, and choose More > Back Up Now in the Operation column.

    After the backup task is executed, the system automatically creates a subdirectory for each backup task in the backup directory. The format of the subdirectory name is backup task name_task creation time, and the subdirectory is used to save data source backup files. The format of the backup file name is backup task name_data source_task execution time.tar.gz.

Download
Updated: 2019-05-17

Document ID: EDOC1100074522

Views: 6176

Downloads: 12

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next