IntelliJ IDEA Spark相关资料汇总

1、maven 相关
解决代码提示错误(某些外部依赖库名称红色显示):
需要设置external library自动导入: 不设置的话spark等library都无法进行代码提示
  方法1:在File->Settings 中搜索maven,在importing页卡中勾选"Import Maven projects automatically"
  参见: https://stackoverflow.com/questions/11454822/import-maven-dependencies-in-intellij-idea
  方法2:右键工程->Maven->Reimport


2、scala多版本管理
(未验证)
引用
File | Other Settings | Default Project Structure | Global Libraries

click the '+' button at the top left hand side of the Window

Select 'Scala SDK'

Choose the version you want to install.

参见:https://stackoverflow.com/questions/25653265/how-do-i-change-intellij-idea-to-compile-with-scala-2-11

3、spark开发环境设置

参见 http://www.codexiu.cn/spark/blog/42089/
主要是pom.xml怎么写的问题。
写完代码后可以通过右侧的mave project页卡,点击package,再点上方面板上的绿色箭头进行打包

相关教程:
http://running8.blog.51cto.com/2687882/1603429
http://blog.csdn.net/u011826404/article/details/53206369

猜你喜欢

转载自cherishlc.iteye.com/blog/2389053