Files
doc-exports/docs/mrs/umn/admin_guide_000219.html
Yang, Tong 2195db241c MRS UMN 20231220 version update
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Reviewed-by: Rechenburg, Matthias <matthias.rechenburg@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2024-05-16 09:40:21 +00:00

38 lines
22 KiB
HTML

<a name="admin_guide_000219"></a><a name="admin_guide_000219"></a>
<h1 class="topictitle1">Restoring HBase Service Data</h1>
<div id="body1530063350124"><div class="section" id="admin_guide_000219__sa03c3c195651492698ce215e8ed96a03"><h4 class="sectiontitle">Scenario</h4><p id="admin_guide_000219__en-us_topic_0046736773_p20085873">HBase data needs to be recovered in the following scenarios: data is modified or deleted unexpectedly and needs to be restored. After an administrator performs critical data adjustment in HBase, an exception occurs or the operation has not achieved the expected result. All modules are faulty and become unavailable. Data is migrated to a new cluster.</p>
<p id="admin_guide_000219__en-us_topic_0046736773_p46555134">System administrators can create a recovery task in <span id="admin_guide_000219__text67509419010">MRS</span> Manager to recover HBase data. Only manual restoration tasks are supported.</p>
<div class="notice" id="admin_guide_000219__en-us_topic_0046736773_note12869499"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="admin_guide_000219__en-us_topic_0046736773_ul48716629"><li id="admin_guide_000219__li35651622155541">Data restoration can be performed only when the system version is consistent with that during data backup.</li><li id="admin_guide_000219__en-us_topic_0046736773_li35796480">To recover data when the service is running properly, you are advised to manually back up the latest management data before recovering data. Otherwise, the HBase data that is generated after the data backup and before the data recovery will be lost.</li></ul>
</div></div>
</div>
<div class="section" id="admin_guide_000219__s971e5b4bca984ab4b2becea7cbf15af7"><h4 class="sectiontitle">Impact on the System</h4><ul id="admin_guide_000219__en-us_topic_0046736773_ul46794564"><li id="admin_guide_000219__en-us_topic_0046736773_li18497900">During the data recovery process, the system disables the HBase table to be recovered and the table cannot be accessed in this moment. The data recovery process takes several minutes, during which the HBase upper-layer applications are unavailable.</li><li id="admin_guide_000219__en-us_topic_0046736773_li32263379">During data restoration, user authentication stops and users cannot create new connections.</li><li id="admin_guide_000219__en-us_topic_0046736773_li21934963">After the data is restored, the data generated after the data backup and before the data restoration is lost.</li><li id="admin_guide_000219__en-us_topic_0046736773_li63196939">After the data is recovered, the HBase upper-layer applications need to be started.</li></ul>
</div>
<div class="section" id="admin_guide_000219__s961eaf57db024f91bc4bab4ade67c3bd"><h4 class="sectiontitle">Prerequisites</h4><ul id="admin_guide_000219__ul1222213533213"><li id="admin_guide_000219__l6b2ccbf0a54a4d7994c8b888340d4fc3">If you need to restore data from a remote HDFS, prepare a standby cluster. If the active cluster is deployed in security mode and the active and standby clusters are not managed by the same <span id="admin_guide_000219__text11674139171717">MRS</span> Manager, mutual trust has been configured. For details, see <a href="admin_guide_000177.html">Configuring Cross-Manager Mutual Trust Between Clusters</a>. If the active cluster is deployed in normal mode, no mutual trust is required.</li></ul>
<ul id="admin_guide_000219__en-us_topic_0046736773_ul18678419"><li id="admin_guide_000219__en-us_topic_0046736773_li60577072">Cross-cluster replication has been configured for the active and standby clusters. For details, see <a href="admin_guide_000200.html">Enabling Cross-Cluster Replication</a>.</li><li id="admin_guide_000219__en-us_topic_0046736773_li7795800">Time is consistent between the active and standby clusters and the NTP services on the active and standby clusters use the same time source.</li><li id="admin_guide_000219__en-us_topic_0046736773_li27480077">The directory for saving the backup file has been checked.</li><li id="admin_guide_000219__en-us_topic_0046736773_li45994103">The HBase upper-layer applications have been stopped.</li><li id="admin_guide_000219__en-us_topic_0046736773_li11293750">You have logged in to <span id="admin_guide_000219__text125001741111718">MRS</span> Manager. For details, see <a href="admin_guide_000004.html">Logging In to MRS Manager</a>.</li></ul>
</div>
<div class="section" id="admin_guide_000219__s2cad02915b0b46b0b442e5ea965a8748"><h4 class="sectiontitle">Procedure</h4><ol id="admin_guide_000219__ol3368283315595"><li id="admin_guide_000219__li4941398415595"><span>On <span id="admin_guide_000219__text104914341713">MRS</span> Manager, choose <strong id="admin_guide_000219__b17724141892616">O&amp;M</strong> &gt; <strong id="admin_guide_000219__b11725121882617">Backup and Restoration</strong> &gt; <strong id="admin_guide_000219__b8725101818265">Backup Management</strong>.</span></li><li id="admin_guide_000219__li1582338715595"><span>In the <strong id="admin_guide_000219__b9710345142616">Operation</strong> column of a specified task in the task list, choose <strong id="admin_guide_000219__b11439162118266">More</strong> &gt; <strong id="admin_guide_000219__b543962162613">View History</strong> to view historical backup task execution records.</span><p><p class="litext" id="admin_guide_000219__p4310977715595">In the displayed window, locate a specified success record and click <strong id="admin_guide_000219__b11775164717277">View</strong> in the <strong id="admin_guide_000219__b877584782715">Backup Path</strong> column to view the backup path information of the task and find the following information:</p>
<ul class="subitemlist" id="admin_guide_000219__ul4649739615595"><li id="admin_guide_000219__li5244367715595"><strong id="admin_guide_000219__b19440105552717">Backup Object</strong> specifies the data source of the backup data.</li><li id="admin_guide_000219__li2007945815595"><strong id="admin_guide_000219__b1093115575272">Backup Path</strong> specifies the full path where the backup files are saved.<p id="admin_guide_000219__p223105015595">Select the correct item, and manually copy the full path of backup files in <strong id="admin_guide_000219__b1866140122819">Backup Path</strong>.</p>
</li></ul>
</p></li><li id="admin_guide_000219__li819275915595"><span>On <span id="admin_guide_000219__text15790446178">MRS</span> Manager, choose <strong id="admin_guide_000219__b1736918320282">O&amp;M</strong> &gt; <strong id="admin_guide_000219__b15370837285">Backup and Restoration</strong> &gt; <strong id="admin_guide_000219__b7370238285">Restoration Management</strong>.</span></li><li id="admin_guide_000219__li662596915595"><span>Click <strong id="admin_guide_000219__b505749517112048">Create</strong>.</span></li><li id="admin_guide_000219__li5963372215595"><span>Set <strong id="admin_guide_000219__b182713742813">Task Name</strong> to the name of the restoration task.</span></li><li id="admin_guide_000219__li1696835325016"><span>Select the cluster to be operated from <strong id="admin_guide_000219__b1196018818281">Recovery Object</strong>.</span></li><li id="admin_guide_000219__li6694145115595"><span>In <strong id="admin_guide_000219__b1365959917112048">Restoration Configuration</strong>, select <strong id="admin_guide_000219__b1903280905112048">HBase</strong> under <strong id="admin_guide_000219__b990694508112048">Service Data</strong>.</span></li><li id="admin_guide_000219__li4457996415256"><span>Set <strong id="admin_guide_000219__b1951144672812">Path Type</strong> of <strong id="admin_guide_000219__b457114614281">HBase</strong> to a backup directory type.</span><p><p class="litext" id="admin_guide_000219__p1596050715256">The following backup directory types are supported:</p>
<ul class="subitemlist" id="admin_guide_000219__u695c04bfc9fd4e808744a464ebe243f6"><li id="admin_guide_000219__lff9acdbe32b44f9ab63e29d337acb6b8"><strong id="admin_guide_000219__b5906181142911">RemoteHDFS</strong>: indicates that the backup files are stored in the HDFS directory of the standby cluster. If you select <strong id="admin_guide_000219__b1170317712914">RemoteHDFS</strong>, set the following parameters:<ul id="admin_guide_000219__ucd7932b194e14ccaacbee7182305411e"><li id="admin_guide_000219__li9681194592517"><strong id="admin_guide_000219__b1163121816296">Source NameService Name</strong>: <span id="admin_guide_000219__text4164218192919">indicates the NameService name of the backup data cluster. </span>You can enter the built-in NameService name of the remote cluster, for example, <strong id="admin_guide_000219__b5164201822915">haclusterX</strong>, <strong id="admin_guide_000219__b216413185293">haclusterX1</strong>, <strong id="admin_guide_000219__b1316461813295">haclusterX2</strong>, <strong id="admin_guide_000219__b1516515180297">haclusterX3</strong>, or <strong id="admin_guide_000219__b8165918172916">haclusterX4</strong>. You can also enter a configured NameService name of the remote cluster.</li><li id="admin_guide_000219__li040871275519"><strong id="admin_guide_000219__b109618199295">IP Mode</strong>: indicates the mode of the target IP address. The system automatically selects the IP address mode based on the cluster network type, for example, <strong id="admin_guide_000219__b937252112296">IPv4</strong> or <strong id="admin_guide_000219__b1237214216299">IPv6</strong>.</li><li id="admin_guide_000219__li52041623171841"><strong id="admin_guide_000219__b199111422102914">Source NameNode IP Address</strong>: indicates the NameNode service plane IP address of the standby cluster, supporting the active node or standby node.</li><li id="admin_guide_000219__li99281153171714"><strong id="admin_guide_000219__b040582542911">Source Path</strong>: indicates the full path of the backup file in the HDFS, for example, <em id="admin_guide_000219__i166312282297">Backup path/Backup task name_Data source_Task creation time</em>.</li><li id="admin_guide_000219__l4f27e9a8307c43fab688eb38ffd050d8"><strong id="admin_guide_000219__b967213307293">Queue Name</strong>: indicates the name of the Yarn queue used for backup task execution.</li><li id="admin_guide_000219__li119291202"><strong id="admin_guide_000219__b570398771112048">Recovery Point List</strong>: Click <strong id="admin_guide_000219__b1596114502112048">Refresh</strong> and select an HDFS directory that has been backed up in the standby cluster.</li><li id="admin_guide_000219__li427605319287"><strong id="admin_guide_000219__b103708663018">Maximum Number of Maps</strong>: indicates the maximum number of maps in a MapReduce task. The default value is <strong id="admin_guide_000219__b103711466302">20</strong>.</li><li id="admin_guide_000219__li027720531285"><strong id="admin_guide_000219__b546016193305">Maximum Bandwidth of a Map (MB/s)</strong>: indicates the maximum bandwidth of a map. The default value is <strong id="admin_guide_000219__b154685198305">100</strong>.</li></ul>
</li><li id="admin_guide_000219__li1832811432104"><strong id="admin_guide_000219__b7432172653015">NFS</strong>: indicates that backup files are stored in the NAS using the NFS protocol. If you select <strong id="admin_guide_000219__b10100932123013">NFS</strong>, set the following parameters:<ul id="admin_guide_000219__ul131981043121213"><li id="admin_guide_000219__li476813393331"><strong id="admin_guide_000219__b113684316302">IP Mode</strong>: indicates the mode of the target IP address. The system automatically selects the IP address mode based on the cluster network type, for example, <strong id="admin_guide_000219__b5877844193014">IPv4</strong> or <strong id="admin_guide_000219__b1187724419307">IPv6</strong>.</li><li id="admin_guide_000219__li84531639101211"><strong id="admin_guide_000219__b2021264713305">Server IP Address</strong>: indicates the IP address of the NAS server.</li><li id="admin_guide_000219__li4659100101416"><strong id="admin_guide_000219__b65201851133012">Source Path</strong>: indicates the full path of the backup file on the NAS server, for example, <em id="admin_guide_000219__i1805454193011">Backup path/Backup task name_Data source_Task creation time</em>.</li><li id="admin_guide_000219__li11461153218222"><strong id="admin_guide_000219__b1580755615304">Queue Name</strong>: indicates the name of the Yarn queue used for backup task execution.</li><li id="admin_guide_000219__li39791015185012"><strong id="admin_guide_000219__b1074615533116">Recovery Point List</strong>: Click <strong id="admin_guide_000219__b1074617515319">Refresh</strong> and select an HDFS directory that has been backed up in the standby cluster.</li><li id="admin_guide_000219__li5203145111105"><strong id="admin_guide_000219__b129491293317">Maximum Number of Maps</strong>: indicates the maximum number of maps in a MapReduce task. The default value is <strong id="admin_guide_000219__b12950129133110">20</strong>.</li><li id="admin_guide_000219__li8205351161017"><strong id="admin_guide_000219__b96767115317">Maximum Bandwidth of a Map (MB/s)</strong>: indicates the maximum bandwidth of a map. The default value is <strong id="admin_guide_000219__b176761611183114">100</strong>.</li></ul>
</li><li id="admin_guide_000219__li153151517158"><strong id="admin_guide_000219__b1177710137312">CIFS</strong>: indicates that backup files are stored in the NAS using the CIFS protocol. If you select <strong id="admin_guide_000219__b1094381818315">CIFS</strong>, set the following parameters:<ul id="admin_guide_000219__ul19998175216165"><li id="admin_guide_000219__li8504184414339"><strong id="admin_guide_000219__b21411527163110">IP Mode</strong>: indicates the mode of the target IP address. The system automatically selects the IP address mode based on the cluster network type, for example, <strong id="admin_guide_000219__b18366162914316">IPv4</strong> or <strong id="admin_guide_000219__b63661529163111">IPv6</strong>.</li><li id="admin_guide_000219__li14202144861616"><strong id="admin_guide_000219__b143731632103110">Server IP Address</strong>: indicates the IP address of the NAS server.</li><li id="admin_guide_000219__li5203184891618"><strong id="admin_guide_000219__b5399133410314">Port</strong>: indicates the port number used to connect to the NAS server over the CIFS protocol. The default value is <strong id="admin_guide_000219__b239963417319">445</strong>.</li><li id="admin_guide_000219__li121901359121615"><strong id="admin_guide_000219__b10290936153116">Username</strong>: indicates the username set when the CIFS protocol is configured.</li><li id="admin_guide_000219__li10297967178"><strong id="admin_guide_000219__b77532377319">Password</strong>: indicates the password set when the CIFS protocol is configured.</li><li id="admin_guide_000219__li17967636151014"><strong id="admin_guide_000219__b17489173983112">Source Path</strong>: indicates the full path of the backup file on the NAS server, for example, <em id="admin_guide_000219__i7630142143113">Backup path/Backup task name_Data source_Task creation time</em>.</li><li id="admin_guide_000219__li991684118507"><strong id="admin_guide_000219__b163271344193114">Queue Name</strong>: indicates the name of the Yarn queue used for backup task execution.</li><li id="admin_guide_000219__li9312850102316"><strong id="admin_guide_000219__b127321246163119">Recovery Point List</strong>: Click <strong id="admin_guide_000219__b673215467314">Refresh</strong> and select an HDFS directory that has been backed up in the standby cluster.</li><li id="admin_guide_000219__li1755213091119"><strong id="admin_guide_000219__b11374050173120">Maximum Number of Maps</strong>: indicates the maximum number of maps in a MapReduce task. The default value is <strong id="admin_guide_000219__b1937513501315">20</strong>.</li><li id="admin_guide_000219__li055314017115"><strong id="admin_guide_000219__b138661351133119">Maximum Bandwidth of a Map (MB/s)</strong>: indicates the maximum bandwidth of a map. The default value is <strong id="admin_guide_000219__b486718512315">100</strong>.</li></ul>
</li><li class="subitemlist" id="admin_guide_000219__li441312313569"><strong id="admin_guide_000219__b7518105612313">SFTP</strong>: indicates that backup files are stored in the server using the SFTP protocol.<div class="subitemlist" id="admin_guide_000219__p841418318563">If you select <strong id="admin_guide_000219__b157737587315">SFTP</strong>, set the following parameters:<ul id="admin_guide_000219__ul96991812193314"><li id="admin_guide_000219__li6463949143316"><strong id="admin_guide_000219__b1319801153217">IP Mode</strong>: indicates the mode of the target IP address. The system automatically selects the IP address mode based on the cluster network type, for example, <strong id="admin_guide_000219__b92491738329">IPv4</strong> or <strong id="admin_guide_000219__b15250435322">IPv6</strong>.</li></ul>
<ul id="admin_guide_000219__ul241493118561"><li id="admin_guide_000219__li6262143122314"><strong id="admin_guide_000219__b2040352326">Server IP Address</strong>: indicates the IP address of the server where the backup data is stored.</li><li id="admin_guide_000219__li52631431172311"><strong id="admin_guide_000219__b1549811613329">Port</strong>: indicates the port number used to connect to the backup server over the SFTP protocol. The default value is <strong id="admin_guide_000219__b449914673217">22</strong>.</li><li id="admin_guide_000219__li20263163118236"><strong id="admin_guide_000219__b159031753215">Username</strong>: indicates the username for connecting to the server using the SFTP protocol.</li><li id="admin_guide_000219__li3263131122316"><strong id="admin_guide_000219__b1236593324">Password</strong>: indicates the password for connecting to the server using the SFTP protocol.</li><li id="admin_guide_000219__li14767165282818"><strong id="admin_guide_000219__b0504210183211">Source Path</strong>: indicates the full path of the backup file on the backup server, for example, <em id="admin_guide_000219__i2035012132323">Backup path/Backup task name_Data source_Task creation time/Version_Data source_Task execution time</em><strong id="admin_guide_000219__b1735031318324">.tar.gz</strong>.</li><li id="admin_guide_000219__li46916435404"><strong id="admin_guide_000219__b1754201583210">Queue Name</strong>: indicates the name of the Yarn queue used for backup task execution.</li><li id="admin_guide_000219__li569134320405"><strong id="admin_guide_000219__b1182717163320">Recovery Point List</strong>: Click <strong id="admin_guide_000219__b4827201619321">Refresh</strong> and select an HDFS directory that has been backed up in the standby cluster.</li><li id="admin_guide_000219__li469204374016"><strong id="admin_guide_000219__b934141913214">Maximum Number of Maps</strong>: indicates the maximum number of maps in a MapReduce task. The default value is <strong id="admin_guide_000219__b0341197321">20</strong>.</li><li id="admin_guide_000219__li1969216437400"><strong id="admin_guide_000219__b171892433212">Maximum Bandwidth of a Map (MB/s)</strong>: indicates the maximum bandwidth of a map. The default value is <strong id="admin_guide_000219__b1371812413322">100</strong>.</li></ul>
</div>
</li></ul>
</p></li><li id="admin_guide_000219__li2676895615595"><span>Set <strong id="admin_guide_000219__b15511516133314">Backup Data</strong> column in <strong id="admin_guide_000219__b2722191923317">Data Configuration</strong> to one or multiple backup data sources to be recovered. In the <strong id="admin_guide_000219__b162681125173311">Target Namespace</strong> column, specify the target naming space after backup data recovery.</span><p><p class="litext" id="admin_guide_000219__p4025703015595">You are advised to set <strong id="admin_guide_000219__b598992863112048">Target Namespace</strong> to a location that is different from the backup naming space.</p>
</p></li><li id="admin_guide_000219__li3959401615595"><span>Set <strong id="admin_guide_000219__b1829952618344">Force recovery</strong> to <strong id="admin_guide_000219__b20305926133411">true</strong>, which indicates to forcibly recover all backup data when a data table with the same name already exists. If the data table contains new data added after backup, the new data will be lost after the data recovery. If you set the parameter to <strong id="admin_guide_000219__b602050230112048">false</strong>, the restoration task is not executed if a data table with the same name exists.</span></li><li id="admin_guide_000219__li4846901015595"><span>Click <strong id="admin_guide_000219__b1845871924112048">Verify</strong> to check whether the restoration task is configured correctly.</span><p><ul class="subitemlist" id="admin_guide_000219__ul6503776915595"><li id="admin_guide_000219__li2080182715595">If the queue name is incorrect, the verification fails.</li><li id="admin_guide_000219__li5299871815595">If the specified naming space does not exist, the verification fails.</li><li id="admin_guide_000219__li722641815595">If the forcibly replacement conditions are not met, the verification fails.</li></ul>
</p></li><li id="admin_guide_000219__li3356791215595"><span>Click <strong id="admin_guide_000219__b1830421234112048">OK</strong> to save the settings.</span></li><li id="admin_guide_000219__li1801173515595"><span>In the restoration task list, locate a created task and click <strong id="admin_guide_000219__b715915226391">Start</strong> in the <strong id="admin_guide_000219__b4160172273919">Operation</strong> column to execute the restoration task.</span><p><ul class="subitemlist" id="admin_guide_000219__ul1691438415595"><li id="admin_guide_000219__li3464634015595">After the restoration is successful, the progress bar is in green.</li><li id="admin_guide_000219__li4338160415595">After the restoration is successful, the restoration task cannot be executed again.</li><li id="admin_guide_000219__li2424899715595">If the restoration task fails during the first execution, rectify the fault and click <strong id="admin_guide_000219__b15711836103912">Retry</strong> to execute the task again.</li></ul>
</p></li><li id="admin_guide_000219__li6339486015595"><span>Check whether HBase data is restored in an environment where HBase is newly installed or reinstalled.</span><p><ul id="admin_guide_000219__ul4432657515595"><li id="admin_guide_000219__li2788788915595">If yes, the administrator needs to set new permission for roles on <span id="admin_guide_000219__text435244661712">MRS</span> Manager based on the original service plan.</li><li id="admin_guide_000219__li4966441715595">If no, no further operation is required.</li></ul>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="admin_guide_000215.html">Recovering Data</a></div>
</div>
</div>