# Save Spark Dataframe into ES - Can't handle type exception

**URL:** <https://discuss.elastic.co/t/save-spark-dataframe-into-es-cant-handle-type-exception/29469>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [September 17, 2015, 9:48am UTC](https://discuss.elastic.co/t/save-spark-dataframe-into-es-cant-handle-type-exception/29469 "2015-09-17T09:48:49Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![Jonathan\_Spooner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonathan_spooner/32/2672_2.png) [@Jonathan\_Spooner](https://discuss.elastic.co/u/Jonathan_Spooner)\
**Post date:** [April 5, 2016, 2:30am UTC](https://discuss.elastic.co/t/save-spark-dataframe-into-es-cant-handle-type-exception/29469/24 "2016-04-05T02:30:22Z")

</div>

Hi,

I believe my error as described below is related to this error. Would you be able to comment on this issue?

> [@Task exception could not be deserialized](https://discuss.elastic.co/t/task-exception-could-not-be-deserialized/45960):
>
> I have a Spark job that runs on my localhost but when run on EMR I'm getting a Warning for WARN ThrowableSerializationWrapper: Task exception could not be deserialized java.lang.ClassNotFoundException: org.elasticsearch.hadoop.EsHadoopException and error 16/03/31 16:32:55 ERROR TaskResultGetter: Could not deserialize TaskEndReason: ClassNotFound with classloader org.apache.spark.util.MutableURLClassLoader@216b55e2 • My Spark EMR version is 1.5.2 • I was using elasticsearch-spark\_2.10-2.2.0-…

---

_[View the full topic](https://discuss.elastic.co/t/save-spark-dataframe-into-es-cant-handle-type-exception/29469)._
