Home > other >  Spark link hive database, can only display the default database, other database does not show
Spark link hive database, can only display the default database, other database does not show

Time:10-15

Hive - site. XML is poured into the spark, and also in the idea of configuration file down into the hive - site. XML files, database query hive only shows the default shows no other, for bosses to help

CodePudding user response:

If the database permissions

CodePudding user response:

Also recently met, under the maven project resource directory to add hive - site. The XML file, at the same time sparkSession configuration support hive,
You can use the local mode under test;
In view of the hive, need to open the hive metastore service, through the hive command started, at the same time the spark the hive - site. Add XML configuration items
Hive. Metastore. Uris, which IP information service for the hive, the server IP is ok

CodePudding user response:

So long, it is estimated that should have been solved... , optional under reference

CodePudding user response:

refer to today's share of the building Lord reply:
hive - site. XML is poured into the spark, and also in the idea of configuration file down into the hive - site. XML files, database query hive only shows the default shows no other, for bosses to help


So in the end the original poster is how to solve? I also met this problem
  • Related