python has problems using pyspark

dm2213692 注册会员
2023-02-27 10:19

Is it OK to run under cmd?
Are environment variables set up PYTHONPATH and SPARK_HOME

qklwdd1 注册会员
2023-02-27 10:19
< div class = "md_content_show e397 data - v - 3967" = "" >

you can refer to this environment Settings: https://www.codenong.com/52726043/

yantafeizei 注册会员
2023-02-27 10:19

This answer quotes ChatGPT

According to the error message, it seems that the running environment is faulty. The fault may be caused by an interruption or exception during Spark startup. It is recommended to check the following points:

1. Check whether Java has been installed and Java environment variables have been configured.

2. Check whether Spark is correctly installed and whether the version of Spark is compatible with that of pyspark.

3. Check whether Spark fails to start because other programs or processes occupy the port.

4. Run the script correctly in the IDE or command line to ensure that the code has no syntax errors or path errors.

You can check each of the above issues, or try running the script in another environment to see if Spark starts properly.

doufei520 注册会员
2023-02-27 10:18

The system cannot find the specified path.
You check which path is wrong

deltaw6 注册会员
2023-02-27 10:18
< div class = "md_content_show e397 data - v - 3967" = "" >

to check the following the path or where

About the Author

Question Info

Publish Time
2023-02-27 10:18
Update Time
2023-02-27 10:18

Related Question