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

I believe I'm seeing a similar issue to this thread. Would you be able to comment on Task exception could not be deserialized