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

21 lines
3.6 KiB
HTML

<a name="mrs_01_0862"></a><a name="mrs_01_0862"></a>
<h1 class="topictitle1">Configuring the Access Channel Protocol</h1>
<div id="body1590130746701"><div class="section" id="mrs_01_0862__s6769d5d3f49b4b13a1d1021094ec5270"><h4 class="sectiontitle">Scenario</h4><p id="mrs_01_0862__ae580b5afe29543ff92531ee434e166b2">The value of the <strong id="mrs_01_0862__b1399413204318">yarn.http.policy</strong> parameter must be consistent on both the server and clients. Web UIs on clients will be garbled if an inconsistency exists, for example, the parameter value is <strong id="mrs_01_0862__b16169957164420">HTTPS_ONLY</strong> on the server but it is left unspecified on a client (the parameter value <strong id="mrs_01_0862__b17241213184512">HTTP_ONLY</strong> is applied to the client by default). Set the <strong id="mrs_01_0862__b95237567547">yarn.http.policy</strong> parameters on the clients and server to prevent garbled characters from being displayed on the clients.</p>
</div>
<div class="section" id="mrs_01_0862__sc189a4e71ea840e68c2958022242cf9b"><h4 class="sectiontitle">Procedure</h4><ol id="mrs_01_0862__ol10928106115515"><li id="mrs_01_0862__li6273159182112"><span>On Manager, choose <strong id="mrs_01_0862__b2065692065513">Cluster</strong> &gt; <em id="mrs_01_0862__i1660920175516">Name of the desired cluster</em> &gt; <strong id="mrs_01_0862__b136617207550">Services</strong> &gt; <strong id="mrs_01_0862__b17661420105514">Yarn</strong> &gt; <strong id="mrs_01_0862__b96612201556">Configurations</strong>. On the displayed page, select <span class="parmvalue" id="mrs_01_0862__parmvalue11901674491"><b>All Configurations</b></span> and enter <strong id="mrs_01_0862__b4662192019554">yarn.http.policy</strong>.</span><p><ul id="mrs_01_0862__ul165713444231"><li id="mrs_01_0862__li657044122315">In security mode, set this parameter to <strong id="mrs_01_0862__b1530325795610">HTTPS_ONLY</strong>.</li><li id="mrs_01_0862__li0350255142319">In normal mode, set this parameter to <strong id="mrs_01_0862__b13283192245710">HTTP_ONLY</strong>.</li></ul>
</p></li><li id="mrs_01_0862__li14928767556"><span>Log in to the node where the client is installed as the client installation user.</span></li><li id="mrs_01_0862__li16928186105510"><span>Run the following command to switch to the client installation directory:</span><p><p id="mrs_01_0862__p557314515545"><strong id="mrs_01_0862__b757384520543">cd</strong><strong id="mrs_01_0862__b1357334514544"> /opt/client</strong></p>
</p></li><li id="mrs_01_0862__li1292812610553"><span>Run the following command to edit the <strong id="mrs_01_0862__b8423102994619">yarn-site.xml</strong> file:</span><p><p id="mrs_01_0862__p85731545195412"><strong id="mrs_01_0862__b1573184555417">vi </strong><strong id="mrs_01_0862__b9705174065717">Yarn/config/yarn-site.xml</strong></p>
<p id="mrs_01_0862__p10411747135811">Change the value of <strong id="mrs_01_0862__b1686373974612">yarn.http.policy</strong>.</p>
<p id="mrs_01_0862__p8562862511">In security mode, set this parameter to <span class="parmvalue" id="mrs_01_0862__parmvalue17563802515"><b>HTTPS_ONLY</b></span>.</p>
<p id="mrs_01_0862__p5750164182510">In normal mode, set this parameter to <span class="parmvalue" id="mrs_01_0862__parmvalue173966803"><b>HTTP_ONLY</b></span>.</p>
</p></li><li id="mrs_01_0862__li189286635516"><span>Run the <strong id="mrs_01_0862__b1997965315464">:wq</strong> command to save execution.</span></li><li id="mrs_01_0862__li99285645518"><span>Restart the client for the settings to take effect.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_0851.html">Using Yarn</a></div>
</div>
</div>