I receive the error database does not exist with this code in intellij spark maven project and on all new projects. But what is weird is that in an older project with the same code it works.
Here is the code and below the error log. I have the hive-sites.xml in both the hive and spark conf and set all directories user/hive/warehouse to 777 what else could be the error.
I am using the cloudera quickstart vm cdh 5.7.2
Spark 1.6 scala 2.10.5
My error was than in intellij I needed to modify the vm to options.
Then everything worled