Hive initialization metadata error: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'hive'

Problem Description

When hive initializes metadata, the initialization fails and the error is reported as follows:
Insert image description here


solution:

Create a hive database in mysql to save hive metadata
Insert image description here
and then initialize it. The command is as follows: The initialization is successful. As
bin/schematool -dbType mysql -initSchema
shown in the figure below, the initialization is successful.
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_61472217/article/details/131138720
Recommended