Hive using TiDB 7.5.1 as the metastore database reports a null pointer exception on startup

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: Hive使用 tidb 7.5.1做元数据库,启动报空指针

| username: TiDBer_jlhHY1Hc

Executing schematool -info -verbose and schematool -initSchema both work fine, and connecting to TiDB using the driver jar in DBeaver also works without issues. However, starting the Hive metastore results in an error.

| username: Billmay表妹 | Original post link

What does your business architecture look like?

| username: 友利奈绪 | Original post link

Does Hive support TiDB as the source database? Why not just install MySQL separately, since they are not the same?

| username: Billmay表妹 | Original post link

You can take a look at this practical solution.

Here are some practical solutions: TiDB 社区搜索
Copy and paste the error text.

| username: TiDBer_jlhHY1Hc | Original post link

The project doesn’t allow the use of MySQL, there’s nothing I can do :joy:

| username: TiDBer_jlhHY1Hc | Original post link

It seems that this blog does not encounter the same problem as mine.

| username: forever | Original post link

It seems like it’s an issue with your driver package. Try connecting to MySQL first and see if there are any errors.

| username: TiDBer_jlhHY1Hc | Original post link

Connected to MySQL 8.0.30, no problem.