Re: [Spark] SchemaRdd saveToEs produces "Bad JSON" errors

2015-03-24 Thread Costin Leau
Hi, It appears the problem lies with what type of document you are trying to save to ES - which is basically invalid. For some reason the table/rdd schema gets lost and the content is serialized without it: |[38,"38"]| I'm not sure why this happens hence why I raised an issue [1] Thanks, [1

[Spark] SchemaRdd saveToEs produces "Bad JSON" errors

2015-03-24 Thread Yana Kadiyska
Hi, I'm a very new user to ES so Im hoping someone can point me to what I'm doing wrong. I did the following: download a fresh copy of Spark1.2.1. Switch to bin folder and ran: wget https://oss.sonatype.org/content/repositories/snapshots/org/elasticsearch/elasticsearch-hadoop/2.1.0.BUILD-SNAP