You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated your post with minimal formatting to make it readable
It seems you have a configuration problem:
you mention Spark 1.4.1 but you're using the es-spark jar for Spark 1.1-1.2. See this section for more information. Basically DataFrames were added in Spark 1.3 while previously there were SchemaRDDs - using the proper version to switch between the two.
your code refers to /opt/spark-1.2.1/
you are using es-hadoop 2.1.0.Beta4 - use the final 2.1.0 or better yet 2.1.1.
I am using ES with spark 1.4.1 and hope to write data to ES using spark.
This is my code - standard example given on ES website
I create a jar with sbt and use
elasticsearch-spark-1.2_2.10-2.1.0.Beta4.jar
in my classpath.But I get this error
I have tried to compile after cleaning cache and using the above jar while submitting spark job.
Using Spark's default log4j profile:
org/apache/spark/log4j-defaults.properties
It fails at the last line of code
saveToES
.The text was updated successfully, but these errors were encountered: