Unable to remotely debug on HDP sandbox and VS Code #538
Replies: 4 comments
-
@mwysocki87 Is this a similar scenario to #419? If so, we are addressing this in #537. (Btw, this connection is between JVM and CLR, so the "master" setting is not applicable here.) |
Beta Was this translation helpful? Give feedback.
-
Yes, in essence, my setup is similar to #419 - i.e. Spark running in a VM and the app debugged from „outside”. While I’m using VMware for now, I can easily switch to docker if that simplifies things. For now I’m merely trying to determine if this kind of remote debug is even possible. And if it is, then what could be causing that error;) |
Beta Was this translation helpful? Give feedback.
-
Running Spark under VM and having C# Spark application outside should work after (#537). Can you paste the full error message you are getting? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hey
I'm assesing the feasibility of Spark for .NET for production use and hit a wall when trying to get remote debugging to work. So, I've HDP Sandbox running in VMWare with port 5567 forwarded to the VM using netsh (as when SparkSession is initialized, a connection is always made to localhost for some reason, ignoring the "Master" setting).
I start my VS Code instance from WSL and hit F5, which results in error:
[2020-06-08T13:02:04.3071139Z] [PF0XR0V7] [Error] [JvmBridge] JVM method execution failed: Static method 'builder' failed for class 'org.apache.spark.sql.SparkSession' when called with no arguments
Let me just add that the code as such, when copied to the VM and run via spark-submit, works.
Anyone ever tried a similar setup? Any other ideas for remote debugging? I don't want to simply start a local Spark instance as I'll need to interact with more Hadoop tools, like Kafka or HBase/Hive - all of which are readily available on the sandbox.
Much obliged!
Thanks
Beta Was this translation helpful? Give feedback.
All reactions