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>
26 lines
4.0 KiB
HTML
26 lines
4.0 KiB
HTML
<a name="mrs_01_24482"></a><a name="mrs_01_24482"></a>
|
|
|
|
<h1 class="topictitle1">How Do I Disable the Logging Function of Hive?</h1>
|
|
<div id="body0000001242875831"><div class="section" id="mrs_01_24482__section6338361218"><h4 class="sectiontitle">Question</h4><p id="mrs_01_24482__p25061381022">How do I disable the logging function of Hive?</p>
|
|
</div>
|
|
<div class="section" id="mrs_01_24482__section2441030321"><h4 class="sectiontitle">Answer</h4><ol id="mrs_01_24482__ol3239144922416"><li id="mrs_01_24482__li7228846162216"><span>Log in to the node where the client is installed as user <strong id="mrs_01_24482__b1158917427911">root</strong>.</span></li><li id="mrs_01_24482__l8276fb953ede48e3bcae37889eabd834"><span>Run the following command to switch to the client installation directory, for example, <strong id="mrs_01_24482__b1192673413263">/opt/Bigdata/client</strong>:</span><p><p id="mrs_01_24482__a7734bbc033c24c0e96a22957af2f367f"><strong id="mrs_01_24482__af1de2390d4ec4df6b0e28574d3329dff">cd </strong><strong id="mrs_01_24482__b499310479379">/opt/Bigdata/client</strong></p>
|
|
</p></li><li id="mrs_01_24482__l5597fd376c554a00a433496294b4b278"><span>Run the following command to configure environment variables:</span><p><p id="mrs_01_24482__a988e7b87692b4a528f97f0da18a8f07e"><strong id="mrs_01_24482__a32ecf708d4cb4e4d9c017de49ec5b482">source bigdata_env</strong></p>
|
|
</p></li><li id="mrs_01_24482__ld661d1bcf5d74879a7d849cd7c0c1385"><span>Log in to the Hive client based on the cluster authentication mode.</span><p><ul id="mrs_01_24482__u3aa29e5ff09943f4beea98856990f774"><li id="mrs_01_24482__l33866974acd3485d91b1ab7b09109770">In security mode, run the following command to complete user authentication and log in to the Hive client:<p id="mrs_01_24482__af6d25c71dd8b42918f2ee66ce22fcb54"><a name="mrs_01_24482__l33866974acd3485d91b1ab7b09109770"></a><a name="l33866974acd3485d91b1ab7b09109770"></a><strong id="mrs_01_24482__a02d04d7ca6db42ca8e8a517af0d6b4aa">kinit</strong> <em id="mrs_01_24482__af221d63242b94859a70557c37f903165">Component service user</em></p>
|
|
<p id="mrs_01_24482__ae31bf0ac43b54ae1ad6015a618753c1d"><strong id="mrs_01_24482__af8eb14eb0f8242beab8dcd59b314375c">beeline</strong></p>
|
|
</li><li id="mrs_01_24482__l9401eeec55ec40748da9e0b42341df6f">In normal mode, run the following command to log in to the Hive client:<ul id="mrs_01_24482__ul08321333183420"><li id="mrs_01_24482__li76013013414">Run the following command to log in to the Hive client as the component service user:<p id="mrs_01_24482__p66053013414"><a name="mrs_01_24482__li76013013414"></a><a name="li76013013414"></a><strong id="mrs_01_24482__b1960193019345">beeline -n</strong> <em id="mrs_01_24482__i17601730143414">component service user</em></p>
|
|
</li><li id="mrs_01_24482__li129871658133417">If no component service user is specified, the current OS user is used to log in to the Hive client.<p id="mrs_01_24482__p5544740173515"><a name="mrs_01_24482__li129871658133417"></a><a name="li129871658133417"></a><strong id="mrs_01_24482__b9302738153510">beeline</strong></p>
|
|
</li></ul>
|
|
</li></ul>
|
|
</p></li><li id="mrs_01_24482__li1712912114302"><span>Run the following command to disable the logging function:</span><p><p id="mrs_01_24482__p19534913016"><strong id="mrs_01_24482__b83871512316">set hive.server2.logging.operation.enabled=false;</strong></p>
|
|
</p></li><li id="mrs_01_24482__li16198153193419"><span>Run the following command to check whether the logging function is disabled. If the following information is displayed, the logging function is disabled successfully.</span><p><p id="mrs_01_24482__p1184991414367"><strong id="mrs_01_24482__b15911012153613">set hive.server2.logging.operation.enabled;</strong></p>
|
|
<p id="mrs_01_24482__p5975171817361"><span><img id="mrs_01_24482__image1551764553619" src="en-us_image_0000001296250116.png"></span></p>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1752.html">Common Issues About Hive</a></div>
|
|
</div>
|
|
</div>
|
|
|