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

91 lines
8.2 KiB
HTML

<a name="mrs_01_0582"></a><a name="mrs_01_0582"></a>
<h1 class="topictitle1">Configuring Hive Parameters</h1>
<div id="body1589421621798"><div class="section" id="mrs_01_0582__s0b433d56ce2f426aa664c49ac6a37758"><h4 class="sectiontitle">Navigation Path</h4><p id="mrs_01_0582__p39519895015">Go to the Hive configurations page by referring to <a href="mrs_01_2125.html">Modifying Cluster Service Configuration Parameters</a>.</p>
</div>
<div class="section" id="mrs_01_0582__section20877188509"><h4 class="sectiontitle">Parameter Description</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_0582__table1151941120120" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Hive parameter description</caption><thead align="left"><tr id="mrs_01_0582__row7519411012"><th align="left" class="cellrowborder" valign="top" width="28.112811281128113%" id="mcps1.3.2.2.2.4.1.1"><p id="mrs_01_0582__p05192111017">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="47.004700470047%" id="mcps1.3.2.2.2.4.1.2"><p id="mrs_01_0582__p851911113118">Description</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="24.88248824882488%" id="mcps1.3.2.2.2.4.1.3"><p id="mrs_01_0582__p13519111511">Default Value</p>
</th>
</tr>
</thead>
<tbody><tr id="mrs_01_0582__row175191411617"><td class="cellrowborder" valign="top" width="28.112811281128113%" headers="mcps1.3.2.2.2.4.1.1 "><p id="mrs_01_0582__p35191911710">hive.auto.convert.join</p>
</td>
<td class="cellrowborder" valign="top" width="47.004700470047%" headers="mcps1.3.2.2.2.4.1.2 "><p id="mrs_01_0582__p25196113118">Whether Hive converts common <strong id="mrs_01_0582__b1475141162510">join</strong> to <strong id="mrs_01_0582__b1581191152515">mapjoin</strong> based on the input file size.</p>
<div class="note" id="mrs_01_0582__note1321012448109"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="mrs_01_0582__p1121134441016">When Hive is used to query a join table, whatever the table size is (if the data in the join table is less than 24 MB, it is a small one), set this parameter to <strong id="mrs_01_0582__b13911283596">false</strong>. If this parameter is set to <strong id="mrs_01_0582__b199272805915">true</strong>, new <strong id="mrs_01_0582__b1692112885920">mapjoin</strong> cannot be generated when you query a join table.</p>
</div></div>
</td>
<td class="cellrowborder" valign="top" width="24.88248824882488%" headers="mcps1.3.2.2.2.4.1.3 "><p id="mrs_01_0582__p15191311513">Possible values are as follows:</p>
<ul id="mrs_01_0582__ul1551916111316"><li id="mrs_01_0582__li1951951110115">true</li><li id="mrs_01_0582__li251913110110">false</li></ul>
<p id="mrs_01_0582__p16519101112112">The default value is <strong id="mrs_01_0582__b128172682519">true</strong>.</p>
</td>
</tr>
<tr id="mrs_01_0582__row16519411517"><td class="cellrowborder" valign="top" width="28.112811281128113%" headers="mcps1.3.2.2.2.4.1.1 "><p id="mrs_01_0582__p75192113113">hive.default.fileformat</p>
</td>
<td class="cellrowborder" valign="top" width="47.004700470047%" headers="mcps1.3.2.2.2.4.1.2 "><p id="mrs_01_0582__p14519141112117">Indicates the default file format used by Hive.</p>
</td>
<td class="cellrowborder" valign="top" width="24.88248824882488%" headers="mcps1.3.2.2.2.4.1.3 "><p id="mrs_01_0582__p527102110549">Versions earlier than MRS 3.x: TextFile</p>
<p id="mrs_01_0582__p1352014116116">MRS 3.x or later: RCFile</p>
</td>
</tr>
<tr id="mrs_01_0582__row1252014111817"><td class="cellrowborder" valign="top" width="28.112811281128113%" headers="mcps1.3.2.2.2.4.1.1 "><p id="mrs_01_0582__p55209114119">hive.exec.reducers.max</p>
</td>
<td class="cellrowborder" valign="top" width="47.004700470047%" headers="mcps1.3.2.2.2.4.1.2 "><p id="mrs_01_0582__p1452012111715">Indicates the maximum number of reducers in a MapReduce job submitted by Hive.</p>
</td>
<td class="cellrowborder" valign="top" width="24.88248824882488%" headers="mcps1.3.2.2.2.4.1.3 "><p id="mrs_01_0582__p1152011111913">999</p>
</td>
</tr>
<tr id="mrs_01_0582__row752011115111"><td class="cellrowborder" valign="top" width="28.112811281128113%" headers="mcps1.3.2.2.2.4.1.1 "><p id="mrs_01_0582__p9520161112118">hive.server2.thrift.max.worker.threads</p>
</td>
<td class="cellrowborder" valign="top" width="47.004700470047%" headers="mcps1.3.2.2.2.4.1.2 "><p id="mrs_01_0582__p75205111112">Indicates the maximum number of threads that can be started in the HiveServer internal thread pool.</p>
</td>
<td class="cellrowborder" valign="top" width="24.88248824882488%" headers="mcps1.3.2.2.2.4.1.3 "><p id="mrs_01_0582__p852013118120">1,000</p>
</td>
</tr>
<tr id="mrs_01_0582__row652051117114"><td class="cellrowborder" valign="top" width="28.112811281128113%" headers="mcps1.3.2.2.2.4.1.1 "><p id="mrs_01_0582__p1652013111511">hive.server2.thrift.min.worker.threads</p>
</td>
<td class="cellrowborder" valign="top" width="47.004700470047%" headers="mcps1.3.2.2.2.4.1.2 "><p id="mrs_01_0582__p452011114111">Indicates the number of threads started during initialization in the HiveServer internal thread pool.</p>
</td>
<td class="cellrowborder" valign="top" width="24.88248824882488%" headers="mcps1.3.2.2.2.4.1.3 "><p id="mrs_01_0582__p2052051119113">5</p>
</td>
</tr>
<tr id="mrs_01_0582__row652016111519"><td class="cellrowborder" valign="top" width="28.112811281128113%" headers="mcps1.3.2.2.2.4.1.1 "><p id="mrs_01_0582__p0520131117113">hive.hbase.delete.mode.enabled</p>
</td>
<td class="cellrowborder" valign="top" width="47.004700470047%" headers="mcps1.3.2.2.2.4.1.2 "><p id="mrs_01_0582__p1952061113115">Indicates whether to enable the function of deleting HBase records from Hive. If this function is enabled, you can use <strong id="mrs_01_0582__b24413793152348">remove table xx where xxx</strong> to delete HBase records from Hive.</p>
<div class="note" id="mrs_01_0582__note8913155711584"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="mrs_01_0582__p39131657115811">This parameter applies to MRS 3.<em id="mrs_01_0582__i4187154202911">x</em> or later.</p>
</div></div>
</td>
<td class="cellrowborder" valign="top" width="24.88248824882488%" headers="mcps1.3.2.2.2.4.1.3 "><p id="mrs_01_0582__p85206111114">true</p>
</td>
</tr>
<tr id="mrs_01_0582__row352014111316"><td class="cellrowborder" valign="top" width="28.112811281128113%" headers="mcps1.3.2.2.2.4.1.1 "><p id="mrs_01_0582__p2052051116114">hive.metastore.server.min.threads</p>
</td>
<td class="cellrowborder" valign="top" width="47.004700470047%" headers="mcps1.3.2.2.2.4.1.2 "><p id="mrs_01_0582__p145201511518">Indicates the number of threads started by MetaStore for processing connections. If the number of threads is more than the set value, MetaStore always maintains a number of threads that is not lower than the set value, that is, the number of resident threads in the MetaStore thread pool is always higher than the set value.</p>
</td>
<td class="cellrowborder" valign="top" width="24.88248824882488%" headers="mcps1.3.2.2.2.4.1.3 "><p id="mrs_01_0582__p105205112117">200</p>
</td>
</tr>
<tr id="mrs_01_0582__row95201411216"><td class="cellrowborder" valign="top" width="28.112811281128113%" headers="mcps1.3.2.2.2.4.1.1 "><p id="mrs_01_0582__p752017115118">hive.server2.enable.doAs</p>
</td>
<td class="cellrowborder" valign="top" width="47.004700470047%" headers="mcps1.3.2.2.2.4.1.2 "><p id="mrs_01_0582__p1952011110110">Indicates whether to simulate client users during sessions between HiveServer2 and other services (such as Yarn and HDFS). If you change the configuration item from <strong id="mrs_01_0582__b210042266452348">false</strong> to <strong id="mrs_01_0582__b152063650552348">true</strong>, users with only the column permission lose the permissions to access corresponding tables.</p>
<div class="note" id="mrs_01_0582__note759323012596"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="mrs_01_0582__p125931730155913">This parameter applies to MRS 3.<em id="mrs_01_0582__i496110528299">x</em> or later.</p>
</div></div>
</td>
<td class="cellrowborder" valign="top" width="24.88248824882488%" headers="mcps1.3.2.2.2.4.1.3 "><p id="mrs_01_0582__p1252018111318">true</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_0581.html">Using Hive</a></div>
</div>
</div>