Spring Data ElasticSearch删除索引遇到的java.lang.IllegalStateException: Failed to load ApplicationContext异常

异常内容如下:
log4j:WARN No appenders could be found for logger (org.springframework.test.context.junit4.SpringJUnit4ClassRunner).
log4j:WARN Please initialize the log4j system properly.
[main] INFO org.elasticsearch.plugins.PluginsService - no modules loaded
[main] INFO org.elasticsearch.plugins.PluginsService - loaded plugin [org.elasticsearch.index.reindex.ReindexPlugin]
[main] INFO org.elasticsearch.plugins.PluginsService - loaded plugin [org.elasticsearch.join.ParentJoinPlugin]
[main] INFO org.elasticsearch.plugins.PluginsService - loaded plugin [org.elasticsearch.percolator.PercolatorPlugin]
[main] INFO org.elasticsearch.plugins.PluginsService - loaded plugin [org.elasticsearch.script.mustache.MustachePlugin]
[main] INFO org.elasticsearch.plugins.PluginsService - loaded plugin [org.elasticsearch.transport.Netty3Plugin]
[main] INFO org.elasticsearch.plugins.PluginsService - loaded plugin [org.elasticsearch.transport.Netty4Plugin]
[main] INFO org.springframework.data.elasticsearch.client.TransportClientFactoryBean - adding transport node : 127.0.0.1:9300
[main] INFO org.springframework.data.elasticsearch.client.TransportClientFactoryBean - Closing elasticSearch client

java.lang.IllegalStateException: Failed to load ApplicationContext

at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:125)
at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:107)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:117)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:242)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:227)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:246)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘articleRepository’: Invocation of init method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.elasticsearch.repository.support.NumberKeyedRepository]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Mapper for [title] conflicts with existing mapping in other types:
[mapper [title] has different [store] values, mapper [title] has different [analyzer]]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1710)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:583)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:502)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean 0 ( A b s t r a c t B e a n F a c t o r y . j a v a : 312 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t S i n g l e t o n B e a n R e g i s t r y . g e t S i n g l e t o n ( D e f a u l t S i n g l e t o n B e a n R e g i s t r y . j a v a : 228 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . d o G e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 310 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t B e a n F a c t o r y . g e t B e a n ( A b s t r a c t B e a n F a c t o r y . j a v a : 200 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . D e f a u l t L i s t a b l e B e a n F a c t o r y . p r e I n s t a n t i a t e S i n g l e t o n s ( D e f a u l t L i s t a b l e B e a n F a c t o r y . j a v a : 741 ) a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . f i n i s h B e a n F a c t o r y I n i t i a l i z a t i o n ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 868 ) a t o r g . s p r i n g f r a m e w o r k . c o n t e x t . s u p p o r t . A b s t r a c t A p p l i c a t i o n C o n t e x t . r e f r e s h ( A b s t r a c t A p p l i c a t i o n C o n t e x t . j a v a : 549 ) a t o r g . s p r i n g f r a m e w o r k . t e s t . c o n t e x t . s u p p o r t . A b s t r a c t G e n e r i c C o n t e x t L o a d e r . l o a d C o n t e x t ( A b s t r a c t G e n e r i c C o n t e x t L o a d e r . j a v a : 128 ) a t o r g . s p r i n g f r a m e w o r k . t e s t . c o n t e x t . s u p p o r t . A b s t r a c t G e n e r i c C o n t e x t L o a d e r . l o a d C o n t e x t ( A b s t r a c t G e n e r i c C o n t e x t L o a d e r . j a v a : 60 ) a t o r g . s p r i n g f r a m e w o r k . t e s t . c o n t e x t . s u p p o r t . A b s t r a c t D e l e g a t i n g S m a r t C o n t e x t L o a d e r . d e l e g a t e L o a d i n g ( A b s t r a c t D e l e g a t i n g S m a r t C o n t e x t L o a d e r . j a v a : 107 ) a t o r g . s p r i n g f r a m e w o r k . t e s t . c o n t e x t . s u p p o r t . A b s t r a c t D e l e g a t i n g S m a r t C o n t e x t L o a d e r . l o a d C o n t e x t ( A b s t r a c t D e l e g a t i n g S m a r t C o n t e x t L o a d e r . j a v a : 243 ) a t o r g . s p r i n g f r a m e w o r k . t e s t . c o n t e x t . c a c h e . D e f a u l t C a c h e A w a r e C o n t e x t L o a d e r D e l e g a t e . l o a d C o n t e x t I n t e r n a l ( D e f a u l t C a c h e A w a r e C o n t e x t L o a d e r D e l e g a t e . j a v a : 99 ) a t o r g . s p r i n g f r a m e w o r k . t e s t . c o n t e x t . c a c h e . D e f a u l t C a c h e A w a r e C o n t e x t L o a d e r D e l e g a t e . l o a d C o n t e x t ( D e f a u l t C a c h e A w a r e C o n t e x t L o a d e r D e l e g a t e . j a v a : 117 ) . . . 24 m o r e C a u s e d b y : o r g . s p r i n g f r a m e w o r k . b e a n s . B e a n I n s t a n t i a t i o n E x c e p t i o n : F a i l e d t o i n s t a n t i a t e [ o r g . s p r i n g f r a m e w o r k . d a t a . e l a s t i c s e a r c h . r e p o s i t o r y . s u p p o r t . N u m b e r K e y e d R e p o s i t o r y ] : C o n s t r u c t o r t h r e w e x c e p t i o n ; n e s t e d e x c e p t i o n i s j a v a . l a n g . I l l e g a l A r g u m e n t E x c e p t i o n : M a p p e r f o r [ t i t l e ] c o n f l i c t s w i t h e x i s t i n g m a p p i n g i n o t h e r t y p e s : [ m a p p e r [ t i t l e ] h a s d i f f e r e n t [ s t o r e ] v a l u e s , m a p p e r [ t i t l e ] h a s d i f f e r e n t [ a n a l y z e r ] ] a t o r g . s p r i n g f r a m e w o r k . b e a n s . B e a n U t i l s . i n s t a n t i a t e C l a s s ( B e a n U t i l s . j a v a : 182 ) a t o r g . s p r i n g f r a m e w o r k . d a t a . r e p o s i t o r y . c o r e . s u p p o r t . R e p o s i t o r y F a c t o r y S u p p o r t . l a m b d a 0(AbstractBeanFactory.java:312) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:741) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:868) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:128) at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60) at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:107) at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:243) at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:99) at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:117) ... 24 more Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.elasticsearch.repository.support.NumberKeyedRepository]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Mapper for [title] conflicts with existing mapping in other types: [mapper [title] has different [store] values, mapper [title] has different [analyzer]] at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:182) at org.springframework.data.repository.core.support.RepositoryFactorySupport.lambda 0(AbstractBeanFactory.java:312)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:741)atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:868)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)atorg.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:128)atorg.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60)atorg.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:107)atorg.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:243)atorg.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:99)atorg.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:117)...24moreCausedby:org.springframework.beans.BeanInstantiationException:Failedtoinstantiate[org.springframework.data.elasticsearch.repository.support.NumberKeyedRepository]:Constructorthrewexception;nestedexceptionisjava.lang.IllegalArgumentException:Mapperfor[title]conflictswithexistingmappinginothertypes:[mapper[title]hasdifferent[store]values,mapper[title]hasdifferent[analyzer]]atorg.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:182)atorg.springframework.data.repository.core.support.RepositoryFactorySupport.lambdagetTargetRepositoryViaReflection 3 ( R e p o s i t o r y F a c t o r y S u p p o r t . j a v a : 500 ) a t j a v a . u t i l . O p t i o n a l . m a p ( O p t i o n a l . j a v a : 215 ) a t o r g . s p r i n g f r a m e w o r k . d a t a . r e p o s i t o r y . c o r e . s u p p o r t . R e p o s i t o r y F a c t o r y S u p p o r t . g e t T a r g e t R e p o s i t o r y V i a R e f l e c t i o n ( R e p o s i t o r y F a c t o r y S u p p o r t . j a v a : 500 ) a t o r g . s p r i n g f r a m e w o r k . d a t a . r e p o s i t o r y . c o r e . s u p p o r t . R e p o s i t o r y F a c t o r y S u p p o r t . g e t T a r g e t R e p o s i t o r y V i a R e f l e c t i o n ( R e p o s i t o r y F a c t o r y S u p p o r t . j a v a : 485 ) a t o r g . s p r i n g f r a m e w o r k . d a t a . e l a s t i c s e a r c h . r e p o s i t o r y . s u p p o r t . E l a s t i c s e a r c h R e p o s i t o r y F a c t o r y . g e t T a r g e t R e p o s i t o r y ( E l a s t i c s e a r c h R e p o s i t o r y F a c t o r y . j a v a : 73 ) a t o r g . s p r i n g f r a m e w o r k . d a t a . r e p o s i t o r y . c o r e . s u p p o r t . R e p o s i t o r y F a c t o r y S u p p o r t . g e t R e p o s i t o r y ( R e p o s i t o r y F a c t o r y S u p p o r t . j a v a : 298 ) a t o r g . s p r i n g f r a m e w o r k . d a t a . r e p o s i t o r y . c o r e . s u p p o r t . R e p o s i t o r y F a c t o r y B e a n S u p p o r t . l a m b d a 3(RepositoryFactorySupport.java:500) at java.util.Optional.map(Optional.java:215) at org.springframework.data.repository.core.support.RepositoryFactorySupport.getTargetRepositoryViaReflection(RepositoryFactorySupport.java:500) at org.springframework.data.repository.core.support.RepositoryFactorySupport.getTargetRepositoryViaReflection(RepositoryFactorySupport.java:485) at org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactory.getTargetRepository(ElasticsearchRepositoryFactory.java:73) at org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:298) at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.lambda 3(RepositoryFactorySupport.java:500)atjava.util.Optional.map(Optional.java:215)atorg.springframework.data.repository.core.support.RepositoryFactorySupport.getTargetRepositoryViaReflection(RepositoryFactorySupport.java:500)atorg.springframework.data.repository.core.support.RepositoryFactorySupport.getTargetRepositoryViaReflection(RepositoryFactorySupport.java:485)atorg.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactory.getTargetRepository(ElasticsearchRepositoryFactory.java:73)atorg.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:298)atorg.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.lambdaafterPropertiesSet 3 ( R e p o s i t o r y F a c t o r y B e a n S u p p o r t . j a v a : 287 ) a t o r g . s p r i n g f r a m e w o r k . d a t a . u t i l . L a z y . g e t N u l l a b l e ( L a z y . j a v a : 141 ) a t o r g . s p r i n g f r a m e w o r k . d a t a . u t i l . L a z y . g e t ( L a z y . j a v a : 63 ) a t o r g . s p r i n g f r a m e w o r k . d a t a . r e p o s i t o r y . c o r e . s u p p o r t . R e p o s i t o r y F a c t o r y B e a n S u p p o r t . a f t e r P r o p e r t i e s S e t ( R e p o s i t o r y F a c t o r y B e a n S u p p o r t . j a v a : 290 ) a t o r g . s p r i n g f r a m e w o r k . d a t a . e l a s t i c s e a r c h . r e p o s i t o r y . s u p p o r t . E l a s t i c s e a r c h R e p o s i t o r y F a c t o r y B e a n . a f t e r P r o p e r t i e s S e t ( E l a s t i c s e a r c h R e p o s i t o r y F a c t o r y B e a n . j a v a : 67 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . i n v o k e I n i t M e t h o d s ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 1769 ) a t o r g . s p r i n g f r a m e w o r k . b e a n s . f a c t o r y . s u p p o r t . A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . i n i t i a l i z e B e a n ( A b s t r a c t A u t o w i r e C a p a b l e B e a n F a c t o r y . j a v a : 1706 ) . . . 39 m o r e C a u s e d b y : j a v a . l a n g . I l l e g a l A r g u m e n t E x c e p t i o n : M a p p e r f o r [ t i t l e ] c o n f l i c t s w i t h e x i s t i n g m a p p i n g i n o t h e r t y p e s : [ m a p p e r [ t i t l e ] h a s d i f f e r e n t [ s t o r e ] v a l u e s , m a p p e r [ t i t l e ] h a s d i f f e r e n t [ a n a l y z e r ] ] a t o r g . e l a s t i c s e a r c h . i n d e x . m a p p e r . F i e l d T y p e L o o k u p . c h e c k C o m p a t i b i l i t y ( F i e l d T y p e L o o k u p . j a v a : 130 ) a t o r g . e l a s t i c s e a r c h . i n d e x . m a p p e r . F i e l d T y p e L o o k u p . c o p y A n d A d d A l l ( F i e l d T y p e L o o k u p . j a v a : 94 ) a t o r g . e l a s t i c s e a r c h . i n d e x . m a p p e r . M a p p e r S e r v i c e . i n t e r n a l M e r g e ( M a p p e r S e r v i c e . j a v a : 400 ) a t o r g . e l a s t i c s e a r c h . i n d e x . m a p p e r . M a p p e r S e r v i c e . i n t e r n a l M e r g e ( M a p p e r S e r v i c e . j a v a : 336 ) a t o r g . e l a s t i c s e a r c h . i n d e x . m a p p e r . M a p p e r S e r v i c e . m e r g e ( M a p p e r S e r v i c e . j a v a : 268 ) a t o r g . e l a s t i c s e a r c h . c l u s t e r . m e t a d a t a . M e t a D a t a M a p p i n g S e r v i c e 3(RepositoryFactoryBeanSupport.java:287) at org.springframework.data.util.Lazy.getNullable(Lazy.java:141) at org.springframework.data.util.Lazy.get(Lazy.java:63) at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:290) at org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactoryBean.afterPropertiesSet(ElasticsearchRepositoryFactoryBean.java:67) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1769) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1706) ... 39 more Caused by: java.lang.IllegalArgumentException: Mapper for [title] conflicts with existing mapping in other types: [mapper [title] has different [store] values, mapper [title] has different [analyzer]] at org.elasticsearch.index.mapper.FieldTypeLookup.checkCompatibility(FieldTypeLookup.java:130) at org.elasticsearch.index.mapper.FieldTypeLookup.copyAndAddAll(FieldTypeLookup.java:94) at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:400) at org.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:336) at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:268) at org.elasticsearch.cluster.metadata.MetaDataMappingService 3(RepositoryFactoryBeanSupport.java:287)atorg.springframework.data.util.Lazy.getNullable(Lazy.java:141)atorg.springframework.data.util.Lazy.get(Lazy.java:63)atorg.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:290)atorg.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactoryBean.afterPropertiesSet(ElasticsearchRepositoryFactoryBean.java:67)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1769)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1706)...39moreCausedby:java.lang.IllegalArgumentException:Mapperfor[title]conflictswithexistingmappinginothertypes:[mapper[title]hasdifferent[store]values,mapper[title]hasdifferent[analyzer]]atorg.elasticsearch.index.mapper.FieldTypeLookup.checkCompatibility(FieldTypeLookup.java:130)atorg.elasticsearch.index.mapper.FieldTypeLookup.copyAndAddAll(FieldTypeLookup.java:94)atorg.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:400)atorg.elasticsearch.index.mapper.MapperService.internalMerge(MapperService.java:336)atorg.elasticsearch.index.mapper.MapperService.merge(MapperService.java:268)atorg.elasticsearch.cluster.metadata.MetaDataMappingServicePutMappingExecutor.applyRequest(MetaDataMappingService.java:311)
at org.elasticsearch.cluster.metadata.MetaDataMappingService P u t M a p p i n g E x e c u t o r . e x e c u t e ( M e t a D a t a M a p p i n g S e r v i c e . j a v a : 230 ) a t o r g . e l a s t i c s e a r c h . c l u s t e r . s e r v i c e . C l u s t e r S e r v i c e . e x e c u t e T a s k s ( C l u s t e r S e r v i c e . j a v a : 634 ) a t o r g . e l a s t i c s e a r c h . c l u s t e r . s e r v i c e . C l u s t e r S e r v i c e . c a l c u l a t e T a s k O u t p u t s ( C l u s t e r S e r v i c e . j a v a : 612 ) a t o r g . e l a s t i c s e a r c h . c l u s t e r . s e r v i c e . C l u s t e r S e r v i c e . r u n T a s k s ( C l u s t e r S e r v i c e . j a v a : 571 ) a t o r g . e l a s t i c s e a r c h . c l u s t e r . s e r v i c e . C l u s t e r S e r v i c e PutMappingExecutor.execute(MetaDataMappingService.java:230) at org.elasticsearch.cluster.service.ClusterService.executeTasks(ClusterService.java:634) at org.elasticsearch.cluster.service.ClusterService.calculateTaskOutputs(ClusterService.java:612) at org.elasticsearch.cluster.service.ClusterService.runTasks(ClusterService.java:571) at org.elasticsearch.cluster.service.ClusterService PutMappingExecutor.execute(MetaDataMappingService.java:230)atorg.elasticsearch.cluster.service.ClusterService.executeTasks(ClusterService.java:634)atorg.elasticsearch.cluster.service.ClusterService.calculateTaskOutputs(ClusterService.java:612)atorg.elasticsearch.cluster.service.ClusterService.runTasks(ClusterService.java:571)atorg.elasticsearch.cluster.service.ClusterServiceClusterServiceTaskBatcher.run(ClusterService.java:263)
at org.elasticsearch.cluster.service.TaskBatcher.runIfNotProcessed(TaskBatcher.java:150)
at org.elasticsearch.cluster.service.TaskBatcher B a t c h e d T a s k . r u n ( T a s k B a t c h e r . j a v a : 188 ) a t o r g . e l a s t i c s e a r c h . c o m m o n . u t i l . c o n c u r r e n t . T h r e a d C o n t e x t BatchedTask.run(TaskBatcher.java:188) at org.elasticsearch.common.util.concurrent.ThreadContext BatchedTask.run(TaskBatcher.java:188)atorg.elasticsearch.common.util.concurrent.ThreadContextContextPreservingRunnable.run(ThreadContext.java:575)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor T i e B r e a k i n g P r i o r i t i z e d R u n n a b l e . r u n A n d C l e a n ( P r i o r i t i z e d E s T h r e a d P o o l E x e c u t o r . j a v a : 247 ) a t o r g . e l a s t i c s e a r c h . c o m m o n . u t i l . c o n c u r r e n t . P r i o r i t i z e d E s T h r e a d P o o l E x e c u t o r TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:247) at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:247)atorg.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutorTieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:210)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

解决方案 :
这个问题的原因是映射器与其他类型的现有映射冲突
在这里插入图片描述
就是因为在删除的时候配置了映射关系,将映射关系注释掉就ok了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值