Managing MRS Cluster Backup and Restoration Tasks
Data backup and restoration are critical for securing enterprise big data clusters. When service needs evolve, you may need to update an existing backup policy, such as adjusting the backup frequency, changing the backup path, or increasing the number of backup files. System administrators can modify parameters for existing backup tasks on MRS Manager to meet changing service requirements. Note that you can view restoration task parameters, but you cannot modify them.
Impact on the System
After a backup task is modified, the new parameters take effect when the task is executed next time.
Changing the destination path parameter triggers a full backup on the next execution, which may take a long time. Perform this operation during off-peak hours to avoid service impact.
Prerequisites
- A backup task has been created.
- A new backup task policy has been planned based on the actual situation.
Modifying a Backup Task (MRS 3.x and Later)
- Log in to MRS Manager.
For details about how to log in to MRS Manager, see Accessing MRS Manager.
- Choose O&M > Backup and Restoration > Backup Management.
- In the task list, locate a specified task, click Configure in the Operation column to go to the configuration modification page.
On the displayed page, modify the following parameters:
- Started: time when the backup task is started for the first time.
- Period: interval between the next startup and the last execution of the backup task, supporting hourly or daily intervals.
- Destination NameService Name: NameService of the standby cluster.
- Destination NameNode IP Address: IP address of the standby cluster's NameNode service plane, supporting both active and standby nodes.
- Destination Path: HDFS directory for storing backup data of the standby cluster. The path cannot be configured as an HDFS hidden directory, such as a snapshot or recycle bin directory, nor as a default system directory, such as /hbase or /user/hbase/backup.
- Maximum Number of Backup Copies: number of backup file sets that can be retained in the backup directory.
- Maximum Number of Recovery Points: number of snapshots that can be retained in the cluster.
- Maximum Number of Maps: maximum number of maps for executing MapReduce tasks.
- Maximum Map Bandwidth (MB/s): maximum bandwidth of a single map.
After you change the value of Target Path for a backup task, full backup is performed by default when the task is executed for the first time.
- Click OK to save the settings.
Return to the Backup Management page to confirm that the backup task parameters reflect the new values. During the next backup execution, verify that the task executes using these new parameters.
Modifying a Backup Task (MRS 2.x and Earlier)
- Log in to FusionInsight Manager of the MRS cluster.
For details about how to log in to FusionInsight Manager, see Accessing MRS Manager.
- Choose System > Back Up Data.
- In the task list, locate a specified task, click Modify in the Operation column to go to the configuration modification page.
- Modify the following parameters on the displayed page:
- Manual backup:
- Target Path: HDFS directory for storing the backup files.
- Maximum Number of Backup Copies: number of backup file sets that can be retained in the backup directory.
- Periodic backup:
- Started: time when the backup task is started for the first time.
- Period: interval between the next startup and the last execution of the backup task, supporting hourly or daily intervals.
- Target Path: HDFS directory for storing the backup files. 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: number of backup file sets that can be retained in the backup directory.
When Path Type is set to LocalHDFS, Target Path is valid for modifying a backup task.
After you change the value of Target Path for a backup task, full backup is performed by default when the task is executed for the first time.
- Manual backup:
- Click OK to save the settings.
Return to the Backup Management page to confirm that the backup task parameters reflect the new values.
Viewing Backup and Restoration Tasks (MRS 3.x and Later)
- Log in to FusionInsight Manager of the MRS cluster.
For details about how to log in to FusionInsight Manager, see Accessing MRS Manager.
- Choose O&M > Backup and Restoration.
- Click Backup Management or Restoration Management.
- In the task list, obtain the previous execution result in the Task Status and Task Progress columns. Green indicates that the task is executed successfully, and red indicates that the execution fails.
- In the Operation column of a specified task in the task list, choose or click View History to view the historical record of backup and restoration task execution.
In the displayed window, click
before a specified record to display log information about the execution.You can also perform more maintenance operations listed in Table 1 in the Operation column of a specified task.
Table 1 Maintenance and management operations Operation Entry
Description
More > Back Up Now or Start
Start a backup or restoration task that is ready or fails to be executed. Executed restoration tasks cannot be repeatedly executed.
Configure
Modify parameters for a backup task.
Restore
After data backup, click Restore to quickly restore data.
More > Back Up Now
Execute a backup task immediately.
or Stop
Stop a running backup or restoration task. After the task is stopped, its Task Status changes to Stopped.
More > Delete or Delete
Delete a backup or restoration task. After a task is deleted, the backup data is retained by default. Deleted tasks cannot be recovered. Exercise caution when deleting a task.
More > Suspend
Suspend a backup task. Only periodic backup tasks can be suspended. Suspended backup tasks are no longer executed automatically. If you suspend a backup task that is being executed, the task execution stops. To unlock the task and run it again, choose More > Run Again.
More > Resume
Enable automatic backup.
More > View History or View History
Switch to the task run log page to view the task running details and backup path.
View
Check the parameter settings of a restoration task.
Start
Run a restoration task.
Viewing Backup and Restoration Tasks (MRS 2.x and Earlier)
- Log in to FusionInsight Manager of the MRS cluster.
For details about how to log in to FusionInsight Manager, see Accessing MRS Manager.
- Click System.
- Click Backup Management or Restoration Management.
- In the task list, obtain the previous execution result in the Task Progress column. Green indicates that the task is executed successfully, and red indicates that the execution fails.
- In the row containing the specified backup task, choose More > View History in the Operation column to display the task's historical execution records.
In the displayed window, click View in the Details column. The task execution logs and paths are displayed.
Other related operations are as follows:
- Viewing a restoration task
In the Operation column of the specified task in the task list, click View Details to view the restoration task. You can only view but cannot modify the parameters of a restoration task.
- Executing a backup or restoration task
In the task list, locate a specified task and click in the Operation column to start a backup or restoration task that is ready or fails to be executed. Executed restoration tasks cannot be repeatedly executed.
- Stopping a backup task
In the task list, locate a specified task and choose in the Operation column to stop a backup task that is running.
- Deleting a backup or restoration task
In the Operation column of the specified task in the task list, choose to delete the backup or restoration task. After a task is deleted, the backup data is retained by default.
- Suspending a backup task
In the task list, locate a specified task and choose More > Suspend in the Operation column to suspend the backup task. Only periodic backup tasks can be suspended. Suspended backup tasks are no longer executed automatically. When you suspend a backup task that is being executed, the task execution stops. To cancel the suspension status of a task, choose .
- Viewing a restoration task
Helpful Links
- For details about how to create a backup task, see Creating an MRS Cluster Data Backup Task.
- For details about how to back up and restore data for specific components, see Backing Up MRS Cluster Component Data.
- For details about how to access Manager of an MRS cluster, see Accessing MRS Manager.