1、确保remote端Python、spark安装正确 设置必要的环境变量
2、本地Pycharm设置
File > Settings > Project Interpreter:

Project Interpreter > Add remote(前提:remote端python安装成功):

注意,这里的Python路径为python interpreter path,如果python安装在其它路径,要把路径改过来
Run > Edit Configuration (前提:虚拟机中共享本地目录成功):

此处我配置映射是在Tools中进行的
Tools > Dployment > Configuration




121

被折叠的 条评论
为什么被折叠?



