I found a similar thread here: #846 but none of the fixes there worked for me. In particular, I have verified that I have Java 8, that the environment variables are (to the best of my knowledge) set ...
at org.elasticsearch.spark.sql.SchemaUtils$.discoverMapping(SchemaUtils.scala:91) at org.elasticsearch.spark.sql.ElasticsearchRelation.lazySchema$lzycompute ...