添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I'm trying to run my spark program using the spark-submit command (i'm working with scala), i specified the master adress, the class name, the jar file with all dependencies, the input file and then the output file but i'm having and error:

Exception in thread "main" org.apache.spark.sql.AnalysisException: Multiple sources found for csv (org.apache.spark.sql.execution.datasources.v2.csv.CSVDataSourceV2, org.apache.spark.sql.execution.datasources.csv.CSVFileFormat), please specify the fully qualified class name.;

Here is a screenshot for this error, What is it about? How can i fix it?

Thank you

Is that you are running fat jar file ? Also mention that are you running this in windows or linux environment . So if it is yes it will be like this ./spark-submit your-fat-jarfile,jar . Also check whether your folder has the the appropriate permissions for file write or read. Kaviranga Jan 3, 2021 at 10:31 Yes i'm in the right folder And yes i mentionned the jar file in the spark-submit command amelie Jan 3, 2021 at 10:39

Here you got some warnings also,

If you correctly run your fat-jar file with correct permissions you can get a output like this for ./spark-submit

Check whether if correctly set environmental variables for spark ( ~/.bashrc ). Also check the source CSV file permissions. May be it will be the problem.

If you are running on linux environment set the folder permissions for the source CSV folder as

sudo chmod -R 777 /source_folder

After that again try to run ./spark-submit with your fat-jar file.

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .