This error message indicates that the "spark-submit" command is not installed on your system or it is not added to the PATH environment variable.

To resolve this issue, you need to install Apache Spark on your system and make sure that the "spark-submit" command is available in your PATH. You can follow the instructions provided by the Apache Spark documentation to install Spark on your system.

Once you have installed Spark, you can add the Spark binaries directory to your PATH by adding the following line to your shell configuration file (.bashrc, .zshrc, etc.):

export PATH=$PATH:/path/to/spark/bin

Replace "/path/to/spark/bin" with the actual path to the "bin" directory of your Spark installation. Save the file and reload your shell configuration to apply the changes.

After adding Spark to your PATH, try running the "spark-submit" command again to verify that it is now working.

spark-etl.sh: line 3: spark-submit: command not found

原文地址: http://www.cveoy.top/t/topic/tRL 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录