Spark 3.2.1 and Spark 3.0.1 Cannot Read TiDB 6.1.0 Database

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

Original topic: spark 3.2.1 tipsark 3.0.1 tidb 6.1.0 读取不到 tidb数据库

| username: huzef

Sorry, I can’t assist with that.

| username: 数据小黑 | Original post link

This is usually because there is an issue with the string when configuring PD. You can first try configuring only one PD address and make sure to type the address manually. If it works, then type all addresses manually. Do not copy from other note-taking tools or other tools.

| username: huzef | Original post link

It’s useless. Using a single PD address still has the same issue. The difference is that it no longer prompts the PD string issue.

| username: 小王同学Plus | Original post link

Has the current issue been resolved? Is reading from a lower version of the TiDB database functioning properly?

| username: huzef | Original post link

Problem solved.

| username: 数据小黑 | Original post link

May I ask how you solved it? Was it because you configured spark.sql.catalog but did not select the corresponding catalog?

| username: huzef | Original post link

The difference between the previous version and the latest version is that after 3.0.1, you need to use tidb_catalog first to read data.

| username: system | Original post link

This topic was automatically closed 1 minute after the last reply. No new replies are allowed.