I have written a code for SparkSQL. I ran it using Eclipse Neon. It was working fine. When I shifted to IntelliJ Idea, the same code is not running.
Here is the code:
SparkSession spark = SparkSession
.builder()
.appName("Java Spark Hive Example")
.master("local[*]")
.config("hive.metastore.uris", "thrift://localhost:9083")
.enableHiveSupport()
.getOrCreate();
spark.sql("select survey_response_value from health").show();
The exceptions I am getting are:
https://justpaste.it/13tsa
Kindly let me know why I am facing this problem. How I can resolve this? Should I write the code from the start using IntelliJ or is there any mechanism for help?