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>
80 lines
18 KiB
HTML
80 lines
18 KiB
HTML
<a name="mrs_01_0373"></a><a name="mrs_01_0373"></a>
|
|
|
|
<h1 class="topictitle1">Using File Browser on the Hue Web UI</h1>
|
|
<div id="body1589421629525"><div class="section" id="mrs_01_0373__s8e39a2a37ddf4c6ea949563aa39df031"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_0373__p1455110329204">Users can use the Hue web UI to manage files in HDFS in a cluster.</p>
|
|
<p id="mrs_01_0373__p18497646204210">For versions earlier than MRS 1.9.2, MRS clusters with Kerberos authentication enabled support this function.</p>
|
|
<div class="caution" id="mrs_01_0373__note136141816131917"><span class="cautiontitle"><img src="public_sys-resources/caution_3.0-en-us.png"> </span><div class="cautionbody"><p id="mrs_01_0373__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_0373__section66894515326"><h4 class="sectiontitle">File Browser (File Browser)</h4><ol id="mrs_01_0373__ol5724487415333"><li id="mrs_01_0373__li11808133617276"><span>Access the Hue web UI. For details, see <a href="mrs_01_0370.html">Accessing the Hue Web UI</a>.</span></li><li id="mrs_01_0373__li2662927115333"><span>Click <span><img id="mrs_01_0373__image24161730102919" src="en-us_image_0000001349289521.png"></span>. The <span class="wintitle" id="mrs_01_0373__wintitle49811732122112"><b>File Browser</b></span> page is displayed.</span><p><p id="mrs_01_0373__p32081334152218">You can view the home directory of the current login user. </p>
|
|
<p id="mrs_01_0373__p6218674415333">On the <strong id="mrs_01_0373__b54715401118">File Browser</strong> 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_0373__table4344895415333" frame="border" border="1" rules="all"><caption><b>Table 1 </b>HDFS file attributes </caption><thead align="left"><tr id="mrs_01_0373__row4324098615333"><th align="left" class="cellrowborder" valign="top" width="30.259999999999998%" id="mcps1.3.2.2.2.2.3.2.3.1.1"><p id="mrs_01_0373__p5244785615333">Attribute</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="69.74000000000001%" id="mcps1.3.2.2.2.2.3.2.3.1.2"><p id="mrs_01_0373__p2041794715333">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_0373__row3939615315333"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.2.2.2.2.3.2.3.1.1 "><p id="mrs_01_0373__p1954517815234"><span class="parmname" id="mrs_01_0373__parmname83911715181610"><b>Name</b></span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.2.2.2.2.3.2.3.1.2 "><p id="mrs_01_0373__p4605411915333">Name of a directory or file</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_0373__row4062230615333"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.2.2.2.2.3.2.3.1.1 "><p id="mrs_01_0373__p3159815152314"><span class="parmname" id="mrs_01_0373__parmname162943184166"><b>Size</b></span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.2.2.2.2.3.2.3.1.2 "><p id="mrs_01_0373__p4192673415333">File size</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_0373__row4137987115333"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.2.2.2.2.3.2.3.1.1 "><p id="mrs_01_0373__p7762625142313"><span class="parmname" id="mrs_01_0373__parmname6868820131616"><b>User</b></span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.2.2.2.2.3.2.3.1.2 "><p id="mrs_01_0373__p3365104215333">Owner of a directory or file</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_0373__row5652215215333"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.2.2.2.2.3.2.3.1.1 "><p id="mrs_01_0373__p1922761222417"><span class="parmname" id="mrs_01_0373__parmname736014235164"><b>Group</b></span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.2.2.2.2.3.2.3.1.2 "><p id="mrs_01_0373__p3798050615333">Group of a directory or file</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_0373__row6065221515333"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.2.2.2.2.3.2.3.1.1 "><p id="mrs_01_0373__p1507132114247"><span class="parmname" id="mrs_01_0373__parmname19285192751617"><b>Permissions</b></span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.2.2.2.2.3.2.3.1.2 "><p id="mrs_01_0373__p6537214315333">Permission of a directory or file</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_0373__row1543296115333"><td class="cellrowborder" valign="top" width="30.259999999999998%" headers="mcps1.3.2.2.2.2.3.2.3.1.1 "><p id="mrs_01_0373__p897143016248"><span class="parmname" id="mrs_01_0373__parmname784517296165"><b>Date</b></span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="69.74000000000001%" headers="mcps1.3.2.2.2.2.3.2.3.1.2 "><p id="mrs_01_0373__p5072930415333">Time when a directory or file is created</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</p></li><li id="mrs_01_0373__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_0373__li6601286515333"><span>Clear the search criteria. The system displays all directories or files.</span></li></ol>
|
|
</div>
|
|
<div class="section" id="mrs_01_0373__section62998231540"><h4 class="sectiontitle">Performing Actions</h4><ol id="mrs_01_0373__ol5608629915410"><li id="mrs_01_0373__li4979981915410"><span>Click <span><img id="mrs_01_0373__image1781973192715" src="en-us_image_0000001349289525.png"></span> and select one or more directories or files.</span></li><li id="mrs_01_0373__li5097105315410"><span>Click <span class="uicontrol" id="mrs_01_0373__uicontrol683611195256"><b>Actions</b></span>. On the menu that is displayed, select an operation.</span><p><ul id="mrs_01_0373__ul2803307115410"><li id="mrs_01_0373__li6528165115410"><span class="uicontrol" id="mrs_01_0373__uicontrol163293982616"><b>Rename</b></span>: renames a directory or file.</li><li id="mrs_01_0373__li2414801915410"><span class="uicontrol" id="mrs_01_0373__uicontrol8992957162617"><b>Move</b></span>: moves a file. In <span class="wintitle" id="mrs_01_0373__wintitle17024271228"><b>Move to</b></span>, select a new directory and click <span class="uicontrol" id="mrs_01_0373__uicontrol1013965315410"><b>Move</b></span>.</li><li id="mrs_01_0373__li983249915410"><span class="uicontrol" id="mrs_01_0373__uicontrol79782982717"><b>Copy</b></span>: copies the selected files or directories.</li><li id="mrs_01_0373__li5313091815410"><span class="uicontrol" id="mrs_01_0373__uicontrol636271716284"><b>Change permissions</b></span>: changes permission to access the selected directory or file.<ul id="mrs_01_0373__ul3572959715410"><li id="mrs_01_0373__li4048708515410">You can grant the owner, the group, or other users with the <span class="parmvalue" id="mrs_01_0373__parmvalue1380322182919"><b>Read</b></span>, <span class="parmvalue" id="mrs_01_0373__parmvalue133170355299"><b>Write</b></span>, and <span class="parmvalue" id="mrs_01_0373__parmvalue56951651202920"><b>Execute</b></span> permissions. </li><li id="mrs_01_0373__li5822843815410"><span class="parmvalue" id="mrs_01_0373__parmvalue1278610168300"><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_0373__li1888303615410"><span class="parmvalue" id="mrs_01_0373__parmvalue64801136193015"><b>Recursive</b></span>: indicates that permission is granted to subdirectories recursively.</li></ul>
|
|
</li><li id="mrs_01_0373__li5531056815410"><span class="parmvalue" id="mrs_01_0373__parmvalue1352411610315"><b>Storage policies</b></span>: indicates the policies for storing files or directories in HDFS.</li><li id="mrs_01_0373__li52658332163558"><span class="parmvalue" id="mrs_01_0373__parmvalue2459722163612"><b>Summary</b></span>: indicates that you can view HDFS storage information about the selected file or directory.</li></ul>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="mrs_01_0373__section4838881415445"><h4 class="sectiontitle">Accessing Other Directories</h4><ol id="mrs_01_0373__ol4714268515450"><li id="mrs_01_0373__li4846330815450"><span>Click the directory name, type a full path you want to access, for example, <span class="filepath" id="mrs_01_0373__filepath6503713515450"><b>/mr-history/tmp</b></span>, and press <strong id="mrs_01_0373__en-us_topic_0049949145_b84235270615398">Enter</strong>.</span><p><p id="mrs_01_0373__p198056441552">The current user must have permission to access other directories.</p>
|
|
</p></li><li id="mrs_01_0373__li3321388815450"><span>Click <span class="uicontrol" id="mrs_01_0373__uicontrol1843235814357"><b>Home</b></span> to go to the home directory.</span></li><li id="mrs_01_0373__li597037115450"><span>Click <span class="uicontrol" id="mrs_01_0373__uicontrol6556191412365"><b>History</b></span>. The history records of directory access are displayed and the directories can be accessed again.</span></li><li id="mrs_01_0373__li1383808015450"><span>Click <span class="uicontrol" id="mrs_01_0373__uicontrol419313307364"><b>Trash</b></span> to access the recycle bin of the current directory.</span><p><p id="mrs_01_0373__p2528678815455">Click <span class="uicontrol" id="mrs_01_0373__uicontrol78961110163720"><b>Empty Trash</b></span> to clean up the recycle bin. </p>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="mrs_01_0373__section5192645015514"><h4 class="sectiontitle">Uploading User Files</h4><ol id="mrs_01_0373__ol2509437515519"><li id="mrs_01_0373__li4731510015519"><span>Click <span><img id="mrs_01_0373__image0741192252913" src="en-us_image_0000001295770424.png"></span> and click <strong id="mrs_01_0373__b1021915321151">Upload</strong>.</span></li><li id="mrs_01_0373__li4007096615519"><span>Select an operation.</span><p><ul id="mrs_01_0373__ul6410465315519"><li id="mrs_01_0373__li731790115519"><span class="parmvalue" id="mrs_01_0373__parmvalue07255536413"><b>Files</b></span>: uploads user files to the current user.</li><li id="mrs_01_0373__li712273915519"><span class="parmvalue" id="mrs_01_0373__parmvalue6586111315519"><b>Zip/Tgz/Bz2 file</b></span>: uploads a compressed file. In the dialog box that is displayed, click <span class="uicontrol" id="mrs_01_0373__uicontrol5587911015519"><b><span id="mrs_01_0373__text1347035121818">Select </span>ZIP, TGZ or BZ2 files</b></span> to select the compressed file to be uploaded. The system automatically decompresses the file in HDFS. Compressed files in <span class="parmname" id="mrs_01_0373__parmname3314995015519"><b>ZIP</b></span>, <span class="parmname" id="mrs_01_0373__parmname2991409615519"><b>TGZ</b></span>, and <span class="parmname" id="mrs_01_0373__parmname79141515519"><b>BZ2</b></span> formats are supported.</li></ul>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="mrs_01_0373__section179653215528"><h4 class="sectiontitle">Creating a New File or Directory</h4><ol id="mrs_01_0373__ol5885780115532"><li id="mrs_01_0373__li1552358215532"><span>Click <span><img id="mrs_01_0373__image11959194002913" src="en-us_image_0000001349169945.png"></span> and click <span class="uicontrol" id="mrs_01_0373__uicontrol547163754211"><b>New</b></span>.</span></li><li id="mrs_01_0373__li6619207915532"><span>Select an operation.</span><p><ul id="mrs_01_0373__ul3718083715532"><li id="mrs_01_0373__li4240259415532"><span class="parmvalue" id="mrs_01_0373__parmvalue2071845384216"><b>File</b></span>: creates a file. Enter a file name and click <span class="uicontrol" id="mrs_01_0373__uicontrol270641314311"><b>Create</b></span>.</li><li id="mrs_01_0373__li4141390615532"><span class="parmvalue" id="mrs_01_0373__parmvalue184071741204318"><b>Directory</b></span>: creates a directory. Enter a directory name and click <span class="uicontrol" id="mrs_01_0373__uicontrol142009500436"><b>Create</b></span>.</li></ul>
|
|
</p></li></ol>
|
|
</div>
|
|
<div class="section" id="mrs_01_0373__section1285533215178"><h4 class="sectiontitle">Storage Policy Definition and Usage</h4><div class="note" id="mrs_01_0373__n15b25d7ef75249ebade91127ef5d9786"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="mrs_01_0373__a0b019eac34884353aa1d638920207909">If the value of Hue parameter <span class="parmname" id="mrs_01_0373__p13ae91ca343d49779d3753dcfb6fb046"><b>fs_defaultFS</b></span> is set to <span class="parmvalue" id="mrs_01_0373__pb8fa0b6f41c249b19f2614ce4d08502f"><b>viewfs://ClusterX</b></span>, the big data storage policy cannot be enabled.</p>
|
|
</div></div>
|
|
<ol id="mrs_01_0373__oda77a7baa4c14244bb98b12cadcc7d20"><li id="mrs_01_0373__li13533607104"><span>Log in to MRS Manager.</span></li><li id="mrs_01_0373__li73911324102"><span>On MRS Manager, choose <span class="menucascade" id="mrs_01_0373__menucascade1739218241004"><b><span class="uicontrol" id="mrs_01_0373__uicontrol63911241306">System</span></b> > <b><span class="uicontrol" id="mrs_01_0373__uicontrol163922241407">Permission > Manage Role</span></b> > <b><span class="uicontrol" id="mrs_01_0373__uicontrol539213246018">Create Role</span></b></span>.</span><p><ol type="a" id="mrs_01_0373__ol1247919281801"><li id="mrs_01_0373__li480818329012">Set <span class="parmname" id="mrs_01_0373__parmname208080321409"><b>Role Name</b></span>.</li><li id="mrs_01_0373__li391564718218">Choose <span class="parmname" id="mrs_01_0373__pf88e7ecdf4a84f0982ef774ea71f77fa"><b>Configure Resource Permission > Hue</b></span>, select <strong id="mrs_01_0373__b19190537151014">Storage Policy Admin</strong>, and click <span class="uicontrol" id="mrs_01_0373__uicontrol2124172818177"><b>OK</b></span> to grant the storage policy administrator permission to the role.</li></ol>
|
|
</p></li><li id="mrs_01_0373__lad19ed90dd11448a8fc79c41d59f7cb1"><span>Choose <strong id="mrs_01_0373__b48248141762">System</strong> > <strong id="mrs_01_0373__b103191181463">Permission</strong> > <strong id="mrs_01_0373__b329332413617">Manage User Group</strong> > <strong id="mrs_01_0373__b132144296616">Create User Group</strong>, set <span class="parmname" id="mrs_01_0373__p1ff829af05b948e19ef78b5f1217638a"><b>Group Name</b></span>, and click <strong id="mrs_01_0373__b184211958366">Select and Add Role</strong> next to <strong id="mrs_01_0373__b12605601172">Role</strong>. On the displayed page, select the created role and click <strong id="mrs_01_0373__b24564370">OK</strong> to add the role to the group.</span></li><li id="mrs_01_0373__li3792930212"><span>Choose <strong id="mrs_01_0373__b1445675311102">System</strong> > <strong id="mrs_01_0373__b33801852116">Permission</strong> > <strong id="mrs_01_0373__b14462125311012">Manage User</strong> > <strong id="mrs_01_0373__b134631953151018">Create User</strong>.</span><p><ol type="a" id="mrs_01_0373__ol7191933917"><li id="mrs_01_0373__li122263413114">Specify the <span class="parmname" id="mrs_01_0373__parmname127151154182615"><b>Username</b></span> of a user who can log in to the Hue web UI and has the <strong id="mrs_01_0373__b19716115416269">Storage Policy Admin</strong> permission.</li><li id="mrs_01_0373__li8849155919111">Set <span class="parmname" id="mrs_01_0373__parmname178511159516"><b>User Type</b></span> to <span class="parmvalue" id="mrs_01_0373__parmvalue18851859014"><b>Human-machine</b></span>.</li><li id="mrs_01_0373__li184104105210">Set <span class="parmname" id="mrs_01_0373__parmname1241351020216"><b>Password</b></span> and <span class="parmname" id="mrs_01_0373__parmname141316101521"><b>Confirm Password</b></span> for logging in to the Hue web UI.</li><li id="mrs_01_0373__li1411042312214">Click <strong id="mrs_01_0373__b2029820140132">Select and Join User Group</strong> next to <strong id="mrs_01_0373__b96594915139">User Group</strong>. On the page that is displayed, select the created user group, <strong id="mrs_01_0373__b2101173941312">supergroup</strong>, <strong id="mrs_01_0373__b10122114291310">hadoop</strong>, and <strong id="mrs_01_0373__b588164981311">hive</strong>, and click <strong id="mrs_01_0373__b1161745315132">OK</strong>.</li><li id="mrs_01_0373__li5327103110214">Set <span class="parmname" id="mrs_01_0373__parmname19328331828"><b>Primary Group</b></span> to <strong id="mrs_01_0373__b188373129149">hive</strong>.</li><li id="mrs_01_0373__li652811391324">Click <strong id="mrs_01_0373__b280618303144">Select and Add Role</strong> on the right of <strong id="mrs_01_0373__b142083651420">Assign Rights by Role</strong>. On the Select snf page that is displayed, select the newly created role and the <strong id="mrs_01_0373__b1380075214147">System_administrator</strong> role, and click <span class="uicontrol" id="mrs_01_0373__uicontrol135301039329"><b>OK</b></span>.</li><li id="mrs_01_0373__li710915236113">Click <span class="uicontrol" id="mrs_01_0373__u0d4f19c0b47644528f3b07d656089773"><b>OK</b></span>. The user is added successfully.</li></ol>
|
|
</p></li><li id="mrs_01_0373__l683b653aec7e4fc1b96d114ffd416467"><span>Access the Hue web UI. For details, see <a href="mrs_01_0370.html">Accessing the Hue Web UI</a>.</span></li><li id="mrs_01_0373__l51de9086fe414132ba76cfda090cfc3a"><span>Click <span><img id="mrs_01_0373__image18731341145115" src="en-us_image_0000001296090208.png"></span> in the upper right corner.</span></li><li id="mrs_01_0373__l96a22e64908f4ba7928bed6b725ce814"><span>Select the check box of the directory and click <span class="uicontrol" id="mrs_01_0373__uicontrol19194519154813"><b>Action</b></span> on the upper part of the page. Then select <span class="uicontrol" id="mrs_01_0373__uicontrol4701164918488"><b>Storage policies</b></span>.</span></li><li id="mrs_01_0373__l8f3b50e361e6409080086abd704e7f0f"><span>In the dialog box that is displayed, set a new storage policy and click <strong id="mrs_01_0373__b1431354811169">OK</strong>.</span></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_0369.html">Using Hue (Versions Earlier Than MRS 3.x)</a></div>
|
|
</div>
|
|
</div>
|
|
|