Files
doc-exports/docs/mrs/umn/admin_guide_000217.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

49 lines
20 KiB
HTML

<a name="admin_guide_000217"></a><a name="admin_guide_000217"></a>
<h1 class="topictitle1">Restoring DBService data</h1>
<div id="body1530063347155"><div class="section" id="admin_guide_000217__s035967a4bde94fb8ac14014215757eec"><h4 class="sectiontitle">Scenario</h4><p id="admin_guide_000217__en-us_topic_0046736772_p6015877">DBService 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 DBService, 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_000217__en-us_topic_0046736772_p54142897">System administrators can create a recovery task in <span id="admin_guide_000217__text67509419010">MRS</span> Manager to recover DBService data. Only manual restoration tasks are supported.</p>
<div class="notice" id="admin_guide_000217__en-us_topic_0046736772_note23498561"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="admin_guide_000217__ul53379637171832"><li id="admin_guide_000217__li24835729171832">Data restoration can be performed only when the system version is consistent with that of data backup.</li><li id="admin_guide_000217__li6899982171832">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 DBService data that is generated after the data backup and before the data recovery will be lost.</li><li id="admin_guide_000217__li19176479171832">By default, <span id="admin_guide_000217__text2509550486">MRS</span> clusters use DBServices to store metadata of Hive, Hue, Loader, Spark, and Oozie. Restoring DBService data will restore the metadata of all these components.</li></ul>
</div></div>
</div>
<div class="section" id="admin_guide_000217__s2022094c17bb405a905f97304e41eedd"><h4 class="sectiontitle">Impact on the System</h4><ul id="admin_guide_000217__en-us_topic_0046736772_ul40494599"><li id="admin_guide_000217__en-us_topic_0046736772_li28907078">After the data is restored, the data generated after the data backup and before the data restoration is lost.</li><li id="admin_guide_000217__en-us_topic_0046736772_li58837112">After the data is restored, the configurations of the components that depend on DBService may expire and these components need to be restarted.</li></ul>
</div>
<div class="section" id="admin_guide_000217__s81ea3a0036c941c6ab204c01e1eaace6"><h4 class="sectiontitle">Prerequisites</h4><ul id="admin_guide_000217__ul1222213533213"><li id="admin_guide_000217__l6b2ccbf0a54a4d7994c8b888340d4fc3">To restore data from a remote HDFS, you need to 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_000217__text18361019191712">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><li id="admin_guide_000217__lfde42b9aa55947f79d6253ef3ddd298b">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_000217__lb80a243195ff415bb79d73f765e4982c">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></ul>
<ul id="admin_guide_000217__en-us_topic_0046736772_ul1076806"><li id="admin_guide_000217__en-us_topic_0046736772_li21907306">The status of the active and standby DBService instances is normal. If the status is abnormal, data restoration cannot be performed.</li></ul>
</div>
<div class="section" id="admin_guide_000217__s82462b2c29664370a3c6718698aa8ebe"><h4 class="sectiontitle">Procedure</h4><ol id="admin_guide_000217__ol66241074171841"><li id="admin_guide_000217__li1203247171841"><span>On <span id="admin_guide_000217__text15206172119176">MRS</span> Manager, choose <strong id="admin_guide_000217__b1650212941116">O&amp;M</strong> &gt; <strong id="admin_guide_000217__b1750716971118">Backup and Restoration</strong> &gt; <strong id="admin_guide_000217__b205087981120">Backup Management</strong>.</span></li><li id="admin_guide_000217__li11482830171841"><span>In the <strong id="admin_guide_000217__b23161228161119">Operation</strong> column of a specified task in the task list, choose <span class="menucascade" id="admin_guide_000217__menucascade1632213288119"><b><span class="uicontrol" id="admin_guide_000217__uicontrol18322142817115">More</span></b> &gt; <b><span class="uicontrol" id="admin_guide_000217__uicontrol1322192881118">View History</span></b></span> to view the historical backup task execution records.</span><p><p class="litext" id="admin_guide_000217__p30354148171841">In the displayed window, locate a specified success record and click <strong id="admin_guide_000217__b123681171143">View</strong> in the <strong id="admin_guide_000217__b11374317191414">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_000217__ul41566988171841"><li id="admin_guide_000217__li4751877171841"><strong id="admin_guide_000217__b1999152391417">Backup Object</strong> specifies the data source of the backup data.</li><li id="admin_guide_000217__li49357796171841"><strong id="admin_guide_000217__b1758618256144">Backup Path</strong> specifies the full path where the backup files are saved.<p id="admin_guide_000217__p42766901171841">Select the correct item, and manually copy the full path of backup files in <strong id="admin_guide_000217__b350928141412">Backup Path</strong>.</p>
</li></ul>
</p></li><li id="admin_guide_000217__li36236612171841"><span>On <span id="admin_guide_000217__text453992219177">MRS</span> Manager, choose <strong id="admin_guide_000217__b15867349145">O&amp;M</strong> &gt; <strong id="admin_guide_000217__b1258673481415">Backup and Restoration</strong> &gt; <strong id="admin_guide_000217__b15868345141">Restoration Management</strong>.</span></li><li id="admin_guide_000217__li57694053171841"><span>Click <strong id="admin_guide_000217__b710312926114524">Create</strong>.</span></li><li id="admin_guide_000217__li42706745171841"><span>Set <strong id="admin_guide_000217__b2125877359114524">Task Name</strong> to the name of the restoration task.</span></li><li id="admin_guide_000217__li16867105165017"><span>Select the cluster to be operated from <strong id="admin_guide_000217__b1669923100114524">Recovery Object</strong>.</span></li><li id="admin_guide_000217__li36694321171841"><span>In the <strong id="admin_guide_000217__b1799368523114524">Restoration Configuration</strong> area, select <strong id="admin_guide_000217__b1105488362114524">DBService</strong>.</span><p><div class="note" id="admin_guide_000217__note2984032138"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="admin_guide_000217__p898583215311">If multiple DBServices are installed, select the DBServices to be restored.</p>
</div></div>
</p></li><li id="admin_guide_000217__li9122263171841"><span>Set <strong id="admin_guide_000217__b1465615451114524">Path Type</strong> of <strong id="admin_guide_000217__b720407244114524">DBService</strong> to a backup directory type.</span><p><p class="litext" id="admin_guide_000217__p61813438171841">The settings vary according to backup directory types:</p>
<ul class="subitemlist" id="admin_guide_000217__ul53209367171841"><li class="subitemlist" id="admin_guide_000217__li183086332117"><strong id="admin_guide_000217__b6366201541818">LocalDir</strong>: indicates that the backup files are stored on the local disk of the active management node.<p class="subitemlist" id="admin_guide_000217__p1952533102119">If you select <strong id="admin_guide_000217__b24001325161820">LocalDir</strong>, you also need to set <strong id="admin_guide_000217__b3400142591818">Source Path</strong> to select the backup file to be restored, for example, <em id="admin_guide_000217__i13647113519187">Version_Data source_Task execution time</em><strong id="admin_guide_000217__b15648935161813">.tar.gz</strong>.</p>
</li><li class="subitemlist" id="admin_guide_000217__li1435505152115"><strong id="admin_guide_000217__b955411384183">LocalHDFS</strong>: indicates that the backup files are stored in the HDFS directory of the current cluster.<div class="subitemlist" id="admin_guide_000217__p1462795182114">If you select <strong id="admin_guide_000217__b10864135641816">LocalHDFS</strong>, set the following parameters:<ul id="admin_guide_000217__ul2819585717191"><li id="admin_guide_000217__li47549770171841"><strong id="admin_guide_000217__b55233291916">Source Path</strong>: indicates the full path of the backup file in the HDFS, for example, <em id="admin_guide_000217__i1240415714191">Backup path/Backup task name_Task creation time/Version_Data source_Task execution time</em><strong id="admin_guide_000217__b8404470193">.tar.gz</strong>.</li><li id="admin_guide_000217__li35608564171841"><strong id="admin_guide_000217__b1930371081915">Source NameService Name</strong>: indicates the NameService name that corresponds to the backup directory when a restoration task is executed. The default value is <strong id="admin_guide_000217__b197162210194">hacluster</strong>.</li></ul>
</div>
</li><li class="subitemlist" id="admin_guide_000217__li1928717819215"><strong id="admin_guide_000217__b69984120192">RemoteHDFS</strong>: indicates that the backup files are stored in the HDFS directory of the standby cluster.<div class="subitemlist" id="admin_guide_000217__p18509084213">If you select <strong id="admin_guide_000217__b68071852121918">RemoteHDFS</strong>, set the following parameters:<ul id="admin_guide_000217__ul343165517199"><li id="admin_guide_000217__li9681194592517"><strong id="admin_guide_000217__b173441129182020">Source NameService Name</strong>: <span id="admin_guide_000217__text435282962011">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_000217__b535232952019">haclusterX</strong>, <strong id="admin_guide_000217__b19353152932016">haclusterX1</strong>, <strong id="admin_guide_000217__b113532298202">haclusterX2</strong>, <strong id="admin_guide_000217__b1835302914200">haclusterX3</strong>, or <strong id="admin_guide_000217__b3354132918207">haclusterX4</strong>. You can also enter a configured NameService name of the remote cluster.</li><li id="admin_guide_000217__li040871275519"><strong id="admin_guide_000217__b1321993352015">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_000217__b151931345132015">IPv4</strong> or <strong id="admin_guide_000217__b10194124520207">IPv6</strong>.</li><li id="admin_guide_000217__li52041623171841"><strong id="admin_guide_000217__b146831489205">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_000217__li40829336171841"><strong id="admin_guide_000217__b149941656152017">Source Path</strong>: indicates the full path of HDFS directory for storing backup data of the standby cluster, for example, <em id="admin_guide_000217__i48841258182010">Backup path/Backup task name_Data source_Task creation time/Version_Data source_Task execution time</em><strong id="admin_guide_000217__b8884158152011">.tar.gz</strong>.</li><li id="admin_guide_000217__li13368692171841"><strong id="admin_guide_000217__b1055800192110">Queue Name</strong>: 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.</li></ul>
</div>
</li><li class="subitemlist" id="admin_guide_000217__li119871710112116"><strong id="admin_guide_000217__b139421141213">NFS</strong>: indicates that backup files are stored in the NAS using the NFS protocol.<div class="subitemlist" id="admin_guide_000217__p92241811162113">If you select <strong id="admin_guide_000217__b6294161792111">NFS</strong>, set the following parameters:<ul id="admin_guide_000217__ul127408275"><li id="admin_guide_000217__li3290181913313"><strong id="admin_guide_000217__b1870121172115">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_000217__b19232523172115">IPv4</strong> or <strong id="admin_guide_000217__b3233623182113">IPv6</strong>.</li></ul>
<ul id="admin_guide_000217__ul51213360578"><li id="admin_guide_000217__li31219365573"><strong id="admin_guide_000217__b130322762115">Server IP Address</strong>: indicates the IP address of the NAS server.</li><li id="admin_guide_000217__li17967636151014"><strong id="admin_guide_000217__b1263003119212">Source Path</strong>: indicates the full path of the backup file on the NAS server, for example, <em id="admin_guide_000217__i19860143662112">Backup path/Backup task name_Data source_Task creation time/Version_Data source_Task execution time</em><strong id="admin_guide_000217__b88611636172110">.tar.gz</strong>.</li></ul>
</div>
</li><li class="subitemlist" id="admin_guide_000217__li12287151317215"><strong id="admin_guide_000217__b10881103917218">CIFS</strong>: indicates that backup files are stored in the NAS using the CIFS protocol.<div class="subitemlist" id="admin_guide_000217__p13525613172116">If you select <strong id="admin_guide_000217__b180765010214">CIFS</strong>, set the following parameters:<ul id="admin_guide_000217__ul1761642317313"><li id="admin_guide_000217__li10616122317319"><strong id="admin_guide_000217__b2038215392120">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_000217__b16494175518216">IPv4</strong> or <strong id="admin_guide_000217__b19495115542116">IPv6</strong>.</li></ul>
<ul id="admin_guide_000217__ul312712363577"><li id="admin_guide_000217__li91281236125716"><strong id="admin_guide_000217__b1078085702111">Server IP Address</strong>: indicates the IP address of the NAS server.</li><li id="admin_guide_000217__li16129123695711"><strong id="admin_guide_000217__b1762895916219">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_000217__b196292593214">445</strong>.</li><li id="admin_guide_000217__li1412953610578"><strong id="admin_guide_000217__b19472121102215">Username</strong>: indicates the username set when the CIFS protocol is configured.</li><li id="admin_guide_000217__li26731501759"><strong id="admin_guide_000217__b193105313229">Password</strong>: indicates the password set when the CIFS protocol is configured.</li><li id="admin_guide_000217__li3378195944310"><strong id="admin_guide_000217__b20380165112212">Source Path</strong>: indicates the full path of the backup file on the NAS server, for example, <em id="admin_guide_000217__i10729208162220">Backup path/Backup task name_Data source_Task creation time/Version_Data source_Task execution time</em><strong id="admin_guide_000217__b272915817221">.tar.gz</strong>.</li></ul>
</div>
</li><li class="subitemlist" id="admin_guide_000217__li441312313569"><strong id="admin_guide_000217__b5682171222216">SFTP</strong>: indicates that backup files are stored in the server using the SFTP protocol.<div class="subitemlist" id="admin_guide_000217__p841418318563">If you select <strong id="admin_guide_000217__b643111817228">SFTP</strong>, set the following parameters:<ul id="admin_guide_000217__ul1077320285319"><li id="admin_guide_000217__li17773102813110"><strong id="admin_guide_000217__b343115248228">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_000217__b9953626132215">IPv4</strong> or <strong id="admin_guide_000217__b129542026202218">IPv6</strong>.</li></ul>
<ul id="admin_guide_000217__ul241493118561"><li id="admin_guide_000217__li44681342152220"><strong id="admin_guide_000217__b12271112914224">Server IP Address</strong>: indicates the IP address of the server where the backup data is stored.</li><li id="admin_guide_000217__li174681442162218"><strong id="admin_guide_000217__b8209941172213">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_000217__b3209114132212">22</strong>.</li><li id="admin_guide_000217__li64681342172216"><strong id="admin_guide_000217__b13842174415229">Username</strong>: indicates the username for connecting to the server using the SFTP protocol.</li><li id="admin_guide_000217__li1046854282215"><strong id="admin_guide_000217__b109230464225">Password</strong>: indicates the password for connecting to the server using the SFTP protocol.</li><li id="admin_guide_000217__li524741513333"><strong id="admin_guide_000217__b16819124914226">Source Path</strong>: indicates the full path of the backup file on the backup server, for example, <em id="admin_guide_000217__i830155572216">Backup path/Backup task name_Data source_Task creation time/Version_Data source_Task execution time</em><strong id="admin_guide_000217__b133018557225">.tar.gz</strong>.</li></ul>
</div>
</li><li id="admin_guide_000217__li107664811275"><strong id="admin_guide_000217__b65541459182219">OBS</strong>: indicates that backup files are stored in OBS. <p id="admin_guide_000217__p1661115485268">If you select <strong id="admin_guide_000217__b4544151242311">OBS</strong>, set the following parameters:</p>
<ul id="admin_guide_000217__ul9606337175418"><li id="admin_guide_000217__li6606103718547"><strong id="admin_guide_000217__b92211117142310">Source Path</strong>: indicates the full OBS path of a backup file, for example, <em id="admin_guide_000217__i4468527142314">Backup path/Backup task name_Data source_Task creation time/Version_Data source_Task execution time</em><strong id="admin_guide_000217__b84761274239">.tar.gz</strong>.<div class="note" id="admin_guide_000217__note112236183519"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="admin_guide_000217__p18741958332">Only MRS 3.1.0 or later supports saving backup files in OBS.</p>
</div></div>
</li></ul>
</li></ul>
</p></li><li id="admin_guide_000217__li705847171841"><span>Click <strong id="admin_guide_000217__b3735193232314">OK</strong>.</span></li><li id="admin_guide_000217__li67012442171841"><span>In the restoration task list, locate a created task and click <strong id="admin_guide_000217__b1439011357236">Start</strong> in the <strong id="admin_guide_000217__b739093513231">Operation</strong> column to execute the restoration task.</span><p><ul id="admin_guide_000217__ul44728529171841"><li id="admin_guide_000217__li57173627171841">After the restoration is successful, the progress bar is in green.</li><li id="admin_guide_000217__li44800598171841">After the restoration is successful, the restoration task cannot be executed again.</li><li id="admin_guide_000217__li4969836171841">If the restoration task fails during the first execution, rectify the fault and click <strong id="admin_guide_000217__b5438144422318">Retry</strong> to execute the task again.</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>