forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Yang, Tong <yangtong2@huawei.com> Co-committed-by: Yang, Tong <yangtong2@huawei.com>
26 lines
6.6 KiB
HTML
26 lines
6.6 KiB
HTML
<a name="mrs_01_1665"></a><a name="mrs_01_1665"></a>
|
|
|
|
<h1 class="topictitle1">Configuring NFS</h1>
|
|
<div id="body1595904092493"><div class="section" id="mrs_01_1665__s0eabe9d97bfa41ecb0e449bdba3ccc1e"><h4 class="sectiontitle">Scenario</h4><div class="note" id="mrs_01_1665__note17408121619136"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_1665__p788202018132">This section applies to MRS 3.<em id="mrs_01_1665__i117519202555">x</em> or later.</p>
|
|
</div></div>
|
|
<p id="mrs_01_1665__afa708240ee704fc89aa07c6126dd3f47">Before deploying a cluster, you can deploy a Network File System (NFS) server based on requirements to store NameNode metadata to enhance data reliability.</p>
|
|
</div>
|
|
<p id="mrs_01_1665__a66d6b07b9a1e4252903c0025bb1051c9">If the NFS server has been deployed and NFS services are configured, you can follow operations in this section to configure NFS on the cluster. These operations are optional.</p>
|
|
<div class="section" id="mrs_01_1665__sf1f425ddd3994f49b2e2392af32c3800"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_1665__obce7b01ef01b411786ddf29301c516e1"><li id="mrs_01_1665__l496aa255620a443b935227470dfb6623"><span>Check the permission of the shared NFS directories on the NFS server to ensure that the server can access NameNode in the <span id="mrs_01_1665__text1878739210">MRS</span> cluster.</span></li><li id="mrs_01_1665__lff3e9b51a9354f89ab59a1c515495818"><a name="mrs_01_1665__lff3e9b51a9354f89ab59a1c515495818"></a><a name="lff3e9b51a9354f89ab59a1c515495818"></a><span>Log in to the active NameNode as user <strong id="mrs_01_1665__b13854174155510">root</strong>.</span></li><li id="mrs_01_1665__l72c9ebb4acdf4cad92bcf3f2ea337082"><span>Run the following commands to create a directory and assign it write permissions:</span><p><p id="mrs_01_1665__afd6ad6919ad142f8b18c96ef63fac5d5"><strong id="mrs_01_1665__a9281e358fe654d42a2b4d00bf0f4c90b">mkdir </strong><strong id="mrs_01_1665__a32aed279709840939f9f7f469832ea1a"><span id="mrs_01_1665__tf7184454b2da4ccdb64c267ecb8aa9bc">${BIGDATA_DATA_HOME}</span></strong><strong id="mrs_01_1665__aaa2d682afccb40b2b0abb43ce18269fa">/namenode-nfs</strong></p>
|
|
<p id="mrs_01_1665__ad47a4a3d61d34359a5bcb3ff356b4859"><strong id="mrs_01_1665__acbb2b3e2cac14c15b8c55afd877466b9">chown omm:wheel </strong><strong id="mrs_01_1665__aca57ef6d37fc49f5b86301eca08b1804"><span id="mrs_01_1665__td1e7f4c5c40b405bb7287700ff59f366">${BIGDATA_DATA_HOME}</span></strong><strong id="mrs_01_1665__a3aa5cddccc95458e982e93acfa12959b">/namenode-nfs</strong></p>
|
|
<p id="mrs_01_1665__a21ff4b7ca55d48c59d8d29c0c78421fe"><strong id="mrs_01_1665__aec1f28b8208249cb9969a4d42ca6e102">chmod 750 </strong><strong id="mrs_01_1665__aa9a217def204469a95d4fac814661d1d"><span id="mrs_01_1665__tef202fd1ae5045d1aec71acc43516a97">${BIGDATA_DATA_HOME}</span></strong><strong id="mrs_01_1665__a7e6a4b2ca13f4c779551cd8b20061764">/namenode-nfs</strong></p>
|
|
</p></li><li id="mrs_01_1665__lbb64192db9814446b3744fcbf6326d7b"><a name="mrs_01_1665__lbb64192db9814446b3744fcbf6326d7b"></a><a name="lbb64192db9814446b3744fcbf6326d7b"></a><span>Run the following command to mount the NFS to the active NameNode:</span><p><p id="mrs_01_1665__a3a8d0ef087c6411380eb352d4537437c"><strong id="mrs_01_1665__b0216185135612">mount -t nfs -o rsize=8192,wsize=8192,soft,nolock,timeo=3,intr</strong> <em id="mrs_01_1665__i1322216520562">IP address of the NFS server</em>:<em id="mrs_01_1665__i322214514564">Shared directory</em> <strong id="mrs_01_1665__a2a6c815cf106480ebe4739d1ced5efef"><span id="mrs_01_1665__t6d26453954c6428cb4ec46fab6f281f4">${BIGDATA_DATA_HOME}</span></strong><strong id="mrs_01_1665__b142253555619">/namenode-nfs</strong></p>
|
|
<p id="mrs_01_1665__acc231e086caa499ea3967ce08e11e18e">For example, if the IP address of the NFS server is <strong id="mrs_01_1665__b1941151695614">192.168.0.11</strong> and the shared directory is <strong id="mrs_01_1665__b894291613568">/opt/Hadoop/NameNode</strong>, run the following command:</p>
|
|
<p id="mrs_01_1665__a79df4a2263624dc3b19dcd16a5a0d008"><strong id="mrs_01_1665__a08d8f2062b164d54a16174a6df382b3d">mount -t nfs -o rsize=8192,wsize=8192,soft,nolock,timeo=3,intr 192.168.0.11:/opt/Hadoop/NameNode </strong><strong id="mrs_01_1665__abb5e5d16eefe438199093f9d52af4366"><span id="mrs_01_1665__t67fa7db0e67c497aaa92ed3280a386be">${BIGDATA_DATA_HOME}</span></strong><strong id="mrs_01_1665__a2930a415701b4681bf6be6bf47e71749">/namenode-nfs</strong></p>
|
|
</p></li><li id="mrs_01_1665__lec43b294c00f4b179caab0db29a6ee80"><span>Perform <a href="#mrs_01_1665__lff3e9b51a9354f89ab59a1c515495818">2</a> to <a href="#mrs_01_1665__lbb64192db9814446b3744fcbf6326d7b">4</a> on the standby NameNode.</span><p><div class="note" id="mrs_01_1665__n2e6b829a816d41709657d631158ecee0"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_1665__a26d11bc9e6b04c3d909faf30aaed628b">The names of the shared directories (for example, <span class="filepath" id="mrs_01_1665__filepath165171200127"><b>/opt/Hadoop/NameNode</b></span>) created on the NFS server by the active and standby NameNodes must be different.</p>
|
|
</div></div>
|
|
</p></li><li id="mrs_01_1665__ld130c3e3bba5416aabd6f7166399ae11"><span>Log in to FusionInsight Manager, and choose <strong id="mrs_01_1665__b1074581875511">Cluster</strong> > <em id="mrs_01_1665__i13746818175515">Name of the desired cluster</em> > <strong id="mrs_01_1665__b1074631805514">Service</strong> > <strong id="mrs_01_1665__b107461518195514">HDFS</strong> > <strong id="mrs_01_1665__b1374610183550">Configuration</strong> > <strong id="mrs_01_1665__b16747161813559">All Configurations</strong>.</span></li><li id="mrs_01_1665__lcc2b89eab8594dc4b9bcb7a334978255"><span>In the search box, search for <strong id="mrs_01_1665__b11321958115612">dfs.namenode.name.dir</strong>, add <strong id="mrs_01_1665__b6247652151416"><span id="mrs_01_1665__tf8e5da4890964b7b8cf9116506cf3c9c">${BIGDATA_DATA_HOME}</span>/namenode-nfs</strong> to <strong id="mrs_01_1665__b103296583566">Value</strong>, and click <strong id="mrs_01_1665__b63301558155620">Save</strong>. Separate paths with commas (,).</span></li><li id="mrs_01_1665__l556fd47be4cb4881b98b52e1784bd944"><span>Click <strong id="mrs_01_1665__b8195111216579">OK</strong>. On the <strong id="mrs_01_1665__b55874428559">Dashboard</strong> tab page, choose <strong id="mrs_01_1665__b16587104215513">More</strong> > <strong id="mrs_01_1665__b15588174211558">Restart Service</strong> to restart the service.</span></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_0790.html">Using HDFS</a></div>
|
|
</div>
|
|
</div>
|
|
|