This topic describes how to enable high availability for JindoFSx.
Prerequisites
A cluster of E-MapReduce (EMR) V3.42.0 or a later minor version, or a cluster of EMR V5.6.0 or a later minor version is created in the EMR console. JindoData is selected and High Service Availability is turned on when you create the cluster. For more information, see Create a cluster. In this example, a cluster of EMR V3.42.0 is used.
If the data source is Object Storage Service (OSS), OSS-HDFS, Apache Hadoop Distributed File System (HDFS), or Apsara File Storage NAS, you must make sure that the following operations are complete:
Limits
The version of the EMR cluster must be V3.42.0 or a later minor version, or V5.6.0 or a later minor version.
Procedure
Step 1: Configure JindoData
- Go to the namespace tab of the JindoData service.
- Log on to the EMR on ECS console.
- In the top navigation bar, select the region where your cluster resides and select a resource group based on your business requirements.
- On the EMR on ECS page, find the desired cluster and click Services in the Actions column.
- On the Services tab, find the JindoData service and click Configure.
- On the Configure tab, click the namespace tab.
- Add configuration items.
- Restart the JindoData service.
- On the Services tab of the JindoData service, choose .
- In the dialog box that appears, configure the Execution Reason parameter and click OK.
- In the Confirm message, click OK.
Step 2: Configure JindoSDK
Note In this step, you configure JindoSDK on the client. The configurations take effect without the need to restart JindoData.
- Go to the core-site.xml tab of the Hadoop-Common service.
- On the Services tab of the cluster, find the Hadoop-Common service and click Configure.
- On the Configure tab, click the core-site-xml tab.
- Modify the configuration item that is described in the following table.
For more information about how to modify a configuration item, see Modify configuration items.
Item Parameter Description Configure the address of JindoFSx Namespace Service. fs.jindofsx.namespace.rpc.address Set this parameter to a value in the {headerhost-1}:8101,{headerhost-2}:8101,{headerhost-3}:8101
format. Example:master-1-1:8101,master-1-2:8101,master-1-3:8101
. - Save the configuration.
- Click Save on the Configure tab.
- In the dialog box that appears, configure the Execution Reason parameter, turn on Automatically Update Configurations, and then click Save.