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

18 lines
3.1 KiB
HTML

<a name="mrs_01_0131"></a><a name="mrs_01_0131"></a>
<h1 class="topictitle1">Using Hue from Scratch</h1>
<div id="body1598413134732"><p id="mrs_01_0131__a5534209d8dc14173acad83522e6d3a36">Hue aggregates interfaces which interact with most Apache Hadoop components and enables you to use Hadoop components with ease on a web UI. You can operate components such as HDFS, Hive, HBase, Yarn, MapReduce, Oozie, and Spark SQL on the Hue web UI.</p>
<div class="section" id="mrs_01_0131__section12630202618440"><h4 class="sectiontitle">Prerequisites</h4><p id="mrs_01_0131__p1111333015011">You have installed Hue, and the Kerberos authentication cluster is in the running state.</p>
</div>
<div class="section" id="mrs_01_0131__section13302161334511"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_0131__ol18473124685314"><li id="mrs_01_0131__li8812166235"><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_0131__li874802051810"><span>In the navigation tree on the left, click the editor icon <span><img id="mrs_01_0131__image188071542102916" src="en-us_image_0000001348770605.png"></span> and choose <span class="uicontrol" id="mrs_01_0131__uicontrol1667819183018"><b>Hive</b></span>.</span></li><li id="mrs_01_0131__li55366463145244"><span>Select a Hive database from the <span class="wintitle" id="mrs_01_0131__wintitle396173155119"><b>Database</b></span> drop-down list box. The default database is <span class="parmvalue" id="mrs_01_0131__parmvalue34652220145244"><b>default</b></span>.</span><p><p id="mrs_01_0131__p43434531145244">The system displays all available tables. You can enter a keyword of the table name to search for the desired table.</p>
</p></li><li id="mrs_01_0131__li29724435145244"><span>Click the desired table name. All columns in the table are displayed.</span></li><li id="mrs_01_0131__li62672328145244"><a name="mrs_01_0131__li62672328145244"></a><a name="li62672328145244"></a><span>Enter the HiveQL statements in the area for editing.</span><p><p id="mrs_01_0131__p2898016211519"><strong id="mrs_01_0131__b8308122114105">create table hue_table(id int,name string,company string) row format delimited fields terminated by ',' stored as textfile;</strong></p>
</p></li><li id="mrs_01_0131__li785310218562"><span>Click <span><img id="mrs_01_0131__image152120534504" src="en-us_image_0000001349289901.jpg"></span> to execute the HiveQL statements.</span></li><li id="mrs_01_0131__li30024392115137"><span>In the command text box, enter <strong id="mrs_01_0131__b1498083553318">show tables;</strong> and click <span><img id="mrs_01_0131__image25522852115137" src="en-us_image_0000001296250224.png"></span>. Check whether the <strong id="mrs_01_0131__b89854352336">hue_table</strong> table created in <a href="#mrs_01_0131__li62672328145244">5</a> exists in the <span class="wintitle" id="mrs_01_0131__wintitle4781111618354"><b>Result</b></span>.</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>