Backing Up Yarn Resource Pool Data
Scenario
To ensure the data security of the Yarn resource pool, the MRS cluster administrator can back up Yarn-related data so that the system can be restored in a timely manner when an exception occurs or the expected result is not achieved, minimizing the impact on services.
On FusionInsight Manager, the MRS cluster administrator can create Yarn backup tasks and back up data. Automatic or manual data backup tasks can be created.
Resource pool information is also stored in DBService. Therefore, you need to manually trigger a DBService backup before backing up Yarn data. If only Yarn data is backed up, the Yarn data stored in ZooKeeper is inconsistent with that stored in DBService.
Prerequisites
- If you want to back up data to the remote HDFS. A standby cluster for backing up data has been created. The mode of the standby cluster is the same as that of the active cluster. In other backup modes, you do not need to prepare the standby cluster.
- If the active cluster is deployed in security mode and the active and standby clusters are not managed by the same FusionInsight Manager, configure system mutual trust. For details, see Configuring Cross-Manager Cluster Mutual Trust Relationships. If the active cluster is deployed in normal mode, do not configure mutual trust.
- Cross-cluster replication has been configured for the active and standby clusters. For details, see Enabling Cross-Cluster Replication.
- The time of the active cluster and standby cluster must be the same, and the NTP service in the active and standby clusters must use the same time source.
- Based on the service requirements, plan backup policies, such as the backup task type, period, backup object, and YARN queue that required by the backup task.
- If you want to back up data to the NAS, you need to deploy the NAS server in advance.
- If you want to back up data to the OBS, ensure that the current cluster is connected to OBS and you have the permission to access OBS.
Procedure
- On FusionInsight Manager, choose O&M > Backup and Restoration > Backup Management.
- Click Create.
- Set Name to the name of the backup task.
- Select the cluster to be operated from Backup Object.
- Set Manual for Mode.
Periodic indicates that the backup task is periodically executed and Manual indicates that the backup task is manually executed.
- In Configuration, select Yarn and DBService under Metadata and other data.
- Resource pool information is also stored in DBService. Therefore, you need to manually trigger a DBService backup before backing up Yarn data. If only Yarn data is backed up, the Yarn data stored in ZooKeeper is inconsistent with that stored in DBService.
- If there are multiple Yarn services, all Yarn services are backed up by default. You can click Assign Service to specify the HBase to be backed up.
- Set Path Type of DBService to a backup directory type. For details, see Backing Up DBService Data.
- Set Path Type of Yarn to a 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 default save path is Cluster data path/LocalBackup/, for example, /srv/BigData/LocalBackup.
If you select this value, you need to set Maximum Number of Backup Copies 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 you select this value, you need to set the following parameters:
- Destination NameService Name: indicates the NameService name of the standby cluster. You can set it to the NameService name (haclusterX, haclusterX1, haclusterX2, haclusterX3, or haclusterX4) of the built-in remote cluster of the cluster, or the NameService name of a configured remote cluster.
- IP Mode: mode of the target IP address.The system automatically selects the IP address mode based on the cluster network type, for example, IPv4 or IPv6.
- Target NameNode IP Address: indicates the NameNode service plane IP address of the standby cluster, supporting the active node or standby node.
- Target Path: indicates the HDFS directory for storing standby cluster backup data. The save 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 source cluster.
- NFS: indicates that backup files are stored in the NAS over the NFS protocol.
If you select NFS, set the following parameters:
- IP Mode: mode of the target IP address.The system automatically selects the IP address mode based on the cluster network type, for example, IPv4 or IPv6.
- Server IP Address: indicates the NAS server IP address.
- 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.
- CIFS: indicates that backup files are stored in the NAS over the CIFS protocol.
If you select CIFS, set the following parameters:
- IP Mode: mode of the target IP address.The system automatically selects the IP address mode based on the cluster network type, for example, IPv4 or IPv6.
- Server IP Address: indicates the NAS server IP address.
- 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 that is configured when setting the CIFS protocol.
- Password: indicates the password that is configured when setting 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.
- SFTP: Indicates that backup files are stored in the server using SFTP.
If you select SFTP, set the following parameters:
- IP Mode: mode of the target IP address.The system automatically selects the IP address mode based on the cluster network type, for example, IPv4 or IPv6.
- Server IP Address: Enter the IP address of the server where the backup data is stored.
- Port: Enter the port number used by the SFTP protocol to connect to the backup server. The default value is 22.
- Username: Enter the username for connecting to the server using SFTP.
- Password:Enter the password for connecting to the server using SFTP.
- Server Shared Path: Enter the backup path on the SFTP server.
- Maximum Number of Backup Copies: indicates the number of backup files that can be retained in the backup directory.
- OBS: indicates that the backup files are stored in the OBS.
If you select this value, you need to set the following parameters:
- Target Path: indicates the OBS directory for storing backup data.
- Maximum Number of Backup Copies: indicates the number of backup files that can be retained in the backup directory.
MRS 3.1.0 and later versions support backing up data to OBS.
- 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.
- Click OK to save the settings.
- In the Operation column of the created task in the backup task list, choose More > Back Up Now to execute the backup task.
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 version_data source_task execution time.tar.gz.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot