Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to instantiate SparkSession with Hive support because Hive classes are not found. #33

Open
emptyr1 opened this issue Jun 5, 2018 · 2 comments

Comments

@emptyr1
Copy link

emptyr1 commented Jun 5, 2018

Hi,
I'm having issues with this command:

val spark = (SparkSession
          .builder()
          .appName("interfacing spark sql to hive metastore without configuration file")
          .config("hive.metastore.uris", "thrift://hive-metastorerver-201227-ro-001:903,thrift://hive-metasteserver-201727-ro-002:9083,thrift://hive-metastoreser-201727-ro-003:9083")
          .enableHiveSupport()
          .getOrCreate())

I get error:
java.lang.IllegalArgumentException: Unable to instantiate SparkSession with Hive support because Hive classes are not found.
I've added . the jars via the interpreter and restarted it, but still getting the issue. Any idea how to solve this?
I added org.apache.spark:spark-hive_2.11:2.1.0 under "jdbc"

@YunFeng0817
Copy link

I think this problem maybe because some confict between the version of spark-sql and spark-hive
when I use the same version, this problem solved

@drehi440
Copy link

@Mark-Fenng, This should be an acceptable answers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants