Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is trying to connect 127.0.0.1:5567? #175

Closed
karayakar opened this issue Jul 15, 2019 · 6 comments
Closed

It is trying to connect 127.0.0.1:5567? #175

karayakar opened this issue Jul 15, 2019 · 6 comments

Comments

@karayakar
Copy link

karayakar commented Jul 15, 2019

Problem encountered on https://dotnet.microsoft.com/learn/data/spark-tutorial/code
Operating System: windows

Provide details about the problem you are experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.

System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (10061): No connection could be made because the target machine actively refused it. 127.0.0.1:5567
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   at Microsoft.Spark.Network.DefaultSocketWrapper.Connect(IPAddress remoteaddr, Int32 port, String secret)
   at Microsoft.Spark.Interop.Ipc.JvmBridge.GetConnection()
   at Microsoft.Spark.Interop.Ipc.JvmBridge.CallJavaMethod(Boolean isStatic, Object classNameOrJvmObjectReference, String methodName, Object[] args)
   at Microsoft.Spark.Interop.Ipc.JvmBridge.CallStaticJavaMethod(String className, String methodName, Object[] args)
   at Microsoft.Spark.Sql.Builder..ctor()
   at Microsoft.Spark.Sql.SparkSession.Builder()
@imback82
Copy link
Contributor

5567 port is used for debugging. Can you provide more details such as spark-submit command, etc.?

@trongnguyenbinh
Copy link

trongnguyenbinh commented Jul 16, 2019

I ran into the same issue, it fine when I run this command

spark-submit --class org.apache.spark.deploy.DotnetRunner --master local bin\Debug\netcoreapp2.2\microsoft-spark-2.4.x-0.3.0.jar dotnet bin\Debug\netcoreapp2.2\MySparkApp.dll

but throw exception when I tried to debug.

System.Net.Internals.SocketExceptionFactory.ExtendedSocketException
  HResult=0x80004005
  Message=No connection could be made because the target machine actively refused it 127.0.0.1:5567
  Source=System.Net.Sockets
  StackTrace:
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   at Microsoft.Spark.Network.DefaultSocketWrapper.Connect(IPAddress remoteaddr, Int32 port, String secret)
   at Microsoft.Spark.Interop.Ipc.JvmBridge.GetConnection()
   at Microsoft.Spark.Interop.Ipc.JvmBridge.CallJavaMethod(Boolean isStatic, Object classNameOrJvmObjectReference, String methodName, Object[] args)
   at Microsoft.Spark.Interop.Ipc.JvmBridge.CallStaticJavaMethod(String className, String methodName, Object[] args)
   at Microsoft.Spark.Sql.Builder..ctor()
   at Microsoft.Spark.Sql.SparkSession.Builder()
   at mySparkApp.Program.Main(String[] args) in E:\Develop\mySparkApp\Program.cs:line 11

@imback82
Copy link
Contributor

Please follow this doc: https://github.com/dotnet/spark/blob/master/docs/developer-guide.md#debugging-spark-net-application

@trongnguyenbinh
Copy link

Great! thanks @imback82

@rapoth
Copy link
Contributor

rapoth commented Jul 16, 2019

@trongnguyenbinh: I'm closing this issue. Please feel free to create another issue if you get blocked.

@Devtr0n
Copy link

Devtr0n commented Sep 23, 2022

When following the instructions for "Debugging Spark .NET application"....

Where is the <path-to-microsoft-spark-jar> ??? I don't see any .jar files. Help?

I have "C:\bin\Microsoft.Spark.Worker-2.1.1" but no .jar files :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants