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]: Error when running sample applications

See original GitHub issue

Describe the bug Encountering this error when running all the .NET sample applications in linux:

20/07/24 22:31:29 WARN Utils: Your hostname, DELL resolves to a loopback address: 127.0.1.1; using 0.0.0.0 instead (on interface eth0)
20/07/24 22:31:29 WARN Utils: Set SPARK_LOCAL_IP if you need to bind to another address
20/07/24 22:31:32 WARN NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties
20/07/24 22:31:33 INFO DotnetRunner: Starting DotnetBackend with Microsoft.Spark.CSharp.Examples.
20/07/24 22:31:34 INFO DotnetRunner: Port number used by DotnetBackend is 41987
20/07/24 22:31:34 INFO DotnetRunner: Adding key=spark.jars and value=file:/home/usman/dotnet.spark/src/scala/microsoft-spark-2.4.x/target/microsoft-spark-2.4.x-0.12.1.jar to environment
20/07/24 22:31:34 INFO DotnetRunner: Adding key=spark.app.name and value=org.apache.spark.deploy.dotnet.DotnetRunner to environment
20/07/24 22:31:34 INFO DotnetRunner: Adding key=spark.submit.deployMode and value=client to environment
20/07/24 22:31:34 INFO DotnetRunner: Adding key=spark.master and value=local to environment
20/07/24 22:31:34 ERROR DotnetRunner: Cannot run program "Microsoft.Spark.CSharp.Examples": error=2, No such file or directory
 java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
org.apache.spark.deploy.dotnet.DotnetRunner$.main(DotnetRunner.scala:125)
org.apache.spark.deploy.dotnet.DotnetRunner.main(DotnetRunner.scala)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:498)
org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:845)
org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:161)
org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:184)
org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:86)
org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:920)
org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:929)
org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
20/07/24 22:31:34 INFO DotnetRunner: Closing DotnetBackend
20/07/24 22:31:34 INFO ShutdownHookManager: Shutdown hook called
20/07/24 22:31:34 INFO ShutdownHookManager: Deleting directory /tmp/spark-5f105813-1900-4710-92f0-c6fe6cb38c47

To Reproduce

Steps to reproduce the behavior:

  1. Follow the instructions set out in this readme
  2. Execute this command to run the application as shown in the readme:
spark-submit \
--class org.apache.spark.deploy.dotnet.DotnetRunner \
--master local \
~/dotnet.spark/src/scala/microsoft-spark-2.4.x/target/microsoft-spark-2.4.x-0.12.1.jar \
Microsoft.Spark.CSharp.Examples Sql.Batch.Basic $SPARK_HOME/examples/src/main/resources/people.json

Expected behavior I expect the program to run successfully with no errors.

Desktop (please complete the following information):

  • OS: Linux
  • Version: Ubuntu 20.04 LTS (WSL)

Additional context Surprisingly program runs successfully when I specify dotnet and reference the project output dll in the command.

spark-submit \
--class org.apache.spark.deploy.dotnet.DotnetRunner \
--master local ~/dotnet.spark/src/scala/microsoft-spark-2.4.x/target/microsoft-spark-2.4.x-0.12.1.jar \
dotnet Microsoft.Spark.CSharp.Examples.dll Sql.Batch.Basic $SPARK_HOME/examples/src/main/resources/people.json

Perhaps this is a case of an outdated readme? Let me know what you think. Thanks.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
usmanmohammedcommented, Jul 24, 2020

Yea this aligns with the *nix behavior. Even if you have an executable in the current directory, you have to prepend the dir (e.g., ./a.out or /home/user/a.out) to execute it unless it’s in PATH.

I think we need to fix README.md. @usmanmohammed, do you want to contribute?

Sure. I’ll open a PR to include the directory prepend for the various commands in the readme.

0reactions
imback82commented, Jul 25, 2020

Great, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Application errors - what are they and how do you avoid ...
Application errors are mistakes or bugs that occur within the code of an application, causing it to malfunction or crash.
Read more >
Diagnosing and resolving bugs in your running app
Inspect your app to isolate bugs, locate crashes, identify excess system-resource usage, visualize memory bugs, and investigate problems in its appearance.
Read more >
Bug vs Error: Key Differences
Learn the key differences between Bug vs Error and how to categorize different bugs, details, and issues in software testing.
Read more >
Difference Between Bug, Defect, Error, Failure, and Fault in ...
Software testing is a process to spot bugs, errors, defects, faults, and failures which are the variance between expected and actual results.
Read more >
Software Testing - Bug vs Defect vs Error vs Fault vs Failure
A bug refers to defects which means that the software product or the application is not working as per the adhered requirements set....
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