java.lang.IllegalArgumentException

mapper [host] cannot be changed from type [string] to [ip]

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web15

  • via GitHub by alextricity25
    ,
  • via GitHub by rborer
    ,
  • Stack trace

    • java.lang.IllegalArgumentException: mapper [host] cannot be changed from type [string] to [ip] at org.elasticsearch.index.mapper.MappedFieldType.checkTypeName(MappedFieldType.java:238) at org.elasticsearch.index.mapper.MappedFieldType.checkCompatibility(MappedFieldType.java:250) at org.elasticsearch.index.mapper.FieldTypeLookup.checkCompatibility(FieldTypeLookup.java:151) at org.elasticsearch.index.mapper.FieldTypeLookup.copyAndAddAll(FieldTypeLookup.java:115) at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:381) at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:320) at org.elasticsearch.cluster.metadata.MetaDataIndexUpgradeService.checkMappingsCompatibility(MetaDataIndexUpgradeService.java:302) at org.elasticsearch.cluster.metadata.MetaDataIndexUpgradeService.upgradeIndexMetaData(MetaDataIndexUpgradeService.java:116) at org.elasticsearch.gateway.GatewayMetaState.pre20Upgrade(GatewayMetaState.java:228) at org.elasticsearch.gateway.GatewayMetaState.<init>(GatewayMetaState.java:87) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,