Skip to content

Spark is not connected to Hive correctly. #12

@dukechain2333

Description

@dukechain2333

I have already create a new database in Hive, however, when I excute the following code in spark-shell, it seems that spark goes to the wrong metastore_db as shown in this this page Spark Documentation

scala> spark.sql("show databases").show()
+---------------+
|databaseName|
+---------------+
| default      |
+---------------+
hive> show databases;
OK
default
sparkda
Time taken: 0.984 seconds, Fetched: 2 row(s)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions