Help Center/ MapReduce Service/ Component Operation Guide (LTS) (Ankara Region)/ Using Spark/ Basic Operation/ Scenario-Specific Configuration/ Configuring the Switchover Between the Multi-active Instance Mode and the Multi-tenant Mode
Updated on 2024-11-29 GMT+08:00

Configuring the Switchover Between the Multi-active Instance Mode and the Multi-tenant Mode

Scenario

When using a cluster, if you want to switch between multi-active instance mode and multi-tenant mode, the following configurations are required.

  • Switch from multi-tenant mode to multi-active instance mode.
    Modify the following parameters of the Spark service:
    • spark.thriftserver.proxy.enabled=false
    • spark.proxyserver.hash.enabled=false
  • Switch from multi-active instance mode to multi-tenant mode.
    Modify the following parameters of the Spark service:
    • spark.thriftserver.proxy.enabled=true
    • spark.proxyserver.hash.enabled=true

Configuration Description

Log in to FusionInsight Manager and choose Cluster > Services > Spark. Click Configurations then All Configurations, and search for and modify the following parameters:

Table 1 Parameter description

Parameter

Description

Default Value

spark.thriftserver.proxy.enabled

Specifies whether to use the multi-tenant mode.

  • false: The multi-instance mode is used.
  • true: The multi-tenant mode is used.

true

spark.scheduler.allocation.file

Specifies the fair scheduling file path.

hdfs://hacluster/user/spark/jars/<Version number>/fairscheduler.xml

spark.proxyserver.hash.enabled

Specifies whether to connect to ProxyServer using the Hash algorithm.

  • true indicates using the Hash algorithm. In multi-tenant mode, this parameter must be configured to true.
  • false indicates using random connection. In multi-active instance mode, this parameter must be configured to false.

true

NOTE:

After this parameter is modified, you need to download the client again.