NoSuchMethodError: org.apache.spark.sql.SQLContext.applySchema

前端 未结 1 1524
野趣味
野趣味 2021-01-25 17:01

I am trying to query on a file stored in hdfs using sqlcontext provided in Apache Spark using the below code but i am getting a NoSuchMethodError

package SQL

im         


        
相关标签:
1条回答
  • 2021-01-25 17:15

    NoSuchMethodError usually means that you have incompatibles between libraries. In this particular case it looks like you might be using a version of spark-csv that requires Spark 1.3 with an older version of Spark.

    0 讨论(0)
提交回复
热议问题