Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 适配Spark3.2.2集群的TiSpark应该用哪个版本的jar包
【TiDB Usage Environment】Test Environment
【TiDB Version】5.4.2
【Encountered Issues】
- In the TiDB 5.4 documentation, the description of TiSpark mentions that TiSpark 3.0.x is compatible with Spark 3.0.x/3.1.x/3.2.x, and the Scala version is 2.12.
- In the TiSpark repository, the TiSpark package compatible with Spark 3.2.x is tispark-assembly-3.2_2.12-3.0.1.jar, which means Spark is 2.2 and Scala is 2.12.
- However, the Spark official website has the following note:
Note that Spark 3 is pre-built with Scala 2.12 in general and Spark 3.2+ provides additional pre-built distribution with Scala 2.13.
【Issue Phenomenon and Impact】
If I choose Spark cluster version 3.2.2, which TiSpark jar package should I choose?