DXP 7.2 Service Pack 1 (SP1)/Fix Pack 2 (FP2) requires Elastisearch 6.2 or higher due to InvalidTypeNameException error on startup

問題

When DXP 7.2 SP1+/FP2+ is configured with Elasticsearch 6.0 or 6.1, the following error occurs on startup:

Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds] [dxp] ERROR [main][IndexSynchronizationPortalInitializedListener:93] bundle com.liferay.portal.search.elasticsearch6.impl:3.0.34 (545)[com.liferay.portal.search.elasticsearch6.internal.index.IndexSynchronizationPortalInitializedListener(2459)] : The activate method has thrown an exception 
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds] InvalidTypeNameException[mapping type name [_doc] can't start with '_']
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:384)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:350)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:274)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.cluster.metadata.MetaDataCreateIndexService$IndexCreationTask.execute(MetaDataCreateIndexService.java:444)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.cluster.ClusterStateUpdateTask.execute(ClusterStateUpdateTask.java:45)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.cluster.service.MasterService.executeTasks(MasterService.java:640)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.cluster.service.MasterService.calculateTaskOutputs(MasterService.java:270)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.cluster.service.MasterService.runTasks(MasterService.java:195)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.cluster.service.MasterService$Batcher.run(MasterService.java:130)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:150)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.cluster.service.TaskBatcher$BatchedTask.run(TaskBatcher.java:188)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:568)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:247)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:210)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
Oct 22 13:42:10.417 build-14 [liferay-847b9fcf98-jmbds]     at java.lang.Thread.run(Thread.java:748)

解決

Search tuning features, such as Synonyms and Result Rankings (available since SP1+/FP2+), require Elasticsearch 6.2.0 or higher as a search engine.  Please refer to the Liferay DXP 7.2 Compatibility Matrix for the list of supported Elasticsearch versions.  

関連記事

この記事は役に立ちましたか?
0人中0人がこの記事が役に立ったと言っています