# EsHadoopInvalidRequest: \[POST\]

**URL:** <https://discuss.elastic.co/t/eshadoopinvalidrequest-post/31635>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [October 5, 2015, 1:35pm UTC](https://discuss.elastic.co/t/eshadoopinvalidrequest-post/31635 "2015-10-05T13:35:32Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Pinhus\_Dash](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@Pinhus\_Dash](https://discuss.elastic.co/u/Pinhus_Dash)\
**Post date:** [December 14, 2015, 5:04pm UTC](https://discuss.elastic.co/t/eshadoopinvalidrequest-post/31635/9 "2015-12-14T17:04:49Z")

</div>

I am having similar issues with the ES Spark Connector.

When I connect to a remote 1 machine ES cluster, I can read the schema from ES.  
Example:  
val spark14DF = sqlContext.read.format("org.elasticsearch.spark.sql").options(optionsDev).load("blog/post")

spark14DF: org.apache.spark.sql.DataFrame = [body: string, postDate: timestamp, title: string, user: string]

spark14DF.printSchema  
root  
|-- body: string (nullable = true)  
|-- postDate: timestamp (nullable = true)  
|-- title: string (nullable = true)  
|-- user: string (nullable = true)

But when I ask for spark14DF.first()  
I get the following error:  
org.elasticsearch.hadoop.rest.EsHadoopInvalidRequest: IndexMissingException[[blog] missing]  
at org.elasticsearch.hadoop.rest.RestClient.execute(RestClient.java:352)  
.....

---

_[View the full topic](https://discuss.elastic.co/t/eshadoopinvalidrequest-post/31635)._
