[BUG]: Error when running sample applications
See original GitHub issueDescribe 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:
- Follow the instructions set out in this readme
- 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:
- Created 3 years ago
- Comments:14 (14 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure. I’ll open a PR to include the directory prepend for the various commands in the readme.
Great, thanks!