我在群集的所有节点上使用OpenJDK Java 1.7.0(冰茶)上的Elasticsearch 1.1
执行以下命令时:
PUT http://my_machine:9200/index_name
{
"mappings":
{
"index_type" :
{
"properties" :
{
"file" : { "type" : "attachment" }
}
}
}
}
我得到以下回应json:
{
error: "RemoteTransportException[Failed to deserialize exception response from stream]; nested: TransportSerializationException[Failed to deserialize exception response from stream]; nested: StreamCorruptedException[unexpected end of block data]; "
status: 500
}
此外,如果未包含映射标头,则正常的GET / PUT / POST请求正常运行。 e.g。
PUT http://my_machine:9200/index_name
运作良好并返回
{"acknowledged":true}
任何人都可以解释原因并提出可能的解决方案吗?