What Can I Do If Indexes of the Source Cluster Fail to Automatically Create Indexes in the Target Cluster?
Procedure
- Set copySettingAndMapping in the espara.properties configuration file to false.
- Query the logs/estool.log file and locate the error cause. Generally, the mapping of the early version is incompatible with that of the later version. You need to manually create a correct index mapping in the target cluster.
For example, the _routing parameter of the early version requires the path parameter, while the path parameter needs to be deleted in later versions. The commands related to index mapping are as follows:
- Viewing an index mapping
curl -XGET --negotiate -k -u : 'https://ip:port/index_name/_mapping/?pretty'
- ip: service IP address of the EsNode or EsClient instance
- port: port number corresponding to the service IP address of an instance
- index_name: index table name
- Creating an index mapping
curl -XPUT --negotiate -k -u : 'https://ip:port/index_name/_mapping/type_name' -H 'Content-Type: application/json' -d' { "properties": { "filed_name": { "type": "text" } } }
For details about the commands, visit https://www.elastic.co/guide/en/elasticsearch/reference/7.6/indices-put-mapping.html.
- Viewing an index mapping
- After the index is created, use tools to migrate data of the index.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot