I've setup the following in my laptop.
I've placed hive-site.xml from hive/conf to spark/conf. When i goto spark-shell, i can use sql context to create tables in hive and query them. I can access all the tables in hive. My issue is, when I use Eclipse IDE, i'm not able to connect to existing hive.
Eclipse can connect to existing spark master to submit the jobs, i can see the jobs in UI but when i use sparkSession to connect to hive, it always creates its own Derby database. I've searched extensively, but i cannot figure out.
I'm not sure what else to look for.
Your hive-site.xml is not in path. Try adding config to classpath
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.