Using Scala v2.12.8 and Zinc v1.3.0-M4+46-edbe573e
Running on Java JDK v11.0.9.1 (/home/
/jdk-11.0.9.1+1)
-> Supports debugging user code, Java Debug Interface (JDI) is available.
Maintained by the Scala Center (Jorge Vicente Cantero, Martin Duhem)
启动bloop 服务
% bloop server
Attempting a connection to the server…
Resolving ch.epfl.scala:bloop-frontend_2.12:1.4.6…
Starting bloop server at 127.0.0.1:8212…
3 下载spark 代码,并进行编译(依赖sbt)
compile (先编译)
package (打包)
4 在VSCode中debug spark代码
创建一个java debug 的文件 launch.json
添加以下内容:
{
“type”: “java”,
“name”: “Launch with Arguments Prompt”,
“request”: “launch”,
“mainClass”: “org.apache.spark.launcher.Main”,
“args”: “org.apache.spark.deploy.master.Master –host XXXXXXXX –port 7077 –webui-port 8080”
}
在代码 org.apache.spark.launcher.Main 类中设置断点,紧接着就可以在 java debug 中选择 “Launch with Arguments Prompt”
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here:
Cookie Policy