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>
74 lines
15 KiB
HTML
74 lines
15 KiB
HTML
<a name="mrs_01_0136"></a><a name="mrs_01_0136"></a>
|
|
|
|
<h1 class="topictitle1">Using File Browser on the Hue Web UI</h1>
|
|
<div id="body1598413142229"><div class="section" id="mrs_01_0136__s8e39a2a37ddf4c6ea949563aa39df031"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_0136__p07691152103711">Users can use the Hue web UI to manage files in HDFS.</p>
|
|
<div class="caution" id="mrs_01_0136__note355018810224"><span class="cautiontitle"><img src="public_sys-resources/caution_3.0-en-us.png"> </span><div class="cautionbody"><p id="mrs_01_0136__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>
|
|
<div class="section" id="mrs_01_0136__section66894515326"><h4 class="sectiontitle">Accessing File Browser</h4><ol id="mrs_01_0136__ol5724487415333"><li id="mrs_01_0136__li11808133617276"><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_0136__li2662927115333"><span>In the left navigation pane, click <span><img id="mrs_01_0136__image19465429133813" src="en-us_image_0000001296090492.png"></span>. The <span class="parmname" id="mrs_01_0136__parmname6860361494"><b>File Browser</b></span> page is displayed.</span><p><p id="mrs_01_0136__p6218674415333">By default, the homepage of <span class="parmname" id="mrs_01_0136__parmname3673580015333"><b>File Browser</b></span> is the home directory of the current login user. On the displayed page, the following information about subdirectories for files in the directory is displayed:</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_0136__table4344895415333" frame="border" border="1" rules="all"><caption><b>Table 1 </b>HDFS file attributes </caption><thead align="left"><tr id="mrs_01_0136__row4324098615333"><th align="left" class="cellrowborder" valign="top" width="30.259999999999998%" id="mcps1.3.2.2.2.2.2.2.3.1.1"><p id="mrs_01_0136__p5244785615333">Attribute</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="69.74000000000001%" id="mcps1.3.2.2.2.2.2.2.3.1.2"><p id="mrs_01_0136__p2041794715333">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_0136__row3939615315333"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.2.2.2.2.2.2.3.1.1 "><p id="mrs_01_0136__p4862183015333">Name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.2.2.2.2.2.2.3.1.2 "><p id="mrs_01_0136__p4605411915333">Name of a directory or file</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_0136__row4062230615333"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.2.2.2.2.2.2.3.1.1 "><p id="mrs_01_0136__p3697181115333">Size</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.2.2.2.2.2.2.3.1.2 "><p id="mrs_01_0136__p4192673415333">File size</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_0136__row4137987115333"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.2.2.2.2.2.2.3.1.1 "><p id="mrs_01_0136__p207245315333">User</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.2.2.2.2.2.2.3.1.2 "><p id="mrs_01_0136__p3365104215333">Owner of a directory or file</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_0136__row5652215215333"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.2.2.2.2.2.2.3.1.1 "><p id="mrs_01_0136__p6343523615333">Group</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.2.2.2.2.2.2.3.1.2 "><p id="mrs_01_0136__p3798050615333">Group of a directory or file</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_0136__row6065221515333"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.2.2.2.2.2.2.3.1.1 "><p id="mrs_01_0136__p1489163915333">Permission</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.2.2.2.2.2.2.3.1.2 "><p id="mrs_01_0136__p6537214315333">Permission of a directory or file</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_0136__row1543296115333"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.2.2.2.2.2.2.3.1.1 "><p id="mrs_01_0136__p1388235915333">Date</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.2.2.2.2.2.2.3.1.2 "><p id="mrs_01_0136__p5072930415333">Time when a directory or file is created</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</p></li><li id="mrs_01_0136__li2970438415333"><span>In the search box, enter a keyword. The system automatically searches directories or files in the current directory.</span></li><li id="mrs_01_0136__li6601286515333"><span>Clear the search criteria. The system displays all directories or files.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="mrs_01_0136__section62998231540"><h4 class="sectiontitle">Performing Actions</h4><ol id="mrs_01_0136__ol5608629915410"><li id="mrs_01_0136__li4979981915410"><span>On the <strong id="mrs_01_0136__b15762134815289">File Browser</strong> page, select one or more directories or files.</span></li><li id="mrs_01_0136__li5097105315410"><span>Click <span class="uicontrol" id="mrs_01_0136__uicontrol4554518815410"><b>Actions</b></span>. On the menu that is displayed, select an operation.</span><p><ul id="mrs_01_0136__ul2803307115410"><li id="mrs_01_0136__li6528165115410"><strong id="mrs_01_0136__b152934418353">Rename</strong>: renames a directory or file.</li><li id="mrs_01_0136__li2414801915410"><strong id="mrs_01_0136__b267712519351">Move</strong>: moves a file. In <span class="wintitle" id="mrs_01_0136__wintitle5332241115410"><b>Move to</b></span>, select a new directory and click <span class="uicontrol" id="mrs_01_0136__uicontrol1013965315410"><b>Move</b></span>.</li><li id="mrs_01_0136__li983249915410"><strong id="mrs_01_0136__b6709113833510">Copy</strong>: copies the selected files or directories.</li><li id="mrs_01_0136__li5313091815410"><strong id="mrs_01_0136__b772810469350">Change permissions</strong>: changes permission to access the selected directory or file.<ul id="mrs_01_0136__ul3572959715410"><li id="mrs_01_0136__li4048708515410">You can grant the owner, the group, or other users with the <span class="parmvalue" id="mrs_01_0136__parmvalue5823496415410"><b>Read</b></span>, <span class="parmvalue" id="mrs_01_0136__parmvalue5435263215410"><b>Write</b></span>, and <span class="parmvalue" id="mrs_01_0136__parmvalue1941164515410"><b>Execute</b></span> permissions.</li><li id="mrs_01_0136__li5822843815410"><span class="parmvalue" id="mrs_01_0136__parmvalue13139548194519"><b>Sticky</b></span>: indicates that only HDFS administrators, directory owners, and file owners can move files in the directory.</li><li id="mrs_01_0136__li1888303615410"><span class="parmvalue" id="mrs_01_0136__parmvalue5429389815410"><b>Recursive</b></span>: indicates that permission is granted to subdirectories recursively.</li></ul>
|
|
</li><li id="mrs_01_0136__li5531056815410"><strong id="mrs_01_0136__b1232955811355">Storage policies</strong>: indicates the policies for storing files or directories in HDFS.</li><li id="mrs_01_0136__li52658332163558"><strong id="mrs_01_0136__b1448835163612">Summary</strong>: indicates that the HDFS storage information about the selected file or directory can be viewed.</li></ul>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="mrs_01_0136__section5192645015514"><h4 class="sectiontitle">Uploading User Files</h4><ol id="mrs_01_0136__ol2509437515519"><li id="mrs_01_0136__li4731510015519"><span>On the <strong id="mrs_01_0136__b3200113653817">File Browser</strong> page, click <span class="uicontrol" id="mrs_01_0136__uicontrol1271377315519"><b>Upload</b></span>.</span></li><li id="mrs_01_0136__li4007096615519"><span>In the displayed dialog box for uploading files, click <strong id="mrs_01_0136__b7158205411397">Select files</strong> or drag the file to the dialog box.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="mrs_01_0136__section179653215528"><h4 class="sectiontitle">Creating a New File or Directory</h4><ol id="mrs_01_0136__ol5885780115532"><li id="mrs_01_0136__li1552358215532"><span>On the <strong id="mrs_01_0136__b197931642134014">File Browser</strong> page, click <span class="uicontrol" id="mrs_01_0136__uicontrol5392062515532"><b>New</b></span>.</span></li><li id="mrs_01_0136__li6619207915532"><span>Select an operation.</span><p><ul id="mrs_01_0136__ul3718083715532"><li id="mrs_01_0136__li4240259415532"><strong id="mrs_01_0136__b1669516207366">File</strong>: creates a file. Enter a file name and click <span class="uicontrol" id="mrs_01_0136__uicontrol4945064215532"><b>Create</b></span>.</li><li id="mrs_01_0136__li4141390615532"><strong id="mrs_01_0136__b18542326143613">Directory</strong>: creates a directory. Enter a directory name and click <span class="uicontrol" id="mrs_01_0136__uicontrol1205808515532"><b>Create</b></span>.</li></ul>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="mrs_01_0136__section1285533215178"><h4 class="sectiontitle">Storage Policy Definition and Usage</h4><div class="note" id="mrs_01_0136__n15b25d7ef75249ebade91127ef5d9786"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_0136__a0b019eac34884353aa1d638920207909">If the value of Hue parameter <span class="parmname" id="mrs_01_0136__p13ae91ca343d49779d3753dcfb6fb046"><b>fs_defaultFS</b></span> is set to <span class="parmvalue" id="mrs_01_0136__pb8fa0b6f41c249b19f2614ce4d08502f"><b>viewfs://ClusterX</b></span>, the big data storage policy cannot be enabled.</p>
|
|
</div></div>
|
|
<p id="mrs_01_0136__p85122213912"></p>
|
|
<ol id="mrs_01_0136__ol1643191561014"><li id="mrs_01_0136__li64317157103"><span>Log in to FusionInsight Manager.</span></li><li id="mrs_01_0136__li279017394416"><a name="mrs_01_0136__li279017394416"></a><a name="li279017394416"></a><span>On FusionInsight Manager, choose <span class="menucascade" id="mrs_01_0136__menucascade8790153912414"><b><span class="uicontrol" id="mrs_01_0136__uicontrol2790639047">System</span></b> > <b><span class="uicontrol" id="mrs_01_0136__uicontrol179016391744">Permission > Manage Role</span></b> > <b><span class="uicontrol" id="mrs_01_0136__uicontrol179063915419">Create Role</span></b></span>.</span><p><ol type="a" id="mrs_01_0136__ol19908642941"><li id="mrs_01_0136__li1372104920420">Set <span class="parmname" id="mrs_01_0136__parmname637214491546"><b>Role Name</b></span>.</li><li id="mrs_01_0136__li1631774411412">In the <span class="wintitle" id="mrs_01_0136__wintitle461891333617"><b>Configure Resource Permission</b></span> area, choose <em id="mrs_01_0136__i1821518912468">Name of the desired cluster</em> > <strong id="mrs_01_0136__b15640131374614">Hue</strong>, select <strong id="mrs_01_0136__b9402201994618">Storage Policy Admin</strong>, and click <strong id="mrs_01_0136__b112261325144610">OK</strong>. Then, grant the permission to the role.</li></ol>
|
|
</p></li><li id="mrs_01_0136__li1531874419141"><a name="mrs_01_0136__li1531874419141"></a><a name="li1531874419141"></a><span>Choose <strong id="mrs_01_0136__b1319314338479">System</strong> > <strong id="mrs_01_0136__b1493753434717">Permission</strong> > <strong id="mrs_01_0136__b1496543654712">User Group</strong> > <strong id="mrs_01_0136__b1221013924720">Create User Group</strong>. Set <span class="parmname" id="mrs_01_0136__parmname17318244121411"><b>Group Name</b></span> and click <strong id="mrs_01_0136__b986619613479">Select and Add Role</strong> next to <strong id="mrs_01_0136__b1086612624711">Role</strong>. On the displayed page, select the role created in <a href="#mrs_01_0136__li279017394416">2</a> and click <span class="uicontrol" id="mrs_01_0136__uicontrol1831804414147"><b>OK</b></span> to add the role to the group.</span></li><li id="mrs_01_0136__li107181338865"><span>Choose <strong id="mrs_01_0136__b289821184813">System</strong> > <strong id="mrs_01_0136__b290341113489">Permission</strong> > <strong id="mrs_01_0136__b090571144812">User</strong> > <strong id="mrs_01_0136__b090510115484">Create</strong>.</span><p><ol type="a" id="mrs_01_0136__ol18144184315610"><li id="mrs_01_0136__li07907491266"><strong id="mrs_01_0136__b480624124010">Username</strong>: Enter the name of the user to be added.</li><li id="mrs_01_0136__li17125128972">Set <span class="parmname" id="mrs_01_0136__parmname131261481710"><b>User Type</b></span> to <span class="parmvalue" id="mrs_01_0136__parmvalue8126118172"><b>Human-machine</b></span>.</li><li id="mrs_01_0136__li1697101511711">Set <span class="parmname" id="mrs_01_0136__parmname14971161519720"><b>Password</b></span> and <span class="parmname" id="mrs_01_0136__parmname16971715074"><b>Confirm Password</b></span> for logging in to the Hue web UI.</li><li id="mrs_01_0136__li14295925772">Click <strong id="mrs_01_0136__b17385185813527">Add</strong> next to <strong id="mrs_01_0136__b218712115318">User Group</strong>. On the page that is displayed, select the user group created in <a href="#mrs_01_0136__li1531874419141">3</a>, <strong id="mrs_01_0136__b17771171119534">supergroup</strong>, <strong id="mrs_01_0136__b2047691314539">hadoop</strong>, and <strong id="mrs_01_0136__b2089241815531">hive</strong>, and click <strong id="mrs_01_0136__b4569102045319">OK</strong>.</li><li id="mrs_01_0136__li1784211272713">Set <strong id="mrs_01_0136__b16296142655319">Primary Group</strong> to <strong id="mrs_01_0136__b18858731155319">hive</strong>.</li><li id="mrs_01_0136__li747115491711">Click <strong id="mrs_01_0136__b103393388538">Add</strong> on the right of <strong id="mrs_01_0136__b289174125312">Role</strong>. On the page that is displayed, select the role created in <a href="#mrs_01_0136__li279017394416">2</a> and <strong id="mrs_01_0136__b1728210465535">System_administrator</strong> role, and click <strong id="mrs_01_0136__b1811911497531">OK</strong>.</li><li id="mrs_01_0136__li1831874416146">Click <span class="uicontrol" id="mrs_01_0136__uicontrol0318154415141"><b>OK</b></span>. The user is added successfully.</li></ol>
|
|
</p></li><li id="mrs_01_0136__li173188444145"><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_0136__li1731834451419"><span>In the left navigation tree, click <span><img id="mrs_01_0136__image16162513204016" src="en-us_image_0000001349170229.png"></span>. The <span class="parmname" id="mrs_01_0136__parmname518011212409"><b>File Browser</b></span> page is displayed.</span></li><li id="mrs_01_0136__li1631854461414"><span>Select the check box of the directory and click <span class="uicontrol" id="mrs_01_0136__uicontrol1069814528264"><b>Actions</b></span> on the top of the page. Choose <span class="parmvalue" id="mrs_01_0136__parmvalue1869875215269"><b>Storage policies</b></span>.</span></li><li id="mrs_01_0136__li1231813448147"><span>In the dialog box that is displayed, set a new storage policy and click <strong id="mrs_01_0136__b16330458551">OK</strong>.</span></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_0130.html">Using Hue (MRS 3.x or Later)</a></div>
|
|
</div>
|
|
</div>
|
|
|