Yang, Tong 6182f91ba8 MRS component operation guide_normal 2.0.38.SP20 version
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>
2022-12-09 14:55:21 +00:00

151 lines
26 KiB
HTML

<a name="mrs_01_0139"></a><a name="mrs_01_0139"></a>
<h1 class="topictitle1">HDFS on Hue</h1>
<div id="body1598413146607"><p id="mrs_01_0139__a5534209d8dc14173acad83522e6d3a36">Hue provides the file browser function for users to use HDFS in GUI mode.</p>
<div class="caution" id="mrs_01_0139__note12618194915138"><span class="cautiontitle"><img src="public_sys-resources/caution_3.0-en-us.png"> </span><div class="cautionbody"><p id="mrs_01_0139__en-us_topic_0264266662_p02781117181714">The Hue page is used to view and analyze data such as files and tables. Do not perform high-risk management operations such as deleting objects on the page. If an operation is required, you are advised to perform the operation on each component after confirming that the operation has no impact on services. For example, you can use the HDFS client to perform operations on HDFS files and use the Hive client to perform operations on Hive tables.</p>
</div></div>
<div class="section" id="mrs_01_0139__sb87758e0a6b04d26a890862be1ce8e54"><h4 class="sectiontitle">How to Use File Browser</h4><p id="mrs_01_0139__p147739295270">Access the Hue web UI. For details, see <a href="mrs_01_0132.html">Accessing the Hue Web UI</a>.</p>
<p id="mrs_01_0139__p195455464411">Click <span><img id="mrs_01_0139__image141581818151917" src="en-us_image_0000001349090345.png"></span>. The <strong id="mrs_01_0139__b9667204510235">File Browser</strong> page is displayed. You can perform the following operations:</p>
</div>
<ul id="mrs_01_0139__u8b2312982e094dfca917d62e6a7001a2"><li id="mrs_01_0139__l6c376e7235954b50ace38de2868e83a6">Viewing files or directories<p id="mrs_01_0139__a3dbdbaa61ab0467396afddbde1adad54"><a name="mrs_01_0139__l6c376e7235954b50ace38de2868e83a6"></a><a name="l6c376e7235954b50ace38de2868e83a6"></a>By default, the directory and files in the directory of the login user are displayed. You can view <span class="parmname" id="mrs_01_0139__parmname1063151617185"><b>Name</b></span>, <span class="parmname" id="mrs_01_0139__p78184ca384144648a67602c6ff5093d9"><b>Size</b></span>, <span class="parmname" id="mrs_01_0139__p5fb70810bd314ee69c166a771747be1d"><b>User</b></span>, <span class="parmname" id="mrs_01_0139__pdf9b88ffe92c44b08f01c80b5086c681"><b>Group</b></span>,<span class="parmname" id="mrs_01_0139__pcc1f0bf729a64d7cae8bf089c8f75367"><b>Permission</b></span>, and <span class="parmname" id="mrs_01_0139__p114cacc9aae94d0897abf1414277fbcb"><b>Date</b></span>.</p>
<p id="mrs_01_0139__a97edd01002a1425880482c643ab0936b">Click a file name to view the text information or binary data in the text file. The file content can be edited.</p>
<p id="mrs_01_0139__a76623dc2e58b4518898cfcbc734de4a3">If there are a large number of files and directories, you can enter keywords in the search text box to search for specific files or directories.</p>
</li><li id="mrs_01_0139__l823256df5da24bd78450a913f6bc8c2d">Creating files or directories<p id="mrs_01_0139__ab6ef148f0be340fdbba6cb720c36a9aa"><a name="mrs_01_0139__l823256df5da24bd78450a913f6bc8c2d"></a><a name="l823256df5da24bd78450a913f6bc8c2d"></a>Click <span class="uicontrol" id="mrs_01_0139__u8a738585d76a422b938285e635c2f27c"><b>New</b></span> in the upper right corner. Choose <span class="uicontrol" id="mrs_01_0139__u32ab7ed214504d019f1f6557840c88b0"><b>File</b></span> to create the file. Choose <span class="uicontrol" id="mrs_01_0139__u0da3ec7057f9441692ffd8f0656a31ed"><b>Directory</b></span> to create a directory.</p>
</li><li id="mrs_01_0139__l812e770e7e3d448b9b80074494f75a15">Managing files or directories<p id="mrs_01_0139__a89754b2a5e754f8e8f086131e8b7f461"><a name="mrs_01_0139__l812e770e7e3d448b9b80074494f75a15"></a><a name="l812e770e7e3d448b9b80074494f75a15"></a>Select the check box of a file or director, and click <strong id="mrs_01_0139__b4158093210">Actions</strong>. In the displayed menu, choose <span class="uicontrol" id="mrs_01_0139__u9324c26ac05b46009cd967de6df64f0e"><b>Rename</b></span>, <span class="uicontrol" id="mrs_01_0139__u1adbf37545ce492583671076c6134200"><b>Move</b></span>, <span class="uicontrol" id="mrs_01_0139__uff2f930e50ea46e78187d49248bfd0f7"><b>Copy</b></span>, and <span class="uicontrol" id="mrs_01_0139__uicontrol143551348102019"><b>Change permissions</b></span> to rename, move, copy, or change the file or directory permissions.</p>
</li><li id="mrs_01_0139__la7fc492e14fe401da5a02e3c1f08dfd8">Uploading files<p id="mrs_01_0139__aa7bd186712484f0b8af1c7f85ee3fa39"><a name="mrs_01_0139__la7fc492e14fe401da5a02e3c1f08dfd8"></a><a name="la7fc492e14fe401da5a02e3c1f08dfd8"></a>Click <span class="uicontrol" id="mrs_01_0139__uba6be93a957a42e9ad63a05344c8eea7"><b>Upload</b></span> in the upper right corner and click <strong id="mrs_01_0139__b83572064249">Select files</strong> or drag the file to the window.</p>
</li></ul>
<div class="section" id="mrs_01_0139__s0627974a2ebf4c8592ca09d0cf13f416"><h4 class="sectiontitle">How to Use Storage Policies</h4><div class="note" id="mrs_01_0139__n15b25d7ef75249ebade91127ef5d9786"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_0139__a0b019eac34884353aa1d638920207909">If the value of Hue parameter <span class="parmname" id="mrs_01_0139__p13ae91ca343d49779d3753dcfb6fb046"><b>fs_defaultFS</b></span> is set to <span class="parmvalue" id="mrs_01_0139__pb8fa0b6f41c249b19f2614ce4d08502f"><b>viewfs://ClusterX</b></span>, the big data storage policy cannot be enabled.</p>
</div></div>
<p id="mrs_01_0139__a9f9fc2be7c2e4990ab8c498d71122fe2"><strong id="mrs_01_0139__b153265310815">Storage policies on the Hue web UI are classified into the following two types:</strong></p>
<ul id="mrs_01_0139__u1cfad4f0555e4df09c647d76b10101fd"><li id="mrs_01_0139__le6ac343eef5c4d81a35dca2b514a9758">Static Storage Policies<p id="mrs_01_0139__p132199241397"><a name="mrs_01_0139__le6ac343eef5c4d81a35dca2b514a9758"></a><a name="le6ac343eef5c4d81a35dca2b514a9758"></a>Current storage policy</p>
<p id="mrs_01_0139__p17631737185412">According to the access frequency and importance of documents in HDFS, specify a storage policy for an HDFS directory, such as ONE_SSD or ALL_SSD. The files in this directory can be migrated to the storage media.</p>
</li><li id="mrs_01_0139__lf67b4ce998a8408c802f36dfcc913482">Dynamic Storage Policies<p id="mrs_01_0139__a1c8f4ebe4ae04f499fe3605c6ea1b6f5"><a name="mrs_01_0139__lf67b4ce998a8408c802f36dfcc913482"></a><a name="lf67b4ce998a8408c802f36dfcc913482"></a>Set rules for an HDFS directory. The system can automatically change the storage policy, the number of file copies, migrate the file directory..</p>
<p id="mrs_01_0139__p33997374130">Before configuring a dynamic storage policy on the Hue WebUI, you must set the CRON expressions for cold and hot data migration and start automatic cold and hot data migration on Manager.</p>
<p id="mrs_01_0139__a4ec26c290b2d41c5926e8eb738a730fe">Operations:</p>
<p id="mrs_01_0139__p14672135613812">Modify the following NameNode parameters of HDFS. For details, see <a href="mrs_01_2125.html">Modifying Cluster Service Configuration Parameters</a>.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_0139__table1714002612211" frame="border" border="1" rules="all"><thead align="left"><tr id="mrs_01_0139__row1014012261228"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.5.4.2.5.1.4.1.1"><p id="mrs_01_0139__p121402261425">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="48.874887488748875%" id="mcps1.3.5.4.2.5.1.4.1.2"><p id="mrs_01_0139__p1914116262026">Description</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.791779177917793%" id="mcps1.3.5.4.2.5.1.4.1.3"><p id="mrs_01_0139__p4141162617213">Example Value</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_0139__row114114261828"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.5.4.2.5.1.4.1.1 "><p id="mrs_01_0139__p61416261024">dfs.auto.data.mover.enable</p>
</td>
<td class="cellrowborder" valign="top" width="48.874887488748875%" headers="mcps1.3.5.4.2.5.1.4.1.2 "><p id="mrs_01_0139__p16141926622">Whether to enable automatic hot and cold data migration. The default value is <strong id="mrs_01_0139__b696013115303">false</strong>.</p>
</td>
<td class="cellrowborder" valign="top" width="17.791779177917793%" headers="mcps1.3.5.4.2.5.1.4.1.3 "><p id="mrs_01_0139__p151411026726">true</p>
</td>
</tr>
<tr id="mrs_01_0139__row131412261023"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.5.4.2.5.1.4.1.1 "><p id="mrs_01_0139__p314172614219">dfs.auto.data.mover.cron.expression</p>
</td>
<td class="cellrowborder" valign="top" width="48.874887488748875%" headers="mcps1.3.5.4.2.5.1.4.1.2 "><p id="mrs_01_0139__p1014132617216">CRON expression for hot and cold data migration in HDFS, which is used to control the start time of data migration. This parameter is available only when <strong id="mrs_01_0139__b164138777542758">dfs.auto.data.mover.enable</strong> is set to <strong id="mrs_01_0139__b210988932042758">true</strong>. The default value is <strong id="mrs_01_0139__b112836542142758">0 * * * *</strong>, indicating that the task is executed on the hour.</p>
</td>
<td class="cellrowborder" valign="top" width="17.791779177917793%" headers="mcps1.3.5.4.2.5.1.4.1.3 "><p id="mrs_01_0139__p714118265217">0 * * * *</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="mrs_01_0139__a63fed4a31ab54e018d01338b69efaca0"><a href="#mrs_01_0139__t91112612806f4a4593c025e032e333ff">Table 1</a> describes the expression for modifying the <strong id="mrs_01_0139__b1257911463518">dfs.auto.data.mover.cron.expression</strong> parameter. <span class="parmname" id="mrs_01_0139__peef132c72aa342beab887594a9090469"><b>*</b></span> indicates consecutive time segments.</p>
<div class="tablenoborder"><a name="mrs_01_0139__t91112612806f4a4593c025e032e333ff"></a><a name="t91112612806f4a4593c025e032e333ff"></a><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_0139__t91112612806f4a4593c025e032e333ff" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters in the execution expression</caption><thead align="left"><tr id="mrs_01_0139__r65e7aa5a86244dcaa6eb1428cdc861a0"><th align="left" class="cellrowborder" valign="top" width="34.589999999999996%" id="mcps1.3.5.4.2.7.2.3.1.1"><p id="mrs_01_0139__a94657044056543f598c8c29be021b97d">Column</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="65.41%" id="mcps1.3.5.4.2.7.2.3.1.2"><p id="mrs_01_0139__adb7a0ffbbb374c89b3f8d03fbadc1300">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_0139__rd17d76e7890d4ff2b65e6d32b3ab497f"><td class="cellrowborder" valign="top" width="34.589999999999996%" headers="mcps1.3.5.4.2.7.2.3.1.1 "><p id="mrs_01_0139__a0f1de68323234872b4d757d773e2531b">1</p>
</td>
<td class="cellrowborder" valign="top" width="65.41%" headers="mcps1.3.5.4.2.7.2.3.1.2 "><p id="mrs_01_0139__a695e21a312d74a3ea400ae2ee9dc9d17">Minute. The value ranges from 0 to 59.</p>
</td>
</tr>
<tr id="mrs_01_0139__r5d217aad88744982bc67cd206a8266ed"><td class="cellrowborder" valign="top" width="34.589999999999996%" headers="mcps1.3.5.4.2.7.2.3.1.1 "><p id="mrs_01_0139__ae7b8c0b77ea44748a8d34267e6816235">2</p>
</td>
<td class="cellrowborder" valign="top" width="65.41%" headers="mcps1.3.5.4.2.7.2.3.1.2 "><p id="mrs_01_0139__ae4f0da2fd66f4511a673e18e7647b1a3">Hour. The value ranges from 0 to 23.</p>
</td>
</tr>
<tr id="mrs_01_0139__radb5b952553547f8a2831d444b43e066"><td class="cellrowborder" valign="top" width="34.589999999999996%" headers="mcps1.3.5.4.2.7.2.3.1.1 "><p id="mrs_01_0139__adddb9ea2f6d946518c7717cd2f184aac">3</p>
</td>
<td class="cellrowborder" valign="top" width="65.41%" headers="mcps1.3.5.4.2.7.2.3.1.2 "><p id="mrs_01_0139__a2a24bd3df9754bccb92d0b1d806e5bc8">Date. The value ranges from 1 to 31.</p>
</td>
</tr>
<tr id="mrs_01_0139__r14cffae84f884f148cbb720343c63c55"><td class="cellrowborder" valign="top" width="34.589999999999996%" headers="mcps1.3.5.4.2.7.2.3.1.1 "><p id="mrs_01_0139__a2d133202ab0248a0a0e0ccc2f99a8f55">4</p>
</td>
<td class="cellrowborder" valign="top" width="65.41%" headers="mcps1.3.5.4.2.7.2.3.1.2 "><p id="mrs_01_0139__ac9182e34800d41a480744742663dfa88">Month. The value ranges from 1 to 12.</p>
</td>
</tr>
<tr id="mrs_01_0139__r34b3328dd68d4e868782805dfa192dab"><td class="cellrowborder" valign="top" width="34.589999999999996%" headers="mcps1.3.5.4.2.7.2.3.1.1 "><p id="mrs_01_0139__a4392e57000354273904a2f7915c80f54">5</p>
</td>
<td class="cellrowborder" valign="top" width="65.41%" headers="mcps1.3.5.4.2.7.2.3.1.2 "><p id="mrs_01_0139__ad970285cd35049cda5021b0c0ea9fdb6">Week. The value ranges from 0 to 6. <strong id="mrs_01_0139__b10638452181420">0</strong> indicates Sunday.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
<p id="mrs_01_0139__ad355e8d05f234fe9b6ad78b4d4593603"><strong id="mrs_01_0139__b577125713145">To set storage policies on the web UI, perform the following operations:</strong></p>
<ol id="mrs_01_0139__ol650918123331"><li id="mrs_01_0139__li13533607104"><span>Log in to FusionInsight Manager. For details, see <a href="mrs_01_2124.html">Accessing FusionInsight Manager (MRS 3.x or Later)</a>.</span></li></ol><ol start="2" id="mrs_01_0139__oda77a7baa4c14244bb98b12cadcc7d20"><li id="mrs_01_0139__li0303144818353"><a name="mrs_01_0139__li0303144818353"></a><a name="li0303144818353"></a><span>On FusionInsight Manager, choose <span class="menucascade" id="mrs_01_0139__en-us_topic_0272686981_menucascade8790153912414"><b><span class="uicontrol" id="mrs_01_0139__en-us_topic_0272686981_uicontrol2790639047">System</span></b> &gt; <b><span class="uicontrol" id="mrs_01_0139__en-us_topic_0272686981_uicontrol179016391744">Permission &gt; Role</span></b> &gt; <b><span class="uicontrol" id="mrs_01_0139__en-us_topic_0272686981_uicontrol179063915419">Create Role</span></b></span>.</span><p><ol type="a" id="mrs_01_0139__en-us_topic_0272686981_ol19908642941"><li id="mrs_01_0139__en-us_topic_0272686981_li1372104920420">Set <span class="parmname" id="mrs_01_0139__en-us_topic_0272686981_parmname637214491546"><b>Role Name</b></span>.</li><li id="mrs_01_0139__en-us_topic_0272686981_li1631774411412">In the <span class="wintitle" id="mrs_01_0139__en-us_topic_0272686981_wintitle461891333617"><b>Configure Resource Permission</b></span> area, choose <em id="mrs_01_0139__i25625440255">Name of the desired cluster</em> &gt; <strong id="mrs_01_0139__b1556254432519">Hue</strong>, select <strong id="mrs_01_0139__b156314412251">Storage Policy Admin</strong>, and click <span class="uicontrol" id="mrs_01_0139__en-us_topic_0272686981_uicontrol43171044191411"><b>OK</b></span>. Then, grant the permission to the role.</li></ol>
</p></li><li id="mrs_01_0139__lad19ed90dd11448a8fc79c41d59f7cb1"><a name="mrs_01_0139__lad19ed90dd11448a8fc79c41d59f7cb1"></a><a name="lad19ed90dd11448a8fc79c41d59f7cb1"></a><span>Choose <strong id="mrs_01_0139__b98561952191810">System</strong> &gt; <strong id="mrs_01_0139__b17862145211184">Permission</strong> &gt; <strong id="mrs_01_0139__b58634528181">User Group</strong> &gt; <strong id="mrs_01_0139__b1186418525186">Create User Group</strong>. Set <span class="parmname" id="mrs_01_0139__p1ff829af05b948e19ef78b5f1217638a"><b>Group Name</b></span>, and click <strong id="mrs_01_0139__b10865175211180">Add</strong> next to <strong id="mrs_01_0139__b12865852101818">Role</strong>. On the displayed page, select the created role, click <span class="uicontrol" id="mrs_01_0139__u58daa1c0aaad4181a324feb2e50e76d2"><b>OK</b></span> to add the role to the group, and click <strong id="mrs_01_0139__b36527416309">OK</strong>.</span></li><li id="mrs_01_0139__li121818284818"><span>Choose <strong id="mrs_01_0139__b11522113911196">System</strong> &gt; <strong id="mrs_01_0139__b85271539181914">Permission</strong> &gt; <strong id="mrs_01_0139__b6527113917198">User</strong> &gt; <strong id="mrs_01_0139__b3527123913193">Create</strong>.</span><p><ol type="a" id="mrs_01_0139__en-us_topic_0272686981_ol18144184315610"><li id="mrs_01_0139__en-us_topic_0272686981_li07907491266"><span class="parmname" id="mrs_01_0139__en-us_topic_0272686981_parmname1979064914620"><b>Username</b></span>: Enter the name of the user to be added.</li><li id="mrs_01_0139__en-us_topic_0272686981_li17125128972">Set <span class="parmname" id="mrs_01_0139__en-us_topic_0272686981_parmname131261481710"><b>User Type</b></span> to <span class="parmvalue" id="mrs_01_0139__parmvalue181581763217"><b>Human-machine</b></span>.</li><li id="mrs_01_0139__en-us_topic_0272686981_li1697101511711">Set <span class="parmname" id="mrs_01_0139__en-us_topic_0272686981_parmname14971161519720"><b>Password</b></span> and <span class="parmname" id="mrs_01_0139__en-us_topic_0272686981_parmname16971715074"><b>Confirm Password</b></span> for logging in to the Hue web UI.</li><li id="mrs_01_0139__en-us_topic_0272686981_li14295925772">Click <strong id="mrs_01_0139__b18666149183318">Add</strong> next to <strong id="mrs_01_0139__b116713920334">User Group</strong>. On the page that is displayed, select the created user group in <a href="#mrs_01_0139__lad19ed90dd11448a8fc79c41d59f7cb1">3</a>, <strong id="mrs_01_0139__b0672995335">supergroup</strong>, <strong id="mrs_01_0139__b1167217913339">hadoop</strong>, and <strong id="mrs_01_0139__b667289173316">hive</strong>, and click <strong id="mrs_01_0139__b4672295332">OK</strong>.</li><li id="mrs_01_0139__en-us_topic_0272686981_li1784211272713">Set <span class="parmname" id="mrs_01_0139__en-us_topic_0272686981_parmname254019322076"><b>Primary Group</b></span> to <strong id="mrs_01_0139__b1750504710331">hive</strong>.</li><li id="mrs_01_0139__en-us_topic_0272686981_li747115491711">Click <strong id="mrs_01_0139__b169301419183417">Add</strong> next to <strong id="mrs_01_0139__b1493591933418">Role</strong>. On the page that is displayed, select the created role in <a href="#mrs_01_0139__li0303144818353">2</a> and the <strong id="mrs_01_0139__b2935161943412">System_administrator</strong> role, and click <strong id="mrs_01_0139__b12935111933412">OK</strong>.</li><li id="mrs_01_0139__en-us_topic_0272686981_li1831874416146">Click <span class="uicontrol" id="mrs_01_0139__en-us_topic_0272686981_uicontrol0318154415141"><b>OK</b></span>. The user is added successfully.</li></ol>
</p></li><li id="mrs_01_0139__l789343721960447eafebafdfe1801c8d"><span>Access the Hue web UI as the created user. For details, see <a href="mrs_01_0132.html">Accessing the Hue Web UI</a>.</span></li><li id="mrs_01_0139__l51de9086fe414132ba76cfda090cfc3a"><span>In the left navigation pane, click <span><img id="mrs_01_0139__image13689043153010" src="en-us_image_0000001296090504.png"></span>. The <span class="parmname" id="mrs_01_0139__parmname1368911436308"><b>File Browser</b></span> page is displayed.</span></li><li id="mrs_01_0139__l96a22e64908f4ba7928bed6b725ce814"><span>Select the check box of a directory and choose <span class="uicontrol" id="mrs_01_0139__uicontrol15411215174113"><b>Action</b></span> on the top of the page. Choose <span class="parmvalue" id="mrs_01_0139__parmvalue17431055194218"><b>Storage policies</b></span>.</span></li><li id="mrs_01_0139__l8f3b50e361e6409080086abd704e7f0f"><span>In the dialog box that is displayed, set a new storage policy and click <strong id="mrs_01_0139__b158941955202317">OK</strong>.</span><p><ul id="mrs_01_0139__uec05ebcb43ed4f26844179a953a5f788"><li id="mrs_01_0139__li18375644567">On the <strong id="mrs_01_0139__b1412311591147">Static Storage Policy</strong> page, you can set a static storage policy and click <strong id="mrs_01_0139__b1741181311520">Save</strong>.</li><li id="mrs_01_0139__lc7e33017cb7849d68b5bd24c2685c21e">On the <span class="wintitle" id="mrs_01_0139__wdf6d13b9dbdb4ccc98ba0861a4b90b5c"><b>Dynamic Storage Policy</b></span> page, you can create, delete, or modify a dynamic storage policy. <a href="#mrs_01_0139__td571837c121649f3b7d9966840d79a91">Table 2</a> describes the parameters.
<div class="tablenoborder"><a name="mrs_01_0139__td571837c121649f3b7d9966840d79a91"></a><a name="td571837c121649f3b7d9966840d79a91"></a><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_0139__td571837c121649f3b7d9966840d79a91" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameters of the dynamic storage policy</caption><thead align="left"><tr id="mrs_01_0139__r848f985306914373a6fac3b007c9e350"><th align="left" class="cellrowborder" valign="top" width="17.48%" id="mcps1.3.5.7.7.2.1.2.3.2.4.1.1"><p id="mrs_01_0139__a46dd9f152f934a40a5a8a96b64dd4671"><strong id="mrs_01_0139__b829355982418">Category</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="36.85%" id="mcps1.3.5.7.7.2.1.2.3.2.4.1.2"><p id="mrs_01_0139__a367591ca58a64826bc4cd70230d8f737">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="45.67%" id="mcps1.3.5.7.7.2.1.2.3.2.4.1.3"><p id="mrs_01_0139__a57a897ab3afd486a96c9642feeef23e7">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_0139__r33698836e9ab4d03b821a37854d9c5b8"><td class="cellrowborder" rowspan="2" valign="top" width="17.48%" headers="mcps1.3.5.7.7.2.1.2.3.2.4.1.1 "><p id="mrs_01_0139__ae97e25862a094b7f9fdf38970eb02c78">Rule</p>
</td>
<td class="cellrowborder" valign="top" width="36.85%" headers="mcps1.3.5.7.7.2.1.2.3.2.4.1.2 "><p id="mrs_01_0139__a81d2ba86e6994934b799f35c804face2">Last Access to File</p>
</td>
<td class="cellrowborder" valign="top" width="45.67%" headers="mcps1.3.5.7.7.2.1.2.3.2.4.1.3 "><p id="mrs_01_0139__ab6bca30b6284453787cd40a44f1198f3">Indicates the time when the file is last accessed.</p>
</td>
</tr>
<tr id="mrs_01_0139__r090629f5295041698f5c6a7a49a8de22"><td class="cellrowborder" valign="top" headers="mcps1.3.5.7.7.2.1.2.3.2.4.1.1 "><p id="mrs_01_0139__afef11d9a8c924077ac63fc1be0169fe2">Last File Modification</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.5.7.7.2.1.2.3.2.4.1.2 "><p id="mrs_01_0139__a57d671564be74c079b3fe03354f93a46">Indicates the time when the file is last modified.</p>
</td>
</tr>
<tr id="mrs_01_0139__rfd27046d75e4455c959838aa7392750b"><td class="cellrowborder" rowspan="3" valign="top" width="17.48%" headers="mcps1.3.5.7.7.2.1.2.3.2.4.1.1 "><p id="mrs_01_0139__a68f99ec9aefa4f3a8be4b595acc79cdb">Operation</p>
</td>
<td class="cellrowborder" valign="top" width="36.85%" headers="mcps1.3.5.7.7.2.1.2.3.2.4.1.2 "><p id="mrs_01_0139__a13636377406041a4bc23e58aeb83d18f">Change Number of Copies</p>
</td>
<td class="cellrowborder" valign="top" width="45.67%" headers="mcps1.3.5.7.7.2.1.2.3.2.4.1.3 "><p id="mrs_01_0139__aa171997d34db458abb34710f4c1add11">Indicates the number of file copies.</p>
</td>
</tr>
<tr id="mrs_01_0139__r5f9dbc24adca4ec5b82f6d108af3f1f4"><td class="cellrowborder" valign="top" headers="mcps1.3.5.7.7.2.1.2.3.2.4.1.1 "><p id="mrs_01_0139__a6bfa6633bc4649c9b469be40f64264cb">Modify Storage Policy</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.5.7.7.2.1.2.3.2.4.1.2 "><p id="mrs_01_0139__a172c58cc1fa44d62995a7cf782df32a5">Indicates that you can modify storage policies to the following: HOT, WARM, COLD, ONE_SSD, and ALL_SSD.</p>
</td>
</tr>
<tr id="mrs_01_0139__rda923dd6e8fb4ae0b374e6b9a4bb015b"><td class="cellrowborder" valign="top" headers="mcps1.3.5.7.7.2.1.2.3.2.4.1.1 "><p id="mrs_01_0139__af7685db029ed43b3bbab6eb61d66a8fd">Move to Directory</p>
</td>
<td class="cellrowborder" valign="top" headers="mcps1.3.5.7.7.2.1.2.3.2.4.1.2 "><p id="mrs_01_0139__ad2a89c3c3ff54abeaf138e57f544bb42"><span id="mrs_01_0139__ph19826133712265">Indicates that you can move the file to another directory.</span></p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="note" id="mrs_01_0139__n22c68bcc3ea14c53a5c11dabf484a8d6"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="mrs_01_0139__u96e6d4ffbf414cb4841a762cbd237b17"><li id="mrs_01_0139__l94a425bd8335498fa25d5489526f23b2">You need to consider whether the rules conflict with each other and whether the rules damage the system when setting rules. </li><li id="mrs_01_0139__lba9b6dbdaa29483e9ba5b70f44d444e8">When a directory is configured with multiple rules and operations, the rule that is triggered first is located at the bottom of the rule/operation list, and the rules that are triggered later are placed from bottom to top to prevent repeated operations.</li><li id="mrs_01_0139__l4724643dd675495ca1c540133b3a54f2">The system checks whether the files under the directory specified by the dynamic storage policy meet the rules on an hourly basis. If the files meet the rules, the execution is triggered. Execution logs are recorded in the <span class="filepath" id="mrs_01_0139__ffea9cd1bdb7d4e1c8c0fd1e1e63f9626"><b>/var/log/Bigdata/hdfs/nn/hadoop.log</b></span> directory of the active NameNode.</li></ul>
</div></div>
</li></ul>
</p></li></ol>
</div>
<div class="section" id="mrs_01_0139__s6e8dc0d14ac047f698c4fe87f3d3cdd6"><h4 class="sectiontitle">Typical Scenarios</h4><p id="mrs_01_0139__p46783883161847">On the Hue page, view and edit HDFS files in text or binary mode as follows:</p>
<p id="mrs_01_0139__a78a366ba89f04a3593d9c4cfe456c389"><strong id="mrs_01_0139__b1261053712810">Viewing a File</strong></p>
<ol id="mrs_01_0139__o4e0285c369be41669a74e268b8ecc932"><li id="mrs_01_0139__li116203741716"><span>Access the Hue web UI. For details, see <a href="mrs_01_0132.html">Accessing the Hue Web UI</a>.</span></li><li id="mrs_01_0139__li1261637121711"><span>In the left navigation pane, click <span><img id="mrs_01_0139__image176193710174" src="en-us_image_0000001295770716.png"></span>. The <span class="parmname" id="mrs_01_0139__parmname186537141715"><b>File Browser</b></span> page is displayed.</span></li><li id="mrs_01_0139__l9813168019784df4af66becdb1bc5cce"><span>Click the name of the file to be viewed.</span></li><li id="mrs_01_0139__li7161615101348"><span>Click <span class="uicontrol" id="mrs_01_0139__uicontrol6631060382221"><b>View as binary</b></span> to switch from the text mode to the binary mode. Click <span class="uicontrol" id="mrs_01_0139__uicontrol758668582231"><b>View as file</b></span> to switch from the binary mode to the text mode.</span></li></ol>
<p id="mrs_01_0139__a4de5d0dc0df54977925c1dd2e9cbe835"><strong id="mrs_01_0139__b118681011291">Editing a file</strong></p>
<ol start="5" id="mrs_01_0139__o0f7852de572f4b1c9b93bb26865b6537"><li id="mrs_01_0139__l9ccc3f899444462abe5335169caa74c9"><span>Click <span class="uicontrol" id="mrs_01_0139__uicontrol66384429174125"><b>Edit File</b></span>. The file content can be edited.</span></li><li id="mrs_01_0139__li381603310297"><span>Click <strong id="mrs_01_0139__b2790438142914">Save</strong> or <strong id="mrs_01_0139__b1679083819291">Save As</strong> to save the file.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_0138.html">Typical Scenarios</a></div>
</div>
</div>