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>
58 lines
7.5 KiB
HTML
58 lines
7.5 KiB
HTML
<a name="mrs_01_1944"></a><a name="mrs_01_1944"></a>
|
|
|
|
<h1 class="topictitle1">Configuring the Switchover Between the Multi-active Instance Mode and the Multi-tenant Mode</h1>
|
|
<div id="body1595920206246"><div class="section" id="mrs_01_1944__s913ab340c32147138a066ac6d74f1a45"><h4 class="sectiontitle">Scenarios</h4><p id="mrs_01_1944__a93f89a8d632c49369bddb93965bf44a9">When using a cluster, if you want to switch between multi-active instance mode and multi-tenant mode, the following configurations are required.</p>
|
|
<ul id="mrs_01_1944__u46450c771054403492078173dcb1ac3c"><li id="mrs_01_1944__lce2b188e91d5452e93b860a3482653ad">Switch from multi-tenant mode to multi-active instance mode.<div class="p" id="mrs_01_1944__ac62cc421204049bda3db46c46946dfc5"><a name="mrs_01_1944__lce2b188e91d5452e93b860a3482653ad"></a><a name="lce2b188e91d5452e93b860a3482653ad"></a>Modify the following parameters of the Spark2x service:<ul id="mrs_01_1944__u94f7c01c42584422b9a4a72ab3dbe89d"><li id="mrs_01_1944__lcf126bec1bd444b98e75cf0701e796dd">spark.thriftserver.proxy.enabled=false</li><li id="mrs_01_1944__ldbcc47b8c22d45169047a9ff0ed9c4b9">spark.scheduler.allocation.file=#{conf_dir}/fairscheduler.xml</li><li id="mrs_01_1944__l93d590ffe9b546e587a333352bc4c6d0">spark.proxyserver.hash.enabled=false</li></ul>
|
|
</div>
|
|
</li><li id="mrs_01_1944__lf00d01868c0d49f39ce73d41402fc72a">Switch from multi-active instance mode to multi-tenant mode.<div class="p" id="mrs_01_1944__a8a838e7f3f5c47078720e2dc6c41f54b"><a name="mrs_01_1944__lf00d01868c0d49f39ce73d41402fc72a"></a><a name="lf00d01868c0d49f39ce73d41402fc72a"></a>Modify the following parameters of the Spark2x service:<ul id="mrs_01_1944__u404eb392cd644535a7a810c9a3f88099"><li id="mrs_01_1944__le273f58dd23546238fdda05d0a45bf8d">spark.thriftserver.proxy.enabled=true</li><li id="mrs_01_1944__l8263f257a3da47c5a16908135c48a2bc">spark.scheduler.allocation.file=./__spark_conf__/__hadoop_conf__/fairscheduler.xml</li><li id="mrs_01_1944__l7923993ee0fc442683c9e0cbe7947214">spark.proxyserver.hash.enabled=true</li></ul>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="mrs_01_1944__s3ebf24c20e9a430ba293fa6f5097a5bd"><h4 class="sectiontitle">Configuration Description</h4><p id="mrs_01_1944__aaf2b21f356e44b77b03bd2d812601e18">Log in to Manager, choose <span id="mrs_01_1944__text114551359203113"><strong id="mrs_01_1944__b164501159153113">Cluster</strong> > <em id="mrs_01_1944__i845545913120">Name of the desired cluster</em></span> > <strong id="mrs_01_1944__b194562599318">Service</strong> > <strong id="mrs_01_1944__b1145685913119">Spark2x</strong> > <strong id="mrs_01_1944__b445655914317">Configuration</strong>, click <strong id="mrs_01_1944__b154561359143114">All Configurations</strong>, and search for and modify the following parameters.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="mrs_01_1944__tbba987f2c7bd4a2388a2e8dd95803df5" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="mrs_01_1944__r0a5d57b3ab5946568c97afa7a1a95fad"><th align="left" class="cellrowborder" valign="top" width="28.63%" id="mcps1.3.2.3.2.4.1.1"><p id="mrs_01_1944__a080c9fe7980d4702b00f10b703a76631"><strong id="mrs_01_1944__ae9ff192af4284dc3a524274cabcf5378">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="51.76%" id="mcps1.3.2.3.2.4.1.2"><p id="mrs_01_1944__a5e06d33f5e0a45eaaa4bccdffd02e34e"><strong id="mrs_01_1944__a4cc498da45fe4e449ae7440bb4b0d0e7">Description</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.61%" id="mcps1.3.2.3.2.4.1.3"><p id="mrs_01_1944__afff35a974b7f465daa00ac180fcdfad5"><strong id="mrs_01_1944__a37b4fc1f288d43cd9d7915ce21c26764">Default Value</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="mrs_01_1944__re6e2373676624b9d89cc3dcff97d47af"><td class="cellrowborder" valign="top" width="28.63%" headers="mcps1.3.2.3.2.4.1.1 "><p id="mrs_01_1944__a8656a2e5a9954f5287123d3415dfa8ed">spark.thriftserver.proxy.enabled</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.76%" headers="mcps1.3.2.3.2.4.1.2 "><p id="mrs_01_1944__a7220e2425c2642ceb30ef3ffc662d061">Specifies whether to use the multi-tenant mode.</p>
|
|
<ul id="mrs_01_1944__u3585498203ad4a27823b9a2a9eab7c0d"><li id="mrs_01_1944__ld68f2bf9afaf4f2a9309c55337d27dc2"><strong id="mrs_01_1944__b93619919111291">false</strong>: The multi-instance mode is used.</li><li id="mrs_01_1944__lc6d55ebf84ef4a3f9c894df0ff721d87"><strong id="mrs_01_1944__b98179415511291">true</strong>: The multi-tenant mode is used.</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.61%" headers="mcps1.3.2.3.2.4.1.3 "><p id="mrs_01_1944__accf1ee44279b49c4b7cb9152278a9c39">true</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_1944__r12882c62cfc942b1a2eda38a0a16d7d8"><td class="cellrowborder" valign="top" width="28.63%" headers="mcps1.3.2.3.2.4.1.1 "><p id="mrs_01_1944__a73243c0582ae4ec99cbdfdd159928aa8">spark.scheduler.allocation.file</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.76%" headers="mcps1.3.2.3.2.4.1.2 "><p id="mrs_01_1944__ac4fb189f86ad46cd85b2cc492fcd422b">Specifies the fair scheduling file path.</p>
|
|
<ul id="mrs_01_1944__u116b1addfc264ebba3960139b47ae4c0"><li id="mrs_01_1944__l6d10271be8074bb9ac4379569c61c7b9">If the multi-active instance mode is used, the path is changed to <strong id="mrs_01_1944__b123028101911291">#{conf_dir}/fairscheduler.xml</strong>.</li><li id="mrs_01_1944__l6f5e6d96940146efb53d0f114de56ea7">If multi-tenant mode is used, the path is changed to <strong id="mrs_01_1944__b82462887811291">./__spark_conf__/__hadoop_conf__/fairscheduler.xml</strong>.</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.61%" headers="mcps1.3.2.3.2.4.1.3 "><p id="mrs_01_1944__a5558d917db9743f7a398805f043e08c8">./__spark_conf__/__hadoop_conf__/fairscheduler.xml</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="mrs_01_1944__r8b26c6c61cf243a2bc0fc95cb75699d9"><td class="cellrowborder" valign="top" width="28.63%" headers="mcps1.3.2.3.2.4.1.1 "><p id="mrs_01_1944__aaa1ba5965f8745e3b370278a9e86edec">spark.proxyserver.hash.enabled</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.76%" headers="mcps1.3.2.3.2.4.1.2 "><p id="mrs_01_1944__a059cdb6b069047c4bfa53a0432edb744">Specifies whether to connect to ProxyServer using the Hash algorithm.</p>
|
|
<ul id="mrs_01_1944__u598af0864a694a32859c71b40e127a4e"><li id="mrs_01_1944__ld6cf68978f8f4d719f105a9d592d710e"><strong id="mrs_01_1944__b76584955211291">true</strong> indicates using the Hash algorithm. In multi-tenant mode, this parameter must be configured to <strong id="mrs_01_1944__b135442222911291">true</strong>.</li><li id="mrs_01_1944__lb420dc975acb43a3a8bf7df6d2891138"><strong id="mrs_01_1944__b122048118211291">false</strong> indicates using random connection. In multi-active instance mode, this parameter must be configured to <strong id="mrs_01_1944__b109048647311291">false</strong>.</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.61%" headers="mcps1.3.2.3.2.4.1.3 "><p id="mrs_01_1944__af600e0babff14c439a459e14e7a9e090">true</p>
|
|
<div class="note" id="mrs_01_1944__nb30ad64dc44d453aa849d4f3a49abc9c"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="mrs_01_1944__a071f53fd4ae74c3caf240a08f69409ac">After this parameter is modified, you need to download the client again.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="mrs_01_1941.html">Scenario-Specific Configuration</a></div>
|
|
</div>
|
|
</div>
|
|
|