Hi ,
I am seeing the following error from elasticSearch side.
I took the same source shown in ES and tried it from command line and it
went tru. We are using httpClient library of apache to push data to ES.
Also the schema of the group is
curl -X PUT "localhost:9200/algotree/public/_mapping" -d '{
"public" :{
"properties" :{
"PDF" : { "type" : "string" , "store" : "yes" , "index" : "no" } ,
"Title" : { "type" : "string" , "store" : "yes" },
"SourceName" : { "type" : "string" , "store" : "yes" ,
"include_in_all" : "no"},
"link" : { "type" : "string" , "store" : "yes" , "index" : "no" },
"Author" : { "type" : "string" , "store" : "yes" , "include_in_all"
: "no"},
"fetchTimeStamp" : { "type" : "date", "format" : "dd-MM-yyyy
hh:mm:ss" , "include_in_all" : "no"},
"actualTimeStamp" : { "type" : "date", "format" : "dd-MM-yyyy
hh:mm:ss" , "include_in_all" : "no"},
"Content" : { "type" : "string" , "store" : "yes" }
}
}
}'
I am not understanding where the error is.
[2011-10-20 15:32:22,388][DEBUG][action.index ] [Crimson Dynamo]
[algotree][1], node[ow58UVQRTJ-BNffAJzHroA], [P], s[STARTED]: Failed to
execute [index {[algotree][public][BbNjGVU0SKuR51VuSfKYLg],
source[{"fetchTimeStamp":"20-10-2011
03:32:22","SourceName":"accountancyAge","link":"
http://feeds.accountancyage.com/c/551/f/540070/s/196b7d32/l/0L0Saccountancyage0N0Caa0Cnews0C21185550Cfinancialforcecom0E50A0A0Egrowth0DWT0Brss0If0FNews0GWT0Brss0Ia0FFinancialForce0N0Ksees0K50A0A0J250Kgrowth/story01.htm","Author":"","actualTimeStamp":"20-10-2011
02:14:00","Content":"AN INTERNET SOFTWAREbusiness has posted massive
increases in monthly users in latest financial
results.\n\nFinancialForce.com reported a 500% increase in monthly users
compared with the same period last year.\n\nThe online software provider is
part of UNIT 4 which announced its third quarter results highlighting
revenue across all its divisions had increased 3% to \u20ac102.5m (£89.53m),
compared with the same period a year ago.\n\nMore than 53% of revenues
across the group were recurring, with Germany, Scandinavia and Asia showing
strong growth. The UK, Poland and Benlux performed in line with
expectations.","Title":"FinancialForce.com sees 500% growth"}]}]
org.elasticsearch.index.mapper.MapperParsingException: Failed to parse
[Content]
at
org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:312)
at
org.elasticsearch.index.mapper.object.ObjectMapper.serializeValue(ObjectMapper.java:577)
at
org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:443)
at
org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:567)
at
org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:491)
at
org.elasticsearch.index.shard.service.InternalIndexShard.prepareCreate(InternalIndexShard.java:269)
at
org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:193)
at
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:464)
at
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:377)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.elasticsearch.common.jackson.JsonParseException: Invalid
UTF-8 start byte 0xa3
at [Source: [B@1fe0d66; line: 1, column: 744]
at
org.elasticsearch.common.jackson.JsonParser._constructError(JsonParser.java:1291)
at
org.elasticsearch.common.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:385)
at
org.elasticsearch.common.jackson.impl.Utf8StreamParser._reportInvalidInitial(Utf8StreamParser.java:2236)
at
org.elasticsearch.common.jackson.impl.Utf8StreamParser._reportInvalidChar(Utf8StreamParser.java:2230)
at
org.elasticsearch.common.jackson.impl.Utf8StreamParser._finishString2(Utf8StreamParser.java:1467)
at
org.elasticsearch.common.jackson.impl.Utf8StreamParser._finishString(Utf8StreamParser.java:1394)
at
org.elasticsearch.common.jackson.impl.Utf8StreamParser.getText(Utf8StreamParser.java:113)
at
org.elasticsearch.common.xcontent.json.JsonXContentParser.text(JsonXContentParser.java:74)
at
org.elasticsearch.common.xcontent.support.AbstractXContentParser.textOrNull(AbstractXContentParser.java:99)
at
org.elasticsearch.index.mapper.core.StringFieldMapper.parseCreateField(StringFieldMapper.java:163)
at
org.elasticsearch.index.mapper.core.StringFieldMapper.parseCreateField(StringFieldMapper.java:44)
at
org.elasticsearch.index.mapper.core.AbstractFieldMapper.parse(AbstractFieldMapper.java:299)
... 11 more
Thanks
Vineeth