question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG]: Path does not exist error (despite correct path)

See original GitHub issue

Describe the bug I believe I may have encountered a bug with the .Text() method (for loading from a text file into a DataFrame).

I am following the getting started tutorial: https://dotnet.microsoft.com/learn/data/spark-tutorial/run. I have all the installations completed and paths set correctly (I can successfully run other Spark apps locally).

However, for mySparkApp specifically, when I run spark-submit, I get the following error:

[Error] [JvmBridge] org.apache.spark.sql.AnalysisException: Path does not exist: file:/C:/Users/brmurtau/mySparkApp/input.txt.

To Reproduce

I followed all of the exact steps on the .NET tutorial site, including creating a new mySparkApp, adding input.txt, and modifying Program.cs.

dotnet build runs correctly. I also set the path to my app’s dll in the assembly search environment variable (as discussed in a previous issue).

Expected behavior Logging and word count table, as shown on the tutorial at the run stage: https://dotnet.microsoft.com/learn/data/spark-tutorial/run.

Screenshots I have input.txt at the exact path that was listed in the error message: image

I even tried changing the path to be full rather than relative in Program.cs but still got the same error.

Desktop:

  • OS: Windows 10
  • Version: Spark.NET 0.4, .NET Core 2.2

Additional context I believe this could be some sort of bug with the .Text() method not being able to find my file. I am able to successfully submit/run other Spark apps that read in CSVs. I have tried deleting and re-creating mySparkApp and input.txt, but to no avail.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
bamurtaughcommented, Aug 30, 2019

I realize now my file name had “.txt” at the end of it, so the file was getting confused and had two “.txt” endings. Mistake I couldn’t catch at the end of a long day 😃 Issue solved!

0reactions
abhaysibalcommented, Nov 23, 2020

@bamurtaugh I ran into the same issue just now, and was stuck for long. Thanks for posting this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flask "Error: The file/path provided does not appear to exist ...
This situation occurs when you have an ImportError which is not propagated through to your terminal. Check all of your files for invalid ......
Read more >
How to fix path does not exist error? - Studio
Hi, I want to write a folder path but even if that path is exists I am getting the path does not exist...
Read more >
Path Object Does Not Exist Issue
getObjectHandle('Path') it comes up with the error 'Object does not exist' even though it has been correctly assigned previously.
Read more >
Path does not exist when selecting another project.
Solution. Find project and move to project folder. Cause of error: The project folder was moved/deleted from where the projects are defined ......
Read more >
Path does not exist? - R Markdown
First verify that the file exists. Then, try with the absolute path of that file. Do you get same error then? If you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found