Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

HiveContext try to use Database does not exit Cloudera quickstart vm cdh 5.7.2

HiveContext try to use Database does not exit Cloudera quickstart vm cdh 5.7.2

Explorer

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.

Thanks

I am using the cloudera quickstart vm cdh 5.7.2

Spark 1.6 scala 2.10.5

errorLog.PNGcode.PNG

1 REPLY 1

Re: HiveContext try to use Database does not exit Cloudera quickstart vm cdh 5.7.2

Explorer

My error was than in intellij I needed to modify the vm to options.

-Dspark.master=local
-Dspark.driver-memory=4g
-Dspark.executor-memory=4g
-XX:MaxPermSize=2g
-Dhive.metastore.uris=thrift://127.0.0.1:9083

 

Then everything worled