Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: pycharm无法访问TiSpark
Incident:
I first installed Spark, then installed TiSpark, resulting in two Spark environments on the Linux machine. Normally, I start TiSpark on the Linux machine using the /tidb-deploy/tispark-master-7077/bin/spark-shell
command.
Recently, I needed to run SQL using user-defined functions, so I wanted to use PyCharm on my computer to connect to the Linux machine and operate TiSpark.
However, I found that I couldn’t connect to the TiSpark environment. I even deleted the Spark folder and environment variables, but still couldn’t connect.
I also modified SPARK_HOME, but it didn’t work…
Does anyone know what the problem might be?