Problem between Spark and Elasticsearch